linking GNU scientic library [message #6436] |
Tue, 15 April 2008 15:54 |
Anonymous Poster
|
|
From: *natpool.mwn.de
|
|
Hello everybody,
the gsl has become part of the external packages. I would like to use it in genfit now, but the makefile architecure and the LD_LIBRARY_PATH are not set up correctly.
Can somebody please fix this?
Cheers, Christian
|
|
|
|
Re: linking GNU scientic library [message #6439 is a reply to message #6438] |
Tue, 15 April 2008 16:49 |
Anonymous Poster
|
|
From: *natpool.mwn.de
|
|
Hi Mohammad,
thanks for your answer. Yes it should be included in the LD_LIBRARY_PATH by config.sh.
I can link it by for example putting
target_link_libraries(genfit -L${SIMPATH}/basics/lib/gsl/lib -lgsl -lgslcblas)
into the CMakeLists.txt. What I meant by makefile architecture was that when I do cmake I get all this stuff like "check for ROOT". There is nothing about gsl and also insise CMakelists I dont have variables like ${CMAKE_LIB_DIR} or so. But my solution is OK IO think.
But I found one more problem: Since on my system I have the gsl installed even in /usr/lib, an ldd on the libgenfit.so will show, that the lib linked at runtime will be NOT the one from the external packages. How can I change this?
Bye, Christian
|
|
|