assimp / assimp_view

The Asset-Importer-Lib Viewer
MIT License
28 stars 7 forks source link

Not able to build on Linux #11

Open adlingepa opened 9 months ago

adlingepa commented 9 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

orzel7 commented 7 months ago

Me too... Most notable problem is include some windows stuff: "Engine/Platform/win32/Win32Window.h" After commentig out i see a lot of compilation errors like

In file included from /usr/include/X11/Xlib.h:44, from /usr/include/SDL2/SDL_syswm.h:69, from /home/eugene/Downloads/assimp/assimp_view/src/main.cpp:28: /home/eugene/Downloads/assimp/assimp_view/contrib/osre/contrib/cppcore/include/cppcore/Container/TArray.h:66:9: error: expected identifier before numeric constant 66 | Unsorted, ///< No sorting performed. | ^~~~

orzel7 commented 7 months ago

Additionaly, HelloWorld crashes:

./HelloWorld ==================================================================================================== New OSRE run. ( 02.06.2024 15:57:15 ) ==================================================================================================== Info: Platform plugin created for Linux. (/home/eugene/Downloads/assimp/assimp_view/contrib/osre/src/Engine/Platform/PlatformInterface.cpp, 210)( PlatformInterface ) ( 02.06.2024 15:57:15 ) SDL2RenderContext::onCreate(AbstractWindow *window) Info: Creation finished. (/home/eugene/Downloads/assimp/assimp_view/contrib/osre/samples/00_HelloWorld/HelloWorld.cpp, 97)( HelloWorldApp ) ( 02.06.2024 15:57:15 ) Info: OpenGL renderer initiated. (/home/eugene/Downloads/assimp/assimp_view/contrib/osre/src/Engine/Platform/sdl2/SDL2OGLRenderContext.cpp, 62)( SDL2RenderContext ) ( 02.06.2024 15:57:15 ) Info: Version : 4.6 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1 (/home/eugene/Downloads/assimp/assimp_view/contrib/osre/src/Engine/Platform/sdl2/SDL2OGLRenderContext.cpp, 63)( SDL2RenderContext ) ( 02.06.2024 15:57:15 ) Info: Intel (/home/eugene/Downloads/assimp/assimp_view/contrib/osre/src/Engine/RenderBackend/OGLRenderer/OGLRenderBackend.cpp, 181)( OGLRenderBackend ) ( 02.06.2024 15:57:15 ) Info: Mesa Intel(R) Graphics (ADL GT2) (/home/eugene/Downloads/assimp/assimp_view/contrib/osre/src/Engine/RenderBackend/OGLRenderer/OGLRenderBackend.cpp, 186)( OGLRenderBackend ) ( 02.06.2024 15:57:15 ) Info: 4.6 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1 (/home/eugene/Downloads/assimp/assimp_view/contrib/osre/src/Engine/RenderBackend/OGLRenderer/OGLRenderBackend.cpp, 191)( OGLRenderBackend ) ( 02.06.2024 15:57:15 ) Link log: error: linking with uncompiled/unspecialized shadererror: linking with uncompiled/unspecialized shader ( 02.06.2024 15:57:15 ) Err: Error while linking shader (/home/eugene/Downloads/assimp/assimp_view/contrib/osre/src/Engine/RenderBackend/OGLRenderer/OGLRenderBackend.cpp, 611)( OGLRenderBackend ) ( 02.06.2024 15:57:15 ) ==================================================================================================== OSRE run ended. ( 02.06.2024 15:57:18 ) ====================================================================================================