tgfrerer / ofxgl3renderer Goto Github PK
View Code? Open in Web Editor NEWEXPERIMENTAL opengl3.2 for openframeworks using glfw3
EXPERIMENTAL opengl3.2 for openframeworks using glfw3
hi @tgfrerer i'm testing your code in Ubuntu 12.004 64bit, but i have some issue with x11 libs. glfw3 works good outside OpenFrameworks. with your settings i got this error:
/usr/bin/ld: ../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_clipboard.c.o): undefined reference to symbol 'XConvertSelection'
/usr/bin/ld: note: 'XConvertSelection' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libX11.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libX11.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [bin/testGL3] Errore 1
if i add to the linker the path suggested i solve that error but got others similar. Changed to the path suggested,
USER_LDFLAGS = -L/usr/lib/x86_64-linux-gnu/libX11.so -L/usr/lib/x86_64-linux-gnu/libXi.so -L/usr/lib/x86_64-linux-gnu/libXrandr.so -lrt -lm ../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a
i reach at the end this error:
../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_gamma.c.o): In function
_glfwInitGammaRamp': x11_gamma.c:(.text+0x49): undefined reference to
XRRGetScreenResources'
x11_gamma.c:(.text+0x6a): undefined reference toXRRGetCrtcGammaSize' x11_gamma.c:(.text+0x81): undefined reference to
XRRFreeScreenResources'
../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_gamma.c.o): In function_glfwPlatformGetGammaRamp': x11_gamma.c:(.text+0xd6): undefined reference to
XRRGetCrtcGammaSize'
x11_gamma.c:(.text+0x113): undefined reference toXRRGetCrtcGamma' x11_gamma.c:(.text+0x192): undefined reference to
XRRFreeGamma'
../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_gamma.c.o): In function_glfwPlatformSetGammaRamp': x11_gamma.c:(.text+0x26f): undefined reference to
XRRGetCrtcGammaSize'
x11_gamma.c:(.text+0x299): undefined reference toXRRAllocGamma' x11_gamma.c:(.text+0x32d): undefined reference to
XRRSetCrtcGamma'
../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_init.c.o): In functioninitDisplay': x11_init.c:(.text+0x1a80): undefined reference to
XRRQueryExtension'
x11_init.c:(.text+0x1aaa): undefined reference toXRRQueryVersion' x11_init.c:(.text+0x1b3e): undefined reference to
XIQueryVersion'
../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_monitor.c.o): In function_glfwSetVideoMode': x11_monitor.c:(.text+0x44): undefined reference to
XRRGetScreenResources'
x11_monitor.c:(.text+0x69): undefined reference toXRRGetCrtcInfo' x11_monitor.c:(.text+0xda): undefined reference to
XRRGetOutputInfo'
x11_monitor.c:(.text+0x13a): undefined reference toXRRFreeOutputInfo' x11_monitor.c:(.text+0x26c): undefined reference to
XRRSetCrtcConfig'
x11_monitor.c:(.text+0x278): undefined reference toXRRFreeCrtcInfo' x11_monitor.c:(.text+0x284): undefined reference to
XRRFreeScreenResources'
../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_monitor.c.o): In function_glfwRestoreVideoMode': x11_monitor.c:(.text+0x2bf): undefined reference to
XRRGetScreenResources'
x11_monitor.c:(.text+0x2e4): undefined reference toXRRGetCrtcInfo' x11_monitor.c:(.text+0x359): undefined reference to
XRRSetCrtcConfig'
x11_monitor.c:(.text+0x365): undefined reference toXRRFreeCrtcInfo' x11_monitor.c:(.text+0x371): undefined reference to
XRRFreeScreenResources'
../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_monitor.c.o): In function_glfwPlatformGetMonitors': x11_monitor.c:(.text+0x3ba): undefined reference to
XRRGetScreenResources'
x11_monitor.c:(.text+0x3d7): undefined reference toXRRGetOutputPrimary' x11_monitor.c:(.text+0x408): undefined reference to
XRRFreeScreenResources'
x11_monitor.c:(.text+0x460): undefined reference toXRRGetCrtcInfo' x11_monitor.c:(.text+0x4ce): undefined reference to
XRRGetOutputInfo'
x11_monitor.c:(.text+0x4eb): undefined reference toXRRFreeOutputInfo' x11_monitor.c:(.text+0x4f7): undefined reference to
XRRFreeCrtcInfo'
x11_monitor.c:(.text+0x584): undefined reference toXRRFreeOutputInfo' x11_monitor.c:(.text+0x590): undefined reference to
XRRFreeCrtcInfo'
x11_monitor.c:(.text+0x5bf): undefined reference toXRRFreeScreenResources' ../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_monitor.c.o): In function
_glfwPlatformGetMonitorPos':
x11_monitor.c:(.text+0x710): undefined reference toXRRGetScreenResources' x11_monitor.c:(.text+0x735): undefined reference to
XRRGetCrtcInfo'
x11_monitor.c:(.text+0x76d): undefined reference toXRRFreeCrtcInfo' x11_monitor.c:(.text+0x779): undefined reference to
XRRFreeScreenResources'
../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_monitor.c.o): In function_glfwPlatformGetVideoModes': x11_monitor.c:(.text+0x81b): undefined reference to
XRRGetScreenResources'
x11_monitor.c:(.text+0x840): undefined reference toXRRGetOutputInfo' x11_monitor.c:(.text+0xa09): undefined reference to
XRRFreeOutputInfo'
x11_monitor.c:(.text+0xa15): undefined reference toXRRFreeScreenResources' ../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_monitor.c.o): In function
_glfwPlatformGetVideoMode':
x11_monitor.c:(.text+0xad9): undefined reference toXRRGetScreenResources' x11_monitor.c:(.text+0xafe): undefined reference to
XRRGetCrtcInfo'
x11_monitor.c:(.text+0xb2d): undefined reference toXRRFreeCrtcInfo' x11_monitor.c:(.text+0xb39): undefined reference to
XRRFreeScreenResources'
../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_window.c.o): In functioncreateWindow': x11_window.c:(.text+0x484): undefined reference to
XISelectEvents'
x11_window.c:(.text+0x4c6): undefined reference toXRRSelectInput' ../../../addons/ofxGL3Renderer/libs/glfw/lib/linux64/libglfw3.a(x11_window.c.o): In function
processEvent':
x11_window.c:(.text+0x155b): undefined reference to `XRRUpdateConfiguration'
collect2: ld returned 1 exit status
make: *** [bin/testGL3] Errore 1
Have you had this issue before? which linux Os are you using?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.