GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » CMake Problem Thread
Re: CMake Problem Thread [message #4779 is a reply to message #4778] Wed, 01 August 2007 10:42 Go to previous messageGo to next message
Florian Nebel
Messages: 10
Registered: July 2007
Location: TU Munich
occasional visitor
From: *e12.physik.tu-muenchen.de
Hi,

nice Idea - I just tried to compile without the line in question. However, the error remains unchanged.

Re: CMake Problem Thread [message #4780 is a reply to message #4308] Wed, 01 August 2007 10:47 Go to previous messageGo to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: 141.30.85*
Hi Florian,

Do you have added your classes to the linkdef? Maybe it's a stupid question.
If you like to, you might send me your code and I'll try my best...

Ciao, Ralf.
Re: CMake Problem Thread [message #4811 is a reply to message #4308] Thu, 02 August 2007 17:37 Go to previous messageGo to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: 141.30.85*
Hi Florian,

In your update 1197 of the pandaroot/Dart.sh you also checked in your local path setting. This causes a problem when you run Dart.sh the second time after rev. 1197 since the pathes are not set properly. It causes even an error, because the svn tries to merge the versions and gets a conflict.
Hopefully there is some way around this, for the next update of the Dart.sh.

Ciao, Ralf.
Re: CMake Problem Thread [message #4812 is a reply to message #4811] Thu, 02 August 2007 17:43 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
I edited the file by myself, in order to eliminate this "double" status.
Probably everybody has to do the same.
Re: CMake Problem Thread [message #4814 is a reply to message #4811] Thu, 02 August 2007 18:34 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Ralf

Thanks for your information. This was not planed. I commit already a new and hopefully correct version.

Ciao

Florian
Re: CMake Problem Thread [message #5141 is a reply to message #4814] Tue, 02 October 2007 12:13 Go to previous messageGo to next message
Sebastian Neubert is currently offline  Sebastian Neubert
Messages: 282
Registered: March 2006
Location: Munich
first-grade participant

From: *e18.physik.tu-muenchen.de
Hi Florian!

Maybe you can help me. What did I do wrong to create these warnings:

CMakeFiles/Makefile2:2028: warning: overriding commands for target `trackrep/CMakeFiles/trackrep.dir/all'
CMakeFiles/Makefile2:1668: warning: ignoring old commands for target `trackrep/CMakeFiles/trackrep.dir/all'
CMakeFiles/Makefile2:2038: warning: overriding commands for target `trackrep/CMakeFiles/trackrep.dir/rule'
CMakeFiles/Makefile2:1678: warning: ignoring old commands for target `trackrep/CMakeFiles/trackrep.dir/rule'
CMakeFiles/Makefile2:2047: warning: overriding commands for target `trackrep/CMakeFiles/trackrep.dir/preinstall'
CMakeFiles/Makefile2:1687: warning: ignoring old commands for target `trackrep/CMakeFiles/trackrep.dir/preinstall'
CMakeFiles/Makefile2:2054: warning: overriding commands for target `trackrep/CMakeFiles/trackrep.dir/clean'
CMakeFiles/Makefile2:1694: warning: ignoring old commands for target `trackrep/CMakeFiles/trackrep.dir/clean'


Cheers, Sebastian.


Sebastian Neubert
Technische Universität München
Department Physik E18
sneubert@e18.physik.tu-muenchen.de
tel: +49-8928912592
Re: CMake Problem Thread [message #5151 is a reply to message #5141] Tue, 02 October 2007 15:46 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *smi.oeaw.ac.at
Hi Sebastin

Did you get this errors when runing cmake or when you run make?
Did you change something in the CMakeLists.txt of the trackrep
directory?

Ciao

Florian
Re: CMake Problem Thread [message #5152 is a reply to message #5151] Tue, 02 October 2007 16:01 Go to previous messageGo to next message
Sebastian Neubert is currently offline  Sebastian Neubert
Messages: 282
Registered: March 2006
Location: Munich
first-grade participant

From: *e18.physik.tu-muenchen.de
Hi!

I get it everytime I run make Sad
And it appeared from the beginning on when I created trackrep.
It seems not to do any harm.

Sebastian.


Sebastian Neubert
Technische Universität München
Department Physik E18
sneubert@e18.physik.tu-muenchen.de
tel: +49-8928912592
Re: CMake Problem Thread [message #5153 is a reply to message #5152] Tue, 02 October 2007 16:17 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *smi.oeaw.ac.at
Hello Sebastian

I think this has to do with the fact that you define the
TRACKREP_HEADERS two times.
The first time you use

CHANGE_FILE_EXTENSION(*.cxx *.h TRACKREP_HEADERS "${TRACKREP_SRCS}")

later in the file you have

set(TRACKREP_HEADERS GeaneTrackRep.h)

Try to remove one of this lines and see what happens.

Ciao

Florian
Re: CMake Problem Thread [message #5154 is a reply to message #5153] Tue, 02 October 2007 16:36 Go to previous messageGo to next message
Sebastian Neubert is currently offline  Sebastian Neubert
Messages: 282
Registered: March 2006
Location: Munich
first-grade participant

From: *e18.physik.tu-muenchen.de
No change Sad

Sebastian Neubert
Technische Universität München
Department Physik E18
sneubert@e18.physik.tu-muenchen.de
tel: +49-8928912592
Re: CMake Problem Thread [message #7085 is a reply to message #5153] Mon, 21 July 2008 18:46 Go to previous messageGo to next message
Vanniarajan Suyam Jothi is currently offline  Vanniarajan Suyam Jothi
Messages: 35
Registered: October 2007
Location: Groningen
continuous participant

From: *KVI.nl
Hello Florian,
I have the following GLinkDef.h file for the Global pid directory.


// $Id: LHETrackLinkDef.h,v 1.3 2005/02/04 16:24:01 roleg Exp $

#ifdef __CINT__

#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;

#pragma link C++ class PndPidCand+;
#pragma link C++ class PndGeaneTrTpcTof+;
#pragma link C++ class PndGeaneTrTpcIdealTof+;
#pragma link C++ class PndGpidCollTask+;
#pragma link C++ class MultiClassBdtTrain+;
#pragma link C++ class Event+;
#pragma link C++ class EvtGenTask+;
#pragma link C++ class PndGpidTask+;

#endif






when I do Make install I get the Following Error

Error: link requested for unknown class PndGpidTask /home/vanni/fairsoft/pandaroot/gpid/GpidLinkDef.h:16:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing /home/vanni/fairsoft/build/gpid/GpidDict.cxx /home/vanni/fairsoft/build/gpid/GpidDict.h !!!
Error: /home/vanni/fairsoft/tools/root/bin/rootcint: error loading headers...
make[2]: *** [gpid/GpidDict.cxx] Error 1
make[1]: *** [gpid/CMakeFiles/Gpid.dir/all] Error 2
make: *** [all] Error 2



I get this Error when ever I add a new Class.
Can you help me with this? how can I solve this problem.

Regards
Vanni
Re: CMake Problem Thread [message #7086 is a reply to message #7085] Mon, 21 July 2008 18:54 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: *dip.t-dialin.net
Hi Vanni,

did you add your class to the CMakeList.txt file?

Mohammad
Re: CMake Problem Thread [message #7087 is a reply to message #7086] Mon, 21 July 2008 19:03 Go to previous messageGo to next message
Vanniarajan Suyam Jothi is currently offline  Vanniarajan Suyam Jothi
Messages: 35
Registered: October 2007
Location: Groningen
continuous participant

From: *KVI.nl
Hi Mohammad,

Yes I have added them in the srcs list.
My CMakeList.txt included here

[Updated on: Mon, 21 July 2008 19:04]

Report message to a moderator

Re: CMake Problem Thread [message #7090 is a reply to message #7087] Tue, 22 July 2008 09:38 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi

Did you add the directory where the file is located to the list
of link directories?
Can you please send me the CMakeLists.txt file of your directory.

Ciao

Florian
Re: CMake Problem Thread [message #7098 is a reply to message #7090] Tue, 22 July 2008 14:26 Go to previous messageGo to next message
Vanniarajan Suyam Jothi is currently offline  Vanniarajan Suyam Jothi
Messages: 35
Registered: October 2007
Location: Groningen
continuous participant

From: *KVI.nl
Hi Florian,
I have included my CMakeLists.txt with the previous
message
vanni
Re: CMake Problem Thread [message #7101 is a reply to message #7098] Tue, 22 July 2008 15:17 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi

Sorry, but i overlooked the attachement. For me everything looks fine. To test some things please remove the following line

#pragma link C++ class PndGpidTask+;

from your linkdef file and run the compilation again.
I wonder why there are no complaines about the other files. Could it be that there is some typo in the class name in the PndGpidTask.h file.

Ciao

Florian

Re: CMake Problem Thread [message #7103 is a reply to message #7101] Tue, 22 July 2008 17:09 Go to previous messageGo to next message
Vanniarajan Suyam Jothi is currently offline  Vanniarajan Suyam Jothi
Messages: 35
Registered: October 2007
Location: Groningen
continuous participant

From: *KVI.nl
If I remove that line, There is no such Error. It is smooth compilation.

please tell me
What is that typo?
Re: CMake Problem Thread [message #7107 is a reply to message #4308] Wed, 23 July 2008 12:05 Go to previous messageGo to next message
Vanniarajan Suyam Jothi is currently offline  Vanniarajan Suyam Jothi
Messages: 35
Registered: October 2007
Location: Groningen
continuous participant

From: *KVI.nl
Hi Florian,
I have solved the problem. It was really a wired one...
It was the the problem with the include guard.
earlier it was

#ifndef PNDGPIDTASK_H
#define PNDGPIDTASK_H

which gave me the problem.


now I have included one more H and made it as


#ifndef PNDGPIDTASK_HH
#define PNDGPIDTASK_HH

now the problem is solved, But still i have no clue why it is
sensitive to the H in the include guard.

cheers,
vanni



Re: CMake Problem Thread [message #7108 is a reply to message #7107] Wed, 23 July 2008 12:13 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Vanni

I have no idea why this happens. I could understand this if there is a protection with the same name in one of the other files. Than you would never see the declaration of the class and
you would get the error.

Ciao

Florian

Re: CMake Problem Thread [message #7262 is a reply to message #4308] Thu, 28 August 2008 15:35 Go to previous messageGo to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: 141.30.85*
Hello CMakers,

On the dashboard I can see that the continuous build is started at each checkin to the trunk. But what puzzles me is that it does not update to the latest revision, but rater to rev. 3454. (see dashboard)

Kind regards, Ralf.
Re: CMake Problem Thread [message #7265 is a reply to message #7262] Thu, 28 August 2008 18:02 Go to previous message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Ralf

Thanks for the info. There was somethin mixed up in the local working copy used for the Continuous build. I had to remove a lock and now it works again.

Ciao

Florian
Previous Topic: EvtGen searches for 64-bit include files
Next Topic: new external packages /misc/cbmsoft/Etch32/jul08
Goto Forum:
  


Current Time: Sat Jun 25 16:21:55 CEST 2022

Total time taken to generate the page: 0.01001 seconds