CoppeliaRobotics / simAssimp

CoppeliaSim plugin for importing/exporting CAD data
Other
1 stars 2 forks source link

Error during building the extension #1

Closed mrkulk closed 4 years ago

mrkulk commented 4 years ago

I am using ubuntu 18.04 and I get the following error after executing cmake --build .

coppelia/simExtAssimp/plugin.cpp:107:65: error: ‘aiProcess_DropNormals’ was not declared in this scope aiProcess_SortByPType|aiProcess_RemoveComponent|aiProcess_DropNormals| error: ‘aiProcess_EmbedTextures’ was not declared in this scope aiProcess_GenUVCoords|aiProcess_TransformUVCoords|aiProcess_EmbedTextures;

...

Coppelia commented 4 years ago

Hello, make sure to use the latest source for Assimp (CoppeliaSim is currently using Assimp version 4.1). Cheers

mrkulk commented 4 years ago

@Coppelia : thanks for the quick response.

I can compile simExtAssimp using assimp from head (https://github.com/assimp/assimp). But obviously when I copy libsimExtAssimp.so to the CoppeliaSim_Player_V4_0_0_Ubuntu18_04 then it crashes with


Loading the CoppeliaSim library...
Done!
Launching CoppeliaSim...
lib: 0
lic: 0

CoppeliaSim Player V4.0.0. (rev. 4)
Using the default Lua library.
Loaded the video compression library.
Add-on script 'simAddOnScript_PyRep.lua' was loaded.
If CoppeliaSim crashes now, try to install libgl1-mesa-dev on your system:
>sudo apt install libgl1-mesa-dev
OpenGL: NVIDIA Corporation, Renderer: GeForce RTX 2080 with Max-Q Design/PCIe/SSE2, Version: 4.6.0 NVIDIA 440.82
...did not crash.
Simulator launched.
Plugin 'Geometric': loading...
Plugin 'Geometric': load succeeded.
Plugin 'Assimp': loading...

Error: signal 11:

/third_party/coppelia/CoppeliaSim_Player_V4_0_0_Ubuntu18_04/libcoppeliaSim.so(_Z11_segHandleri+0x2b)[0x7f6ed64070bb]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f6edb84af20]

If I install assimp 4.1 instead then I get this error when building simExtAssimp:

[  9%] Building CXX object CMakeFiles/simExtAssimp.dir/plugin.cpp.o
/third_party/coppelia/simExtAssimp/plugin.cpp: In function ‘void assimpImportShapes(const char*, int, float, int, int, std::vector<int>&)’:
/third_party/coppelia/simExtAssimp/plugin.cpp:107:65: error: ‘aiProcess_DropNormals’ was not declared in this scope
                 aiProcess_SortByPType|aiProcess_RemoveComponent|aiProcess_DropNormals|
                                                                 ^~~~~~~~~~~~~~~~~~~~~
/third_party/coppelia/simExtAssimp/plugin.cpp:107:65: note: suggested alternative: ‘aiProcess_GenNormals’
                 aiProcess_SortByPType|aiProcess_RemoveComponent|aiProcess_DropNormals|
                                                                 ^~~~~~~~~~~~~~~~~~~~~
                                                                 aiProcess_GenNormals
/third_party/coppelia/simExtAssimp/plugin.cpp:109:67: error: ‘aiProcess_EmbedTextures’ was not declared in this scope
                 aiProcess_GenUVCoords|aiProcess_TransformUVCoords|aiProcess_EmbedTextures;
                                                                   ^~~~~~~~~~~~~~~~~~~~~~~
/third_party/coppelia/simExtAssimp/plugin.cpp:109:67: note: suggested alternative: ‘aiProcess_FindInstances’
                 aiProcess_GenUVCoords|aiProcess_TransformUVCoords|aiProcess_EmbedTextures;
                                                                   ^~~~~~~~~~~~~~~~~~~~~~~
                                                                   aiProcess_FindInstances
Coppelia commented 4 years ago

Doesn't the library that comes with CoppeliaSim V4.0.0 work? Have you taken the version of simExtAssimp from release 4.0.0 or the last version of it? The last version of it is using API calls that are not supported in V4.0.0 (but will in V4.1.0 to come out next month)