Linear Collider Forum



Home » Software Tools » Marlin et al » compilation with TMinuit
compilation with TMinuit [message #2394] Thu, 22 September 2016 07:00 Go to next message
jeans
Messages: 22
Registered: November 2012
Hello,

I'm having difficulties compiling a processor which uses TMinuit.


Since ilcsoft v01-17-10 (setup using the script at
/cvmfs/ilc.desy.de/sw/x86_64_gcc44_sl6/v01-17-10/init_ilcsof t.sh ), when I try to compile a processor containing e.g.


"#include "TMinuit.h"
.
.
.
TMinuit dd(2);
.
.
."


I get a compiler error

CMakeFiles/simplest.dir/src/simple.cc.o: In function `simplestProcessor::processEvent(EVENT::LCEvent*)':
/home/ilc/jeans/myProcessors/simplestProcessor/src/simple.cc :38: undefined reference to `TMinuit::TMinuit(int)'

I don't see a similar error when building against previous central installations of ilcsoft (at least I've tested v01-17-09 and v01-17-08).

My CMakeLists.txt contains

SET( ROOT_USE_COMPONENTS Minuit )
FIND_PACKAGE( ROOT REQUIRED )
INCLUDE_DIRECTORIES( ${ROOT_INCLUDE_DIRS} )
LINK_LIBRARIES( ${ROOT_LIBRARIES} )
ADD_DEFINITIONS( ${ROOT_DEFINITIONS} )


Thanks for any insights/suggestions,
Daniel.
Re: compilation with TMinuit [message #2395 is a reply to message #2394] Thu, 22 September 2016 07:18 Go to previous messageGo to next message
gaede
Messages: 233
Registered: January 2004
Location: DESY, Hamburg
Hi Daniel,

can you try the following:

FIND_PACKAGE( ROOT REQUIRED COMPONENTS Minuit)
INCLUDE_DIRECTORIES( ${ROOT_INCLUDE_DIRS} )
LINK_LIBRARIES( ${ROOT_LIBRARIES ${ROOT_COMPONENT_LIBRARIES} )



Cheers, Frank.

Re: compilation with TMinuit [message #2396 is a reply to message #2395] Thu, 22 September 2016 07:25 Go to previous message
jeans
Messages: 22
Registered: November 2012
Thanks, Frank.

adding ${ROOT_COMPONENT_LIBRARIES} fixed it.

Daniel.
Previous Topic:iLCSoft release v01-17-10
Next Topic:pyLCIO in v01-17-10
Goto Forum:
  

[ PDF ]

Current Time: Tue Sep 17 17:43:28 Pacific Daylight Time 2019
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software