Menu

compile gandalf on mac osx 4 with gcc-4.0.0

Help
Lee
2005-11-11
2013-04-29
  • Lee

    Lee - 2005-11-11

    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

     
    • Marco Bertini

      Marco Bertini - 2006-10-20

      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/

       

Log in to post a comment.