juniorxsound / ReTouch

🎬 An OpenGL application for editing and retouching images using depth-maps in 2.5D
GNU Lesser General Public License v2.1
73 stars 12 forks source link

Make Error #4

Open daRasmussen opened 6 years ago

daRasmussen commented 6 years ago
~/github/ReTouch/build$ make
[ 55%] Built target nanogui-obj
[ 82%] Built target glfw_objects
[ 83%] Built target nanogui
[ 87%] Built target glew
Scanning dependencies of target ReTouch
[ 89%] Building CXX object CMakeFiles/ReTouch.dir/src/Renderer.cpp.o
/github/ReTouch/src/Renderer.cpp: In member function ‘void Renderer::setupWindow()’:
/github/ReTouch/src/Renderer.cpp:70:5: error: ‘glewExperimental’ was not declared in this scope
     glewExperimental = true;
     ^
/github/ReTouch/src/Renderer.cpp:71:27: error: ‘glewInit’ was not declared in this scope
     GLenum err = glewInit();
                           ^
/github/ReTouch/src/Renderer.cpp:72:9: error: ‘GLEW_OK’ was not declared in this scope
     if (GLEW_OK != err)
         ^
/github/ReTouch/src/Renderer.cpp:75:62: error: ‘glewGetErrorString’ was not declared in this scope
         fprintf(stderr, "Error: %s\n", glewGetErrorString(err));
                                                              ^
/github/ReTouch/src/Renderer.cpp:78:62: error: ‘GLEW_VERSION’ was not declared in this scope
     fprintf(stdout, "Status: Using GLEW %s\n", glewGetString(GLEW_VERSION));
                                                              ^
/github/ReTouch/src/Renderer.cpp:78:74: error: ‘glewGetString’ was not declared in this scope
     fprintf(stdout, "Status: Using GLEW %s\n", glewGetString(GLEW_VERSION));
                                                                          ^
CMakeFiles/ReTouch.dir/build.make:88: recipe for target 'CMakeFiles/ReTouch.dir/src/Renderer.cpp.o' failed
make[2]: *** [CMakeFiles/ReTouch.dir/src/Renderer.cpp.o] Error 1
CMakeFiles/Makefile2:73: recipe for target 'CMakeFiles/ReTouch.dir/all' failed
make[1]: *** [CMakeFiles/ReTouch.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I get this error on Ubuntu 16.04, how do I resolve this?

dlwnsgud0819 commented 6 years ago

I also have same problem.

juniorxsound commented 6 years ago

@daRasmussen thanks for the details!

I created a branch with a fix that seems to be building ok on Travis, if it works for you I'll merge it into master.

screen shot 2018-09-23 at 9 29 21 pm
dlwnsgud0819 commented 6 years ago

@juniorxsound Thank you for your efforts. It's succeed to build on ubuntu. However, when I run, It gives me a error: Status: Using GLEW 1.11.0 OpenGL version recieved: 3.2.0 Supported OpenGL is 3.2.0 NVIDIA 390.48 Supported GLSL is 1.50 NVIDIA via Cg compiler Segmentation Fault (core dumped)

juniorxsound commented 6 years ago

Interesting, I'll try setting up an Ubuntu machine to test this issue further. Will follow up once I have more insights.