GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » linking GNU scientic library
linking GNU scientic library [message #6436] Tue, 15 April 2008 15:54 Go to next message
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 #6438 is a reply to message #6436] Tue, 15 April 2008 16:35 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de

but the makefile architecure and the LD_LIBRARY_PATH are not set up correctly.
Can somebody please fix this?

libgsl can be added to the LD_LIBRARY_PATH, but what does "makefile architecture" means?

Mohammad
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: *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
Previous Topic: PandaRoot EVO meeting WED Apr 9 14:00-15:00
Next Topic: TPC dEdx
Goto Forum:
  


Current Time: Thu Nov 28 07:43:16 CET 2024

Total time taken to generate the page: 0.00666 seconds