GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Problems compiling CADConverter on Ubuntu 9.04
Problems compiling CADConverter on Ubuntu 9.04 [message #8904] Wed, 24 June 2009 17:09 Go to next message
Sverre Dørheim is currently offline  Sverre Dørheim
Messages: 23
Registered: October 2008
Location: Munich
occasional visitor
From: 129.187.154*
Using the steps described in the wiki I get these errors when doing make on the CadConverter:

Toggle Spoiler


All variables has been set as explained in the wiki. CMake runs without errors. The errors points to some variables not beeing declared which would imply that somehow an include is missing.

I'm using OpenCASCADES 6.3 and CadConverter2.2_OCC6.3.tar.gz
Also tried the tip from Simone Bianco in the wiki by changing:
{CadConverterConsole}/CMakeLists.txt   -->   CadConverterFixed/CMakeLists.txt 
{CadConverterConsole}/CadDDLConverter/CMakeLists.txt   -->   CadConverterFixed/CadDDLConverter/CMakeLists.txt 
{CadConverterConsole}/cmake/Modules/FindOpenCascade.cmake   -->   CadConverterFixed/cmake/Modules/FindOpenCascade.cmake


Does anybody have a clue how this might be fixed?

Best regards and thanks in advance for all your efforts,
Sverre
Re: Problems compiling CADConverter on Ubuntu 9.04 [message #8905 is a reply to message #8904] Wed, 24 June 2009 18:02 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 Sverre

Probably all the errors has to do with changes in the standard header files. With new versions of gcc there were a cleanup of
include statements in the header files. This results in compilation errors because functions/definitions are not known any longer.

For example INT_MAX, INT_MIN and CHAR_BIT are defined in climits.h. std::setw and std::setprecision are defined in iomanip. Adding these header files should solve the problems.

Since the problems are in an external package maybe upgrade to a newer version of OpenCascade.

Ciao

Florian
icon7.gif  Re: Problems compiling CADConverter on Ubuntu 9.04 [message #8906 is a reply to message #8905] Wed, 24 June 2009 18:14 Go to previous message
Sverre Dørheim is currently offline  Sverre Dørheim
Messages: 23
Registered: October 2008
Location: Munich
occasional visitor
From: 129.187.154*
Hi Florian

Thanks for the quick answer. As you pointed out the problem seems to be located in the header files of OpenCascade. What wonders me is that I have the latest verion, downloaded it today. And it compiled without a single error.

I will now try you tip and include those files in the OpenCascade headers.
Edit 24.06.09 19:45
I got it to compile by changing all the includes for config.h. The were included using:
#include <config.h>
Since the ROOT came before in the include-path the ROOT config.h was included instead of the one belonging to OpenCascade. So i changed it to:
#include "config.h"

In addition I had to remove the compiler option HAVE_LIMITS in the CMakeLists.txt file. With this variable not se, the limits.h file is included.

Best Regards
Sverre

[Updated on: Wed, 24 June 2009 19:51]

Report message to a moderator

Previous Topic: Bug in PndEmcMapper class: neighbour lists of PndEmcTwoCoordIndex wrong
Next Topic: incomplete types
Goto Forum:
  


Current Time: Sat Apr 20 20:59:22 CEST 2024

Total time taken to generate the page: 0.00867 seconds