openFrameworks-RaspberryPi / openFrameworks

This repo has migrated into the openFramworks core! Please go to http://github.com/openFrameworks/openFrameworks for the latest!
http://github.com/openFrameworks/openFrameworks
Other
104 stars 11 forks source link

ofAppGLFWWindow fails in armv7l (pandaboardES) #148

Closed kalwalt closed 10 years ago

kalwalt commented 11 years ago

i m trying to use glfw with OF. GLFW works good out of OF. I think there is missed some includes (GL, glu,...) but seems that i can't do this. i changed in config.linuxarmv7l.default.mk:

PLATFORM_PKG_CONFIG_LIBRARIES += gl PLATFORM_PKG_CONFIG_LIBRARIES += glu

PLATFORM_PKG_CONFIG_LIBRARIES += glesv1_cm

PLATFORM_PKG_CONFIG_LIBRARIES += glesv2

PLATFORM_PKG_CONFIG_LIBRARIES += egl

but this is not sufficient i got a lot of errors:

walter@walter-desktop:~/OF-develop-raspberrypi/openFrameworks/examples/gl/glfwExample$ sudo make Compiling OF library for Release make[2]: Nothing to be done for `ReleaseABI'. Done!

Compiling glfwExample for Release Compiling src/main.cpp mkdir -p obj/linuxarmv7l/Release/src g++ -c -Os -I./src -I./src/GL -Wall -fexceptions -march=armv7 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USINGGTK -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I../../../libs/cairo/include -I../../../libs/cairo/include/pixman-1 -I../../../libs/cairo/include/cairo -I../../../libs/cairo/include/libpng15 -I../../../libs/fmodex/include -I../../../libs/kiss/include -I../../../libs/poco/include -I../../../libs/portaudio/include -I../../../libs/rtAudio/include -I../../../libs/tess2/include -I../../../libs/openFrameworks -I../../../libs/openFrameworks/app -I../../../libs/openFrameworks/types -I../../../libs/openFrameworks/communication -I../../../libs/openFrameworks/video -I../../../libs/openFrameworks/events -I../../../libs/openFrameworks/graphics -I../../../libs/openFrameworks/3d -I../../../libs/openFrameworks/utils -I../../../libs/openFrameworks/gl -I../../../libs/openFrameworks/sound -I../../../libs/openFrameworks/math -MMD -MP -MF obj/linuxarmv7l/Release/src/main.d -MT obj/linuxarmv7l/Release/src/main.o -o obj/linuxarmv7l/Release/src/main.o -c src/main.cpp In file included from ./src/GL/glfw.h:179:0, from src/ofAppGLFWWindow.h:6, from src/main.cpp:3: /usr/include/GL/glu.h:300:54: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:300:69: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:300:83: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:304:50: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:304:66: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:312:78: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:314:34: error: variable or field ‘gluLookAt’ declared void /usr/include/GL/glu.h:314:34: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:314:49: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:314:64: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:314:79: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:314:97: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:314:115: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:314:133: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:314:147: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:314:161: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:325:35: error: variable or field ‘gluOrtho2D’ declared void /usr/include/GL/glu.h:325:35: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:325:50: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:325:66: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:325:83: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:326:57: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:326:73: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:326:116: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:326:132: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:327:39: error: variable or field ‘gluPerspective’ declared void /usr/include/GL/glu.h:327:39: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:327:54: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:327:71: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:327:87: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:328:38: error: variable or field ‘gluPickMatrix’ declared void /usr/include/GL/glu.h:328:38: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:328:50: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:328:62: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:328:77: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:328:98: error: expected primary-expression before ‘’ token /usr/include/GL/glu.h:328:99: error: ‘viewport’ was not declared in this scope /usr/include/GL/glu.h:329:36: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:329:51: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:329:66: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:329:81: error: expected primary-expression before ‘const’ /usr/include/GL/glu.h:329:104: error: expected primary-expression before ‘const’ /usr/include/GL/glu.h:329:126: error: expected primary-expression before ‘const’ /usr/include/GL/glu.h:329:145: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:329:155: error: ‘winX’ was not declared in this scope /usr/include/GL/glu.h:329:161: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:329:171: error: ‘winY’ was not declared in this scope /usr/include/GL/glu.h:329:177: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:329:187: error: ‘winZ’ was not declared in this scope /usr/include/GL/glu.h:329:191: error: expression list treated as compound expression in initializer [-fpermissive] /usr/include/GL/glu.h:337:52: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:343:59: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:343:76: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:343:93: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:344:75: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:345:59: error: ‘GLdouble’ has not been declared /usr/include/GL/glu.h:346:38: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:346:53: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:346:68: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:346:83: error: expected primary-expression before ‘const’ /usr/include/GL/glu.h:346:106: error: expected primary-expression before ‘const’ /usr/include/GL/glu.h:346:128: error: expected primary-expression before ‘const’ /usr/include/GL/glu.h:346:147: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:346:157: error: ‘objX’ was not declared in this scope /usr/include/GL/glu.h:346:163: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:346:173: error: ‘objY’ was not declared in this scope /usr/include/GL/glu.h:346:179: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:346:189: error: ‘objZ’ was not declared in this scope /usr/include/GL/glu.h:346:193: error: expression list treated as compound expression in initializer [-fpermissive] /usr/include/GL/glu.h:347:39: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:347:54: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:347:69: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:347:84: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:347:100: error: expected primary-expression before ‘const’ /usr/include/GL/glu.h:347:123: error: expected primary-expression before ‘const’ /usr/include/GL/glu.h:347:145: error: expected primary-expression before ‘const’ /usr/include/GL/glu.h:347:164: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:347:182: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:347:199: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:347:209: error: ‘objX’ was not declared in this scope /usr/include/GL/glu.h:347:215: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:347:225: error: ‘objY’ was not declared in this scope /usr/include/GL/glu.h:347:231: error: ‘GLdouble’ was not declared in this scope /usr/include/GL/glu.h:347:241: error: ‘objZ’ was not declared in this scope /usr/include/GL/glu.h:347:247: error: ‘GLdouble’ was not declared in this scope In file included from ./src/GL/glfw.h:179:0, from src/ofAppGLFWWindow.h:6, from src/main.cpp:3: /usr/include/GL/glu.h:347:257: error: ‘objW’ was not declared in this scope /usr/include/GL/glu.h:347:261: error: expression list treated as compound expression in initializer [-fpermissive] make[1]: _\ [obj/linuxarmv7l/Release/src/main.o] Error 1 make: *\ [Release] Error 2 walter@walter-desktop:~/OF-develop-raspberrypi/openFrameworks/examples/gl/glfwExample$

also i tried to include glu in config.linux.common.mk commenting out this line:

PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/glu/%

Do you think it is possible to solve?

underdoeg commented 11 years ago

It looks like in your case glfw tries to include the normal GL library instead of gles. Did you double check all the GLFW related defines? https://github.com/elmindreda/glfw/blob/master/include/GL/glfw3.h#L183 Maybe it works if you define GLFW_INCLUDE_ES2 or GLFW_INCLUDE_ES3 and undefine GLFW_INCLUDE_GLU

kalwalt commented 11 years ago

maybe this can solve the issue , i looked only in the makefile of the glfw examples and not in the header. Thank's for the tips!

kalwalt commented 11 years ago

good and bad news . Tested the glfw3 lib ( previuosly i used the 2.7.7) i have done as you suggested defined GLFW_INCLUDE_ES2 and undefined GLFW_INCLUDE_GLU . i don't receive anymore that error above but another, i think that the APi is changed of glfw and will not works with the old one. this means or made all the changes in ofAppGLFWWindow or get a try to you multiwindow @underdoeg ... maybe this has more sense....but i'm pretty sure (89%) it will works with linuxarm at this point!

walter@walter-desktop:~/OF-develop-raspberrypi/openFrameworks/examples/gl/glfwExample$ sudo make Compiling OF library for Release make[2]: Nothing to be done for `ReleaseABI'. Done!

