Building against cran-rjava-r and cran-javagd-r

BABA Yoshihiko <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <CA+Bj7RjP_h_ryZ87T-GGrHv51cP-bY51PnXvo9Wp_bf+KotiXQ@mail.gmail.com>
Jack,


When I tried to build a cran package (deducer), I had an error with
binary-installed cran-rjava-r  and  cran-javagd-r as below:


** preparing package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
   共有ライブラリ '/sw/lib/R/3.1/site-library/JavaGD/libs/JavaGD.dylib' を読み込めません:
  dlopen(/sw/lib/R/3.1/site-library/JavaGD/libs/JavaGD.dylib, 6): Library
not loaded: @rpath/libjvm.dylib
  Referenced from: /sw/lib/R/3.1/site-library/JavaGD/libs/JavaGD.dylib
  Reason: image not found
Error : package 'JavaGD' could not be loaded
ERROR: lazy loading failed for package 'JGR'

I rebuilt those packages and built deducer and things went OK.

Can we maybe insert a line as below in InstallScript?
  install_name_tool -change @rpath/libjvm.dylib
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
%i/lib/R/%type_raw[rversion]/site-library/rJava/libs/rJava.dylib

p.s. rjava had another issue: a missing shlib in shlibs field.


Cheers
-- 
BABA Yoshihiko
http://homepage.mac.com/babayoshihiko

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft

_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.