From: Thomas W. <tho...@gm...> - 2007-12-31 08:48:17
|
Am Sonntag, den 30.12.2007, 15:24 -0700 schrieb Jonathan Stickel: > Thomas Weber wrote: > > Am Sonntag, den 30.12.2007, 13:11 -0700 schrieb Jonathan Stickel: > >> I get the following error with the newly implemented rpath flag: > >> > >> /usr/bin/ld: unknown flag: > >> -rpath=/sw/lob/octave/3.0.0/site/oct/i386-apple-darwin8.11.1/octaviz > >> collect2: ld returned 1 exit status > >> make[2]: *** [Common/vtk_init.oct] Error 1 > >> make[1]: *** [Common/CMakeFiles/OctavizCommonFiles.dir/all] Error 2 > >> make: *** [all] Error 2 > > > > Can you look into ld's manpage and search for "rpath" on Mac? Sorry, I > > don't have any access to such a system, but there must be a way to get > > this working on Mac. > > A search of the ld manpage shows no mention of "rpath". I am not very > knowledgeable about dynamic libraries, but it seems to me that Mac puts > some path information directly in the library files. Okay, how about the following call: ========================================================================= cmake \ -DCMAKE_SKIP_RPATH:BOOL=YES \ -DVTK_DIR:PATH=/usr/lib/vtk-5.0 \ -DVTK_DATA_ROOT:PATH=/usr/share/VTKData \ -DOCTAVIZ_LIBRARY_DIR:PATH=/usr/lib/octaviz \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ .. ========================================================================= If you call cmake directly in the source directory, you need only one point at the end. I usually create a subdirectory build/, though. If it doesn't work, try leaving the "-DOCTAVIZ_LIBRARY_DIR:PATH" out. Thomas |