Compiling glfwExample for Release Compiling src/main.cpp mkdir -p obj/linuxarmv7l/Release/src g++ -c -Os -I/usr/include -I/usr/local/include -DGLFW_INCLUDE_ES1 -DGLFW_INCLUDE_ES2 -I./src -Wall -fexceptions -march=armv7 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I../../../libs/cairo/include -I../../../libs/cairo/include/pixman-1 -I../../../libs/cairo/include/cairo -I../../../libs/cairo/include/libpng15 -I../../../libs/fmodex/include -I../../../libs/kiss/include -I../../../libs/poco/include -I../../../libs/portaudio/include -I../../../libs/rtAudio/include -I../../../libs/tess2/include -I../../../libs/openFrameworks -I../../../libs/openFrameworks/app -I../../../libs/openFrameworks/types -I../../../libs/openFrameworks/communication -I../../../libs/openFrameworks/video -I../../../libs/openFrameworks/events -I../../../libs/openFrameworks/graphics -I../../../libs/openFrameworks/3d -I../../../libs/openFrameworks/utils -I../../../libs/openFrameworks/gl -I../../../libs/openFrameworks/sound -I../../../libs/openFrameworks/math -MMD -MP -MF obj/linuxarmv7l/Release/src/main.d -MT obj/linuxarmv7l/Release/src/main.o -o obj/linuxarmv7l/Release/src/main.o -c src/main.cpp Compiling src/testApp.cpp mkdir -p obj/linuxarmv7l/Release/src g++ -c -Os -I/usr/include -I/usr/local/include -DGLFW_INCLUDE_ES1 -DGLFW_INCLUDE_ES2 -I./src -Wall -fexceptions -march=armv7 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I../../../libs/cairo/include -I../../../libs/cairo/include/pixman-1 -I../../../libs/cairo/include/cairo -I../../../libs/cairo/include/libpng15 -I../../../libs/fmodex/include -I../../../libs/kiss/include -I../../../libs/poco/include -I../../../libs/portaudio/include -I../../../libs/rtAudio/include -I../../../libs/tess2/include -I../../../libs/openFrameworks -I../../../libs/openFrameworks/app -I../../../libs/openFrameworks/types -I../../../libs/openFrameworks/communication -I../../../libs/openFrameworks/video -I../../../libs/openFrameworks/events -I../../../libs/openFrameworks/graphics -I../../../libs/openFrameworks/3d -I../../../libs/openFrameworks/utils -I../../../libs/openFrameworks/gl -I../../../libs/openFrameworks/sound -I../../../libs/openFrameworks/math -MMD -MP -MF obj/linuxarmv7l/Release/src/testApp.d -MT obj/linuxarmv7l/Release/src/testApp.o -o obj/linuxarmv7l/Release/src/testApp.o -c src/testApp.cpp Compiling src/ofAppGLFWWindow.cpp mkdir -p obj/linuxarmv7l/Release/src g++ -c -Os -I/usr/include -I/usr/local/include -DGLFW_INCLUDE_ES1 -DGLFW_INCLUDE_ES2 -I./src -Wall -fexceptions -march=armv7 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I../../../libs/cairo/include -I../../../libs/cairo/include/pixman-1 -I../../../libs/cairo/include/cairo -I../../../libs/cairo/include/libpng15 -I../../../libs/fmodex/include -I../../../libs/kiss/include -I../../../libs/poco/include -I../../../libs/portaudio/include -I../../../libs/rtAudio/include -I../../../libs/tess2/include -I../../../libs/openFrameworks -I../../../libs/openFrameworks/app -I../../../libs/openFrameworks/types -I../../../libs/openFrameworks/communication -I../../../libs/openFrameworks/video -I../../../libs/openFrameworks/events -I../../../libs/openFrameworks/graphics -I../../../libs/openFrameworks/3d -I../../../libs/openFrameworks/utils -I../../../libs/openFrameworks/gl -I../../../libs/openFrameworks/sound -I../../../libs/openFrameworks/math -MMD -MP -MF obj/linuxarmv7l/Release/src/ofAppGLFWWindow.d -MT obj/linuxarmv7l/Release/src/ofAppGLFWWindow.o -o obj/linuxarmv7l/Release/src/ofAppGLFWWindow.o -c src/ofAppGLFWWindow.cpp src/ofAppGLFWWindow.cpp: In member function ‘virtual void ofAppGLFWWindow::setupOpenGL(int, int, int)’: src/ofAppGLFWWindow.cpp:71:22: error: ‘GLFW_FSAA_SAMPLES’ was not declared in this scope src/ofAppGLFWWindow.cpp:71:49: error: ‘glfwOpenWindowHint’ was not declared in this scope src/ofAppGLFWWindow.cpp:91:13: error: ‘GLFW_WINDOW’ was not declared in this scope src/ofAppGLFWWindow.cpp:92:9: error: ‘glfwOpenWindow’ was not declared in this scope src/ofAppGLFWWindow.cpp:100:7: error: ‘GLFW_FULLSCREEN’ was not declared in this scope src/ofAppGLFWWindow.cpp:101:6: error: ‘glfwOpenWindow’ was not declared in this scope src/ofAppGLFWWindow.cpp:110:7: error: ‘GLFWFULLSCREEN’ was not declared in this scope src/ofAppGLFWWindow.cpp:111:6: error: ‘glfwOpenWindow’ was not declared in this scope src/ofAppGLFWWindow.cpp:128:26: error: cannot convert ‘const char’ to ‘GLFWwindow’ for argument ‘1’ to ‘void glfwSetWindowTitle(GLFWwindow, const char_)’ src/ofAppGLFWWindow.cpp:130:14: error: ‘GLFW_KEYREPEAT’ was not declared in this scope src/ofAppGLFWWindow.cpp:130:30: error: ‘glfwEnable’ was not declared in this scope src/ofAppGLFWWindow.cpp:141:55: error: cannot convert ‘int’ to ‘GLFWwindow’ for argument ‘1’ to ‘void glfwGetWindowSize(GLFWwindow, int, int)’ src/ofAppGLFWWindow.cpp:150:40: error: cannot convert ‘int’ to ‘GLFWwindow’ for argument ‘1’ to ‘void glfwGetWindowSize(GLFWwindow, int, int)’ src/ofAppGLFWWindow.cpp: In member function ‘virtual void ofAppGLFWWindow::initializeWindow()’: src/ofAppGLFWWindow.cpp:161:38: error: cannot convert ‘void ()(int, int)’ to ‘GLFWwindow’ for argument ‘1’ to ‘void glfwSetMouseButtonCallback(GLFWwindow, GLFWmousebuttonfun)’ src/ofAppGLFWWindow.cpp:162:36: error: ‘glfwSetMousePosCallback’ was not declared in this scope src/ofAppGLFWWindow.cpp:163:33: error: cannot convert ‘void ()(int, int)’ to ‘GLFWwindow’ for argument ‘1’ to ‘void glfwSetKeyCallback(GLFWwindow, GLFWkeyfun)’ src/ofAppGLFWWindow.cpp:164:38: error: cannot convert ‘void ()(int, int)’ to ‘GLFWwindow’ for argument ‘1’ to ‘void glfwSetWindowSizeCallback(GLFWwindow, GLFWwindowsizefun)’ src/ofAppGLFWWindow.cpp:165:37: error: cannot convert ‘int ()()’ to ‘GLFWwindow’ for argument ‘1’ to ‘void glfwSetWindowCloseCallback(GLFWwindow, GLFWwindowclosefun)’ src/ofAppGLFWWindow.cpp: In member function ‘virtual void ofAppGLFWWindow::setWindowTitle(std::string)’: src/ofAppGLFWWindow.cpp:273:34: error: cannot convert ‘const char’ to ‘GLFWwindow’ for argument ‘1’ to ‘void glfwSetWindowTitle(GLFWwindow, const char)’ src/ofAppGLFWWindow.cpp: In member function ‘virtual ofPoint ofAppGLFWWindow::getScreenSize()’: src/ofAppGLFWWindow.cpp:289:33: error: ‘glfwGetDesktopMode’ was not declared in this scope src/ofAppGLFWWindow.cpp:290:29: error: ‘struct GLFWvidmode’ has no member named ‘Width’ src/ofAppGLFWWindow.cpp:290:48: error: ‘struct GLFWvidmode’ has no member named ‘Height’ src/ofAppGLFWWindow.cpp: In member function ‘virtual void ofAppGLFWWindow::setWindowPosition(int, int)’: src/ofAppGLFWWindow.cpp:320:22: error: invalid conversion from ‘int’ to ‘GLFWwindow’ [-fpermissive] src/ofAppGLFWWindow.cpp:320:22: error: too few arguments to function ‘void glfwSetWindowPos(GLFWwindow, int, int)’ /usr/local/include/GL/glfw3.h:1299:14: note: declared here src/ofAppGLFWWindow.cpp: In member function ‘virtual void ofAppGLFWWindow::setWindowShape(int, int)’: src/ofAppGLFWWindow.cpp:326:23: error: invalid conversion from ‘int’ to ‘GLFWwindow’ [-fpermissive] src/ofAppGLFWWindow.cpp:326:23: error: too few arguments to function ‘void glfwSetWindowSize(GLFWwindow_, int, int)’ /usr/local/include/GL/glfw3.h:1337:14: note: declared here src/ofAppGLFWWindow.cpp: In member function ‘virtual void ofAppGLFWWindow::hideCursor()’: src/ofAppGLFWWindow.cpp:336:16: error: ‘GLFW_MOUSE_CURSOR’ was not declared in this scope src/ofAppGLFWWindow.cpp:336:34: error: ‘glfwDisable’ was not declared in this scope src/ofAppGLFWWindow.cpp: In member function ‘virtual void ofAppGLFWWindow::showCursor()’: src/ofAppGLFWWindow.cpp:345:15: error: ‘GLFW_MOUSECURSOR’ was not declared in this scope src/ofAppGLFWWindow.cpp:345:33: error: ‘glfwEnable’ was not declared in this scope src/ofAppGLFWWindow.cpp: In member function ‘void ofAppGLFWWindow::display()’: src/ofAppGLFWWindow.cpp:462:35: error: ‘glDrawBuffer’ was not declared in this scope src/ofAppGLFWWindow.cpp:489:21: error: too few arguments to function ‘void glfwSwapBuffers(GLFWwindow)’ /usr/local/include/GL/glfw3.h:2016:14: note: declared here src/ofAppGLFWWindow.cpp: In member function ‘void ofAppGLFWWindow::listVideoModes()’: src/ofAppGLFWWindow.cpp:722:50: error: cannot convert ‘GLFWvidmode’ to ‘GLFWmonitor’ for argument ‘1’ to ‘const GLFWvidmode glfwGetVideoModes(GLFWmonitor, int)’ src/ofAppGLFWWindow.cpp:724:39: error: ‘struct GLFWvidmode’ has no member named ‘Width’ src/ofAppGLFWWindow.cpp:724:57: error: ‘struct GLFWvidmode’ has no member named ‘Height’ src/ofAppGLFWWindow.cpp:724:76: error: ‘struct GLFWvidmode’ has no member named ‘RedBits’ src/ofAppGLFWWindow.cpp:724:96: error: ‘struct GLFWvidmode’ has no member named ‘GreenBits’ src/ofAppGLFWWindow.cpp:724:118: error: ‘struct GLFWvidmode’ has no member named ‘BlueBits’ src/ofAppGLFWWindow.cpp: In member function ‘bool ofAppGLFWWindow::isWindowIconified()’: src/ofAppGLFWWindow.cpp:730:42: error: invalid conversion from ‘int’ to ‘GLFWwindow’ [-fpermissive] src/ofAppGLFWWindow.cpp:730:42: error: too few arguments to function ‘int glfwGetWindowParam(GLFWwindow_, int)’ /usr/local/include/GL/glfw3.h:1468:13: note: declared here src/ofAppGLFWWindow.cpp: In member function ‘bool ofAppGLFWWindow::isWindowActive()’: src/ofAppGLFWWindow.cpp:735:28: error: ‘GLFW_ACTIVE’ was not declared in this scope src/ofAppGLFWWindow.cpp: In member function ‘bool ofAppGLFWWindow::isWindowResizeable()’: src/ofAppGLFWWindow.cpp:741:29: error: ‘GLFW_WINDOW_NORESIZE’ was not declared in this scope src/ofAppGLFWWindow.cpp: In member function ‘void ofAppGLFWWindow::iconify(bool)’: src/ofAppGLFWWindow.cpp:746:21: error: too few arguments to function ‘void glfwIconifyWindow(GLFWwindow)’ /usr/local/include/GL/glfw3.h:1357:14: note: declared here src/ofAppGLFWWindow.cpp:748:21: error: too few arguments to function ‘void glfwRestoreWindow(GLFWwindow_)’ /usr/local/include/GL/glfw3.h:1375:14: note: declared here src/ofAppGLFWWindow.cpp: In member function ‘bool ofAppGLFWWindow::isWindowResizeable()’: src/ofAppGLFWWindow.cpp:743:1: warning: control reaches end of non-void function [-Wreturn-type] src/ofAppGLFWWindow.cpp: In member function ‘bool ofAppGLFWWindow::isWindowActive()’: src/ofAppGLFWWindow.cpp:737:1: warning: control reaches end of non-void function [-Wreturn-type] src/ofAppGLFWWindow.cpp: In member function ‘bool ofAppGLFWWindow::isWindowIconified()’: src/ofAppGLFWWindow.cpp:731:1: warning: control reaches end of non-void function [-Wreturn-type] src/ofAppGLFWWindow.cpp: In member function ‘virtual ofPoint ofAppGLFWWindow::getScreenSize()’: src/ofAppGLFWWindow.cpp:291:1: warning: control reaches end of non-void function [-Wreturn-type] make[1]: * [obj/linuxarmv7l/Release/src/ofAppGLFWWindow.o] Error 1 make: * [Release] Error 2 walter@walter-desktop:~/OF-develop-raspberrypi/openFrameworks/examples/gl/glfwExample$