From: Jonathan S. <jjs...@vc...> - 2007-10-08 13:44:30
|
Thomas Weber wrote: > Am Freitag, den 05.10.2007, 09:02 -0600 schrieb Jonathan Stickel: >> Thomas Weber wrote: >>> Am Freitag, den 05.10.2007, 08:16 -0600 schrieb Jonathan Stickel: >>>> Thomas Weber wrote: >>>>> Am Donnerstag, den 04.10.2007, 07:55 -0600 schrieb Jonathan Stickel: >>>>>> Problem 2: >>>>>> Linking of libraries does not work automatically. As a workaround, I added >>>>>> >>>>>> -L/sw/lib/octave-2.9.14 -loctinterp -loctave -lcruft -lvtkCommon >>>>> Can you post the mkoctfile script? >>>>> >>>> Do you mean the link.txt file? It is attached. >>> No, the mkoctfile script that ships with Octave. It should be a normal >>> shell script. >>> >> OK, it is attached. > > Hmm, Octave is missing an rpath to its libraries. On Linux, the relevant > line is > : ${RLD_FLAG="-Wl,-rpath -Wl,/usr/lib/octave-2.9.14"} > > Did you compile Octave yourself or came it packaged like this? > Right now I have octave installed via Fink. Previously I self-compiled octave and had the same problem with the library linking of octaviz. It may be that -rpath is treated differently in Mac OS X. I needed those flags in link.txt to compile liboctaviz.dylib itself as well as the oct files, though, and so the problem isn't just with mkoctfile. Isn't there a way to add those flags through appropriate modification of a CMakeLists.txt file? Thanks, Jonathan |