Build failed in ubuntu
Closed this issue · 2 comments
mingganz commented
I followed the steps in document to build the library but got the following error:
zhoumg@ddttgg:~/src/glblib/GLBLib/build$ make
[ 5%] Building CXX object CMakeFiles/GLB.dir/src/Cursor.cpp.o
In file included from /home/zhoumg/src/glblib/GLBLib/src/Cursor.cpp:3:
/home/zhoumg/src/glblib/GLBLib/include/GLB/Window.h: In member function ‘std::string glb::Window::GetTitle() const’:
/home/zhoumg/src/glblib/GLBLib/include/GLB/Window.h:42:54: error: ‘glfwGetWindowTitle’ was not declared in this scope; did you mean ‘glfwSetWindowTitle’?
42 | inline std::string GetTitle() const { return glfwGetWindowTitle(s_window); }
| ^~~~~~~~~~~~~~~~~~
| glfwSetWindowTitle
make[2]: *** [CMakeFiles/GLB.dir/build.make:104: CMakeFiles/GLB.dir/src/Cursor.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/GLB.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
zhoumg@ddttgg:~/src/glblib/GLBLib/build$
YunTianZhou commented
YunTianZhou commented