On Sep 6, 2009, at 8:03 AM, Romain Francois wrote:
Hello,
I am developping an R aware version of apache ant, so that you can
run R code within an ant build script. This will make the
compilation of java source from one package that depends on java
code from another package easier, etc ...
But I can not build it on the mac platform.
If I see it correctly, you don't need native compilation for each
architecture, because the resulting code should be platform-
indemendent (Java-classes). Also you're not really building any
dynamic library to load in R. If both are correct, you can for example
use configure instead of src/Makevars to build your Java code since
this a) guarantees that it is run only once b) doesn't trigger the
SHLIB building so you do't need a fake .so.
Cheers,
Simon
Could someone from this list try to build it.
The package is source-controlled on r-forge :
$ svn checkout svn://svn.r-forge.r-project.org/svnroot/orchestra/pkg/ant
$ R CMD build ant
# R CMD INSTALL ant_0.0-3.tar.gz
The log file from r-forge shows partial success:
http://r-forge.r-project.org/R/?group_id=504&add_log=check_x86_32_mac&pkg=ant&flavor=patched&type=00install.out
I think the relevant part of the file is this :
** arch - ppc
/Library/Frameworks/R.framework/Resources/bin/Rscript ../exec/ant.R
--installer
Java for ppc cannot run in this configuration.
Please consult documentation.
Error in .jinit() : Cannot create Java virtual machine (-1)
Calls: .jinit -> .External
Execution halted
make: *** [mylibs] Error 1
ERROR: compilation failed for package 'ant'
and this is probably related to my Makevars file.
I don't have myself access to a mac and would appreciate feedback,
so that I can release the package on CRAN.
Many thanks in advance,
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/xMdt : update on the ant package
|- http://tr.im/xHLs : R capable version of ant
`- http://tr.im/xHiZ : Tip: get java home from R with rJava
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac