You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thank you for this nice work and the 3RScan dataset.
I tried to build rio_render package to prepare data for 3DSSG and Scenegraphfusion.
I installed OpenGL, GLFW3, GLEW, Assimp and glm following instructions. libOpenGL.so, libGLEW.so, libglfw.so, and libassimp.so is in /usr/lib/x86_64-linux-gnu. I succesfully build rio_lib, but error "undefined_reference to __gl ~" occured when I tried to build rio_render via make.
Complete error messages like below:
(scene_graph) ✘ taekbum@taekbum-System-Product-Name ~/3RScan/c++/rio_renderer/build master make
[ 8%] Linking CXX executable rio_renderer_render_all
/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function RIO::Renderer::ReadRGB(cv::Mat&)': renderer.cc:(.text+0xc9e): undefined reference to __glewBindFramebuffer'
/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function RIO::Renderer::Render(Model&, Shader&)': renderer.cc:(.text+0x1cba): undefined reference to __glewUseProgram'
/usr/bin/ld: renderer.cc:(.text+0x1d03): undefined reference to __glewUniformMatrix4fv' /usr/bin/ld: renderer.cc:(.text+0x1dfc): undefined reference to __glewGetUniformLocation'
/usr/bin/ld: renderer.cc:(.text+0x1f17): undefined reference to __glewUniform1i' /usr/bin/ld: renderer.cc:(.text+0x1f35): undefined reference to __glewGetUniformLocation'
/usr/bin/ld: renderer.cc:(.text+0x2133): undefined reference to __glewActiveTexture' /usr/bin/ld: renderer.cc:(.text+0x2442): undefined reference to __glewBindVertexArray'
/usr/bin/ld: renderer.cc:(.text+0x2467): undefined reference to __glewBindVertexArray' /usr/bin/ld: renderer.cc:(.text+0x2482): undefined reference to __glewActiveTexture'
/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function RIO::Renderer::ReadLabels(cv::Mat&, cv::Mat&)': renderer.cc:(.text+0x4395): undefined reference to __glewBindFramebuffer'
/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function RIO::Renderer::Render(bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': renderer.cc:(.text+0x5a78): undefined reference to __glewBindFramebuffer'
/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function RIO::Renderer::Init()': renderer.cc:(.text+0x77da): undefined reference to glewExperimental'
/usr/bin/ld: renderer.cc:(.text+0x77e0): undefined reference to glewInit' /usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function Shader::Shader(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)':
renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0x9a0): undefined reference to __glewCreateShader' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0x9b7): undefined reference to __glewShaderSource'
/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0x9c0): undefined reference to __glewCompileShader' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0x9d6): undefined reference to __glewGetShaderiv'
/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0x9fd): undefined reference to __glewGetShaderInfoLog' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xab2): undefined reference to __glewCreateShader'
/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xac9): undefined reference to __glewShaderSource' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xad2): undefined reference to __glewCompileShader'
/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xae3): undefined reference to __glewGetShaderiv' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xb0a): undefined reference to __glewGetShaderInfoLog'
/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xbbb): undefined reference to __glewCreateProgram' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xbcf): undefined reference to __glewAttachShader'
/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xbdc): undefined reference to __glewAttachShader' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xbe6): undefined reference to __glewLinkProgram'
/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xbfb): undefined reference to __glewGetProgramiv' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xc22): undefined reference to __glewGetProgramInfoLog'
/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xcd5): undefined reference to __glewDeleteShader' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xcde): undefined reference to __glewDeleteShader'
/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function Model::loadMaterialTextures(aiMaterial*, aiTextureType, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': renderer.cc:(.text._ZN5Model20loadMaterialTexturesEP10aiMaterial13aiTextureTypeNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN5Model20loadMaterialTexturesEP10aiMaterial13aiTextureTypeNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x544): undefined reference to __glewGenerateMipmap'
/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function Model::processMesh(aiMesh*, aiScene const*)': renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xb77): undefined reference to __glewGenVertexArrays'
/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xb86): undefined reference to __glewGenBuffers' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xb95): undefined reference to __glewGenBuffers'
/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xb9f): undefined reference to __glewBindVertexArray' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xbae): undefined reference to __glewBindBuffer'
/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xbc8): undefined reference to __glewBufferData' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xbd7): undefined reference to __glewBindBuffer'
/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xbf2): undefined reference to __glewBufferData' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xbfa): undefined reference to __glewEnableVertexAttribArray'
/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc17): undefined reference to __glewVertexAttribPointer' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc22): undefined reference to __glewEnableVertexAttribArray'
/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc45): undefined reference to __glewVertexAttribPointer' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc50): undefined reference to __glewEnableVertexAttribArray'
/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc73): undefined reference to __glewVertexAttribPointer' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc7e): undefined reference to __glewEnableVertexAttribArray'
/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xca1): undefined reference to __glewVertexAttribPointer' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xca9): undefined reference to __glewBindVertexArray'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/rio_renderer_render_all.dir/build.make:195: rio_renderer_render_all] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/rio_renderer_render_all.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Would you give me some idea to solve this problem? Thank you.
The text was updated successfully, but these errors were encountered:
Hello, thank you for this nice work and the 3RScan dataset.
I tried to build rio_render package to prepare data for 3DSSG and Scenegraphfusion.
I installed OpenGL, GLFW3, GLEW, Assimp and glm following instructions. libOpenGL.so, libGLEW.so, libglfw.so, and libassimp.so is in /usr/lib/x86_64-linux-gnu. I succesfully build rio_lib,
but error "undefined_reference to __gl ~" occured when I tried to build
rio_render
viamake
.Complete error messages like below:
(scene_graph) ✘ taekbum@taekbum-System-Product-Name ~/3RScan/c++/rio_renderer/build master make
[ 8%] Linking CXX executable rio_renderer_render_all
/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function
RIO::Renderer::ReadRGB(cv::Mat&)': renderer.cc:(.text+0xc9e): undefined reference to
__glewBindFramebuffer'/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function
RIO::Renderer::Render(Model&, Shader&)': renderer.cc:(.text+0x1cba): undefined reference to
__glewUseProgram'/usr/bin/ld: renderer.cc:(.text+0x1d03): undefined reference to
__glewUniformMatrix4fv' /usr/bin/ld: renderer.cc:(.text+0x1dfc): undefined reference to
__glewGetUniformLocation'/usr/bin/ld: renderer.cc:(.text+0x1f17): undefined reference to
__glewUniform1i' /usr/bin/ld: renderer.cc:(.text+0x1f35): undefined reference to
__glewGetUniformLocation'/usr/bin/ld: renderer.cc:(.text+0x2133): undefined reference to
__glewActiveTexture' /usr/bin/ld: renderer.cc:(.text+0x2442): undefined reference to
__glewBindVertexArray'/usr/bin/ld: renderer.cc:(.text+0x2467): undefined reference to
__glewBindVertexArray' /usr/bin/ld: renderer.cc:(.text+0x2482): undefined reference to
__glewActiveTexture'/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function
RIO::Renderer::ReadLabels(cv::Mat&, cv::Mat&)': renderer.cc:(.text+0x4395): undefined reference to
__glewBindFramebuffer'/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function
RIO::Renderer::Render(bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': renderer.cc:(.text+0x5a78): undefined reference to
__glewBindFramebuffer'/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function
RIO::Renderer::Init()': renderer.cc:(.text+0x77da): undefined reference to
glewExperimental'/usr/bin/ld: renderer.cc:(.text+0x77e0): undefined reference to
glewInit' /usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function
Shader::Shader(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)':renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0x9a0): undefined reference to
__glewCreateShader' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0x9b7): undefined reference to
__glewShaderSource'/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0x9c0): undefined reference to
__glewCompileShader' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0x9d6): undefined reference to
__glewGetShaderiv'/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0x9fd): undefined reference to
__glewGetShaderInfoLog' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xab2): undefined reference to
__glewCreateShader'/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xac9): undefined reference to
__glewShaderSource' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xad2): undefined reference to
__glewCompileShader'/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xae3): undefined reference to
__glewGetShaderiv' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xb0a): undefined reference to
__glewGetShaderInfoLog'/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xbbb): undefined reference to
__glewCreateProgram' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xbcf): undefined reference to
__glewAttachShader'/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xbdc): undefined reference to
__glewAttachShader' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xbe6): undefined reference to
__glewLinkProgram'/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xbfb): undefined reference to
__glewGetProgramiv' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xc22): undefined reference to
__glewGetProgramInfoLog'/usr/bin/ld: renderer.cc:(.text.ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7[ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7]+0xcd5): undefined reference to
__glewDeleteShader' /usr/bin/ld: renderer.cc:(.text._ZN6ShaderC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_[_ZN6ShaderC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_]+0xcde): undefined reference to
__glewDeleteShader'/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function
Model::loadMaterialTextures(aiMaterial*, aiTextureType, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)': renderer.cc:(.text._ZN5Model20loadMaterialTexturesEP10aiMaterial13aiTextureTypeNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN5Model20loadMaterialTexturesEP10aiMaterial13aiTextureTypeNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x544): undefined reference to
__glewGenerateMipmap'/usr/bin/ld: CMakeFiles/rio_renderer_render_all.dir/src/renderer.cc.o: in function
Model::processMesh(aiMesh*, aiScene const*)': renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xb77): undefined reference to
__glewGenVertexArrays'/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xb86): undefined reference to
__glewGenBuffers' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xb95): undefined reference to
__glewGenBuffers'/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xb9f): undefined reference to
__glewBindVertexArray' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xbae): undefined reference to
__glewBindBuffer'/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xbc8): undefined reference to
__glewBufferData' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xbd7): undefined reference to
__glewBindBuffer'/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xbf2): undefined reference to
__glewBufferData' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xbfa): undefined reference to
__glewEnableVertexAttribArray'/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc17): undefined reference to
__glewVertexAttribPointer' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc22): undefined reference to
__glewEnableVertexAttribArray'/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc45): undefined reference to
__glewVertexAttribPointer' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc50): undefined reference to
__glewEnableVertexAttribArray'/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc73): undefined reference to
__glewVertexAttribPointer' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xc7e): undefined reference to
__glewEnableVertexAttribArray'/usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xca1): undefined reference to
__glewVertexAttribPointer' /usr/bin/ld: renderer.cc:(.text._ZN5Model11processMeshEP6aiMeshPK7aiScene[_ZN5Model11processMeshEP6aiMeshPK7aiScene]+0xca9): undefined reference to
__glewBindVertexArray'collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/rio_renderer_render_all.dir/build.make:195: rio_renderer_render_all] Error 1
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/rio_renderer_render_all.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Would you give me some idea to solve this problem? Thank you.
The text was updated successfully, but these errors were encountered: