GSI Forum - RDF feed
type: channel
description: GSI Helmholtzzentrum für Schwerionenforschung
items: Problems compiling CADConverter on Ubuntu 9.04
items: Re: Problems compiling CADConverter on Ubuntu 9.04

Problems compiling CADConverter on Ubuntu 9.04
type: item
description: Using the steps described in the wiki I get these errors when doing make on the CadConverter: Toggle Spoiler root@sverre-laptop2:/opt/CadConv/build# make /usr/bin/cmake -H/opt/CadConv/CadConverterConsole -B/opt/CadConv/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /opt/CadConv/build/CMakeFiles /opt/CadConv/build/CMakeFiles/progress.make make -f CMakeFiles/Makefile2 all make[1]: Entering directory `/opt/CadConv/build' make -f CadDDLConverter/CMakeFiles/CADConverter.dir/build.make CadDDLConverter/CMakeFiles/CADConverter.dir/depend make[2]: Entering directory `/opt/CadConv/build' cd /opt/CadConv/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /opt/CadConv/CadConverterConsole /opt/CadConv/CadConverterConsole/CadDDLConverter /opt/CadConv/build /opt/CadConv/build/CadDDLConverter /opt/CadConv/build/CadDDLConverter/CMakeFiles/CADConverter.dir/DependInfo.cmake --color= make[2]: Leaving directory `/opt/CadConv/build' make -f CadDDLConverter/CMakeFiles/CADConverter.dir/build.make CadDDLConverter/CMakeFiles/CADConverter.dir/build make[2]: Entering directory `/opt/CadConv/build' /usr/bin/cmake -E cmake_progress_report /opt/CadConv/build/CMakeFiles 1 [ 2%] Building CXX object CadDDLConverter/CMakeFiles/CADConverter.dir/CadDDLConverter.o cd /opt/CadConv/build/CadDDLConverter && /usr/bin/c++ -DCADConverter_EXPORTS -DCSFDB -DNO_CXX_EXCEPTION -DNo_Exception -DHAVE_CONFIG_H -DHAVE_WOK_CONFIG_H -DLIN -DLININTEL -DHAVE_IOSTREAM -DHAVE_LIMITS -g -fPIC -I/opt/fairROOT/fairsoft/tools/root/include -I/opt/OpenCASCADES6.3.0/inc -I/opt/fairROOT/fairsoft/tools/root/lib -I/opt/OpenCASCADES6.3.0/Linux/lib -o CMakeFiles/CADConverter.dir/CadDDLConverter.o -c /opt/CadConv/CadConverterConsole/CadDDLConverter/CadDDLConverter.cc In file included from /opt/OpenCASCADES6.3.0/inc/Standard_Macro.hxx:11, from /opt/OpenCASCADES6.3.0/inc/Handle_TDF_Data.hxx:26, from /opt/OpenCASCADES6.3.0/inc/TDF_Label.hxx:29, from /opt/CadConv/CadConverterConsole/CadD…
creator: Sverre Dørheim
date: 2009-06-24T15:09:55-00:00

Re: Problems compiling CADConverter on Ubuntu 9.04
type: item
description: 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
creator: Florian Uhlig
date: 2009-06-24T16:02:57-00:00

Re: Problems compiling CADConverter on Ubuntu 9.04
type: item
description: 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
creator: Sverre Dørheim
date: 2009-06-24T16:14:09-00:00