Re: [cgma-dev] Problem building CGM in shared mode
I tried putting cubit-dir and cubit-bin-dir in my path in both cases it doesn't find the linker and comes with /usr/bin/ld: cannot find -lcubiti19 error in the make step. Since, cubit's bin directory is in the LD_LIBRARY_PATH the autotools should find the linker, but that doesn't happen.. Rajeev On 05/06/2010 05:31 PM, Tim Tautges wrote:
Doesn't it also have to be in your PATH? I seem to recall that...
- tim
Rajeev Jain wrote:
On 05/06/2010 04:26 PM, Robert Smith wrote:
Is there some trick to getting CGM to build with --enable-shared? This also has Cubit turned on.
I tried running the configure as it is done on the buildbot server and I continually get an error when it tries to link libcgm.la. It says that '/bin/ld cannot find -lcubiti19'. That makes sense since there is no -L switch to point to the Cubit install directory in the link line although the libcubiti19.so file is included explicitly in the libtool line. And the output of the make is slightly different on my build than the buildbot build.
Could this be a libtool mismatch? I'm on the ANL Linux cluster running 1.5.26.
--Bob Adding LDFLAGS=-L/home/rajeev/cubit-32/bin LIBS=-lcubiti19 to the configure script did the trick for cubit-32 using 32 bit ubuntu-10.04, This can be found at http://trac.mcs.anl.gov/projects/ITAPS/ticket/158
-- Rajeev
participants (1)
-
Rajeev Jain