GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » linking GNU scientic library
Re: linking GNU scientic library [message #6439 is a reply to message #6438] Tue, 15 April 2008 16:49 Go to previous message
Anonymous Poster From: *
Hi Mohammad,

thanks for your answer. Yes it should be included in the LD_LIBRARY_PATH by
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 will show, that the lib linked at runtime will be NOT the one from the external packages. How can I change this?

Bye, Christian
Read Message
Read Message
Read Message
Previous Topic: PandaRoot EVO meeting WED Apr 9 14:00-15:00
Next Topic: TPC dEdx
Goto Forum:

Current Time: Sat Jul 20 05:38:57 CEST 2024

Total time taken to generate the page: 0.00960 seconds