jvcleave / ofxImGui

Use ImGui in openFrameworks
293 stars 124 forks source link

compiling on raspberry pi3 fails on ofxImGui/src/EngineOpenGLES.cpp #59

Open danbz opened 7 years ago

danbz commented 7 years ago

in the config it states

'linuxarmv6l:

TODO needs EngineGLFW.cpp exclude "

however EngineGLFW.cpp appears to compile but appears to fail compiling ofxImGui/src/EngineOpenGLES.cpp

/home/pi/openFrameworks/addons/ofxImGui/src/EngineOpenGLES.cpp: In member function ‘virtual bool ofxImGui::EngineOpenGLES::createDeviceObjects()’: /home/pi/openFrameworks/addons/ofxImGui/src/EngineOpenGLES.cpp:130:3: error: ‘g_UniformLocationPosition’ was not declared in this scope g_UniformLocationPosition = glGetAttribLocation(g_ShaderHandle, "Position"); ^ /home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:336: recipe for target '/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxImGui/src/EngineOpenGLES.o' failed make[1]: *** [/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxImGui/src/EngineOpenGLES.o] Error 1

//compiling on raspberry pi 3 in raspbian in of 0.9.8 with ImGui 1.49 and 1.50 //code compiles fine on mac OSx in Xcode//

kurmanovd commented 6 years ago

Just rename g_UniformLocationPosition into g_AttribLocationPosition in /home/pi/openFrameworks/addons/ofxImGui/src/EngineOpenGLES.cpp:130:3