I have a project in Ubuntu 14.04 that I migrated to Ubuntu 16.04, I had some linking problems witch I fixed by recompiling all of the Dependencies, but there is one library that is causing me problems: stepcode.
Before recompiling this one I was getting this error message:
[ 99%] Building CXX object ToolKitApp/CMakeFiles/ToolKitApp.dir/ToolKitApp_automoc.cpp.o
[ 99%] Linking CXX executable ToolKitApp
../Importer/libImporter.so: undefined reference to `STEPfile::STEPfile(Registry&, InstMgr&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)'
../Importer/libImporter.so: undefined reference to `STEPfile::ReadExchangeFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)'
collect2: error: ld returned 1 exit status
make[2]: *** [ToolKitApp/ToolKitApp] Error 1
make[1]: *** [ToolKitApp/CMakeFiles/ToolKitApp.dir/all] Error 2
make: *** [all] Error 2
ToolKitApp/CMakeFiles/ToolKitApp.dir/build.make:953: recipe for target 'ToolKitApp/ToolKitApp' failed
CMakeFiles/Makefile2:463: recipe for target 'ToolKitApp/CMakeFiles/ToolKitApp.dir/all' failed
Makefile:127: recipe for target 'all' failed
The undefined reference corresponds to the file stepfile.h in the stepcode library
So I tried recompiling it, but then I get this message:
[ 77%] Building CXX object Importer/CMakeFiles/Importer.dir/Parser/CartesianPointEntity.cpp.o
[ 77%] Building CXX object Importer/CMakeFiles/Importer.dir/Parser/EntityFactory.cpp.o
In file included from /usr/include/c++/5/cstddef:45:0,
from /usr/include/eigen3/Eigen/Core:221,
from /usr/include/eigen3/Eigen/Geometry:11,
from /home/onilsson/DevRoot/src/Importer/../Core/EigenExtensions/EigenGeometryAndPlugins.h:10,
from /home/onilsson/DevRoot/src/Importer/Parser/../ArrayTypesDefines.h:3,
from /home/onilsson/DevRoot/src/Importer/Parser/STEPCodeParser.h:11,
from /home/onilsson/DevRoot/src/Importer/Parser/EntityFactory.h:2,
from /home/onilsson/DevRoot/src/Importer/Parser/EntityFactory.cpp:1:
/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h:436:38: error: expected unqualified-id before ‘;’ token
typedef decltype(nullptr) nullptr_t;
^
Importer/CMakeFiles/Importer.dir/build.make:494: recipe for target 'Importer/CMakeFiles/Importer.dir/Parser/EntityFactory.cpp.o' failed
make[2]: *** [Importer/CMakeFiles/Importer.dir/Parser/EntityFactory.cpp.o] Error 1
CMakeFiles/Makefile2:550: recipe for target 'Importer/CMakeFiles/Importer.dir/all' failed
Makefile:127: recipe for target 'all' failed
make[1]: *** [Importer/CMakeFiles/Importer.dir/all] Error 2
make: *** [all] Error 2
now the error doesn’t seem to have any connection with the stepcode library ( STEPCodeParser being a file in the project) but before recompiling stepcode, I wasn’t getting any error at this point of the compilation.
I tried checking if stepcode had a header with the same name as the one causing problem, it didn’t, so I don’t understand how recompiling stepcode suddenly causes this problem.
Does anyone know what’s going on?
Aucun commentaire:
Enregistrer un commentaire