Closed kalwalt closed 10 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
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!
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$
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:
but this is not sufficient i got a lot of errors:
also i tried to include glu in config.linux.common.mk commenting out this line:
Do you think it is possible to solve?