benikabocha / saba

OpenGL Viewer (OBJ PMD PMX)
MIT License
446 stars 61 forks source link

Project failed to build. #17

Closed Natrium-Chloride closed 4 years ago

Natrium-Chloride commented 4 years ago

I have some problems with building (running make):

[ 62%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/GLShaderUtil.cpp.o
[ 63%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/GLSLUtil.cpp.o
[ 64%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/GLTextureUtil.cpp.o
/home/kirschrot/binz/saba-master/example/simple_mmd_viewer_glfw.cpp: In function ‘bool SampleMain(std::vector<std::__cxx11::basic_string<char> >&)’:
/home/kirschrot/binz/saba-master/example/simple_mmd_viewer_glfw.cpp:1245:18: error: ‘GLFW_TRANSPARENT_FRAMEBUFFER’ was not declared in this scope
 1245 |   glfwWindowHint(GLFW_TRANSPARENT_FRAMEBUFFER, GL_TRUE);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
example/CMakeFiles/simple_mmd_viewer_glfw.dir/build.make:62: recipe for target 'example/CMakeFiles/simple_mmd_viewer_glfw.dir/simple_mmd_viewer_glfw.cpp.o' failed
make[2]: *** [example/CMakeFiles/simple_mmd_viewer_glfw.dir/simple_mmd_viewer_glfw.cpp.o] Error 1
CMakeFiles/Makefile2:463: recipe for target 'example/CMakeFiles/simple_mmd_viewer_glfw.dir/all' failed
make[1]: *** [example/CMakeFiles/simple_mmd_viewer_glfw.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 65%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/Model/OBJ/GLOBJModel.cpp.o
[ 66%] Linking CXX executable mmd2obj
[ 66%] Built target mmd2obj
[ 67%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/Model/OBJ/GLOBJModelDrawContext.cpp.o
[ 68%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/Model/OBJ/GLOBJModelDrawer.cpp.o
[ 69%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/Model/XFile/GLXFileModel.cpp.o
[ 70%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/Model/XFile/GLXFileModelDrawContext.cpp.o
[ 70%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/Model/XFile/GLXFileModelDrawer.cpp.o
[ 71%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/Model/MMD/GLMMDModel.cpp.o
[ 72%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/Model/MMD/GLMMDModelDrawContext.cpp.o
[ 73%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/GL/Model/MMD/GLMMDModelDrawer.cpp.o
[ 74%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/Viewer/Camera.cpp.o
[ 75%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/Viewer/Light.cpp.o
[ 76%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/Viewer/Grid.cpp.o
[ 77%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/Viewer/ModelDrawer.cpp.o
[ 78%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/Viewer/Viewer.cpp.o
[ 78%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/Viewer/ViewerCommand.cpp.o
[ 79%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/Viewer/ViewerContext.cpp.o
[ 80%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/Viewer/CameraOverrider.cpp.o
[ 81%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/Viewer/VMDCameraOverrider.cpp.o
[ 82%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/Saba/Viewer/ShadowMap.cpp.o
[ 83%] Building C object viewer/CMakeFiles/SabaViewer.dir/__/external/gl3w/src/gl3w.c.o
[ 84%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/__/external/imgui/src/imgui.cpp.o
[ 85%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/__/external/imgui/src/imgui_draw.cpp.o
[ 86%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/__/external/imgui/src/imgui_widgets.cpp.o
[ 86%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/__/external/imgui/src/imgui_impl_glfw.cpp.o
[ 87%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/__/external/imgui/src/imgui_impl_opengl3.cpp.o
[ 88%] Building CXX object viewer/CMakeFiles/SabaViewer.dir/__/external/imgui/src/ImGuizmo.cpp.o
[ 89%] Linking CXX static library libSabaViewer.a
[ 89%] Built target SabaViewer
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

my compiler:

$ gcc --version
gcc (Ubuntu 10.1.0-2ubuntu1~18.04) 10.1.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Am I doing something wrong, maybe?

benikabocha commented 4 years ago

GLFW_TRANSPARENT_FRAMEBUFFER requires GLFW 3.3 or higher.

Natrium-Chloride commented 4 years ago

Ok, Thank you. My bad. :)