Sorry if this is not the appropriate place (I'm something of a novice when it comes to compilers). When I try to 'make' gandalf I get the following error.
BTW, alhough I succeded in compiling the Gandalf library I had problem in compiling the test direcotry, because I didn't find a way to get rid of the -rpath options used by the TestFramework/
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
Sorry if this is not the appropriate place (I'm something of a novice when it comes to compilers). When I try to 'make' gandalf I get the following error.
./libtool --mode=link gcc -o libgandalf.la \ common/*_rl.lo linalg/*_rl.lo \ linalg/cblas/*_rl.lo \ linalg/clapack/*_rl.lo \ linalg/matrix/*_rl.lo \ image/*_rl.lo image/io/*_rl.lo \ vision/*_rl.lo \ -version-info 2:1:1 -rpath /usr/local/lib -lpng -lz -ljpeg -ltiff -lGLU -lGL -lXmu -lXi -lX11 -lpthread -lm -L/usr/X11R6/lib
rm -fr .libs/libgandalf.la .libs/libgandalf.* .libs/libgandalf.*
gcc -shared common/allocate_rl.lo common/array_rl.lo ... (a long list of .lo files)
powerpc-apple-darwin8-gcc-4.0.0: unrecognized option `-shared'
/usr/bin/ld: unknown flag: -soname
collect2: ld returned 1 exit status
make: *** [gandalf] Error 1
Is there a workaround or do I need to use an older compiler?
Thanks In advance.
Lee
Try eliminating the "-rpath", that should be in the main Makefile.
At least I've found some similar problems compiling on an Intel MacBook, and I discovered that OSX simply does not use the rpath:
http://fink.sourceforge.net/doc/porting/shared.php?phpLang=en
BTW, alhough I succeded in compiling the Gandalf library I had problem in compiling the test direcotry, because I didn't find a way to get rid of the -rpath options used by the TestFramework/