[R-SIG-Mac] rimage doesn't install on Mac OS X 10.4
Simon Urbanek
simon.urbanek at r-project.org
Thu Nov 13 19:28:48 CET 2008
Scott, can you, please, check that you have Xcode 2.4 or higher? (2.5
is available)
Cheers,
S
On Nov 13, 2008, at 13:18 , Waichler, Scott R wrote:
> Jochen,
>
>> Since the script is complaining about a missing libjpeg now,
>> you could try adding --with-jpeg-lib=[PATH_TO_YOUR_JPEG_LIB]
>> to the configure command line, e.g.,
>>
>> ./configure --with-fftw-include=/usr/local/include
>> --with-jpeg-include=/opt/local/include --with-jpeg-lib=/opt/local/lib
>
> Thanks, I can now get past that hurdle. The compiler is getting
> through
> some of its work, but it still breaks down as follows. This is from
> an
> R session without sudo, in a Mac Terminal window.
>
> For brevity, the key lines seem to be
> ld: /Library/Frameworks/R.framework/../R.framework/R load command 14
> unknown cmd field
> /usr/bin/libtool: internal link edit command failed
>
> Many hours later and still trying . . .thanks for your support!
>
> Scott
>
>> install.packages("rimage", repos="http://cran.fhcrc.org/",
> type="source", configure.args="--with-jpeg-include=/opt/local/include
> --with-jpeg-lib=/opt/local/lib")
> Warning in install.packages("rimage", repos = "http://
> cran.fhcrc.org/",
> :
> argument 'lib' is missing: using
> '/home/waichler/Library/R/2.8/library'
> trying URL 'http://cran.fhcrc.org/src/contrib/rimage_0.5-7.tar.gz'
> Content type 'application/x-gzip' length 331029 bytes (323 Kb)
> opened URL
> ==================================================
> downloaded 323 Kb
>
> * Installing *source* package 'rimage' ...
> checking for g++... g++
> checking for C++ compiler default output... a.out
> checking whether the C++ compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking for gcc... gcc
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking how to run the C preprocessor... gcc -E
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking fftw.h usability... yes
> checking fftw.h presence... yes
> checking for fftw.h... yes
> checking /opt/local/include/jpeglib.h usability... yes
> checking /opt/local/include/jpeglib.h presence... yes
> checking for /opt/local/include/jpeglib.h... yes
> checking for inline... inline
> checking for stdlib.h... (cached) yes
> checking for GNU libc compatible malloc... yes
> configure: creating ./config.status
> config.status: creating src/Makevars
> ** libs
> ** arch - ppc
> g++ -arch ppc -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2
> -I/opt/local/include/ -I/usr/local/include -fPIC -g -O2 -c
> equalize.cpp -o equalize.o
> gcc -arch ppc -std=gnu99
> -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2
> -I/opt/local/include/ -I/usr/local/include -fPIC -g -O2 -c
> fftw_access_func.c -o fftw_access_func.o
> g++ -arch ppc -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2
> -I/opt/local/include/ -I/usr/local/include -fPIC -g -O2 -c
> freqfilters.cpp -o freqfilters.o
> g++ -arch ppc -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2
> -I/opt/local/include/ -I/usr/local/include -fPIC -g -O2 -c
> interface.cpp -o interface.o
> gcc -arch ppc -std=gnu99
> -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2
> -I/opt/local/include/ -I/usr/local/include -fPIC -g -O2 -c
> jpegio.c
> -o jpegio.o
> jpegio.c: In function 'read_JPEG_file':
> jpegio.c:108: warning: pointer targets in assignment differ in
> signedness
> gcc -arch ppc -std=gnu99
> -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2
> -I/opt/local/include/ -I/usr/local/include -fPIC -g -O2 -c
> laplacian.c -o laplacian.o
> laplacian.c: In function 'laplacian':
> laplacian.c:14: warning: implicit declaration of function 'clearFrame'
> g++ -arch ppc -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2
> -I/opt/local/include/ -I/usr/local/include -fPIC -g -O2 -c
> matrix.cpp -o matrix.o
> gcc -arch ppc -std=gnu99
> -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2
> -I/opt/local/include/ -I/usr/local/include -fPIC -g -O2 -c
> smooth.c
> -o smooth.o
> gcc -arch ppc -std=gnu99
> -I/Library/Frameworks/R.framework/Resources/include
> -I/Library/Frameworks/R.framework/Resources/include/ppc -g -O2
> -I/opt/local/include/ -I/usr/local/include -fPIC -g -O2 -c
> sobel.c
> -o sobel.o
> g++ -arch ppc -dynamiclib -Wl,-headerpad_max_install_names
> -mmacosx-version-min=10.4 -undefined dynamic_lookup -single_module
> -multiply_defined suppress -L/usr/local/lib -o rimage.so equalize.o
> fftw_access_func.o freqfilters.o interface.o jpegio.o laplacian.o
> matrix.o smooth.o sobel.o -L/opt/local/lib -ljpeg -lfftw
> -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
> -Wl,CoreFoundation
> ld: /Library/Frameworks/R.framework/../R.framework/R load command 14
> unknown cmd field
> /usr/bin/libtool: internal link edit command failed
> make: *** [rimage.so] Error 1
> chmod:
> /tmp_mnt/snow/files0/waichler/Library/R/2.8/library/rimage/libs/ppc/*:
> No such file or directory
> ERROR: compilation failed for package 'rimage'
> ** Removing '/tmp_mnt/snow/files0/waichler/Library/R/2.8/library/
> rimage'
>
> The downloaded packages are in
> /tmp_mnt/snow/files0/waichler/tmp/RtmpGstodn/
> downloaded_packages
> Warning message:
> In install.packages("rimage", repos = "http://cran.fhcrc.org/", :
> installation of package 'rimage' had non-zero exit status
>>
>
>
More information about the R-SIG-Mac
mailing list