glshim
glshim copied to clipboard
What Lib i need for Jessie?
After make i became problem to find gl.h after install mesa-common-dev all is okay. After that there is looking for usr/bin/id - iGL
Which packge i need for these lib?
Regards
Can you post an exact error message and tell me what hardware you're running this on?
Yes i will check something now and then i will post it. I use the RPI2 with an fresh Jessie Image. First i have to install mesa-common-dev for the missing gl.h. Now i check after install libgl1-mesa-swx11.... also there is some problems without the libgl1-mesa-dri ...
So is not SSH.. i will write Error Message
Bulding 100% Linking CXX shared library libGLU.so.1 /usr/bin/id : cannot find -iGL collect2: error: id returned 1 exit status CMakeFiles/GLU.dir/build.make:2285: recipe for target 'libGLU.so.1' failed
and so on....
What's the silliness with these "i's" instead of "l's" in /usr/bin/id : cannot find -iGL
?
So SSH:
[100%] Building CXX object CMakeFiles/GLU.dir/source/libnurbs/internals/flistsorter.cc.o Linking CXX shared library libGLU.so.1 /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status CMakeFiles/GLU.dir/build.make:2285: recipe for target 'libGLU.so.1' failed make[2]: *** [libGLU.so.1] Error 1 CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/GLU.dir/all' failed make[1]: *** [CMakeFiles/GLU.dir/all] Error 2 Makefile:76: recipe for target 'all' failed make: *** [all] Error 2 pi@raspberrypi:~/glues/build $ ^C
Did you build and install glshim? You're posting compile errors for glues which is a different project.
???
I have read these README:
https://github.com/lunixbochs/glshim
So what have i to do? I'm confused....
You posted a compile error in glues, which is not this project. If you want glshim to be your primary OpenGL provider, try running make install
.
Hi, and thanks for the overview... :-)
okay.. i thought i have to use glues also for glshim. Is there somewhere an manual for glshim... after building them... what have i to do to use the file? Okay put in lib path and then?
For Background: My application is for showing the image of an thermografic camera. It has only 382x288px resolution but without hardware acceleration of the 2D Image i have only 5-6fps in fullscreen. With VC4 i have 30fps. But VC4 have no support for the composite video out. So i want to use the Video out at one time and on other time the hdmi out. Then i have to store the raw-data from the IR-CAM and so i need the cpu-power... there is no gap for rendering image by cpu. I have build the sources for the IR-CAM and the other way is to reprogram to use OpenGL ES instead of GLX.
Have you an idea?
I can show you the sources from the IR-CAM.
Regards,
glshim is a drop-in replacement for desktop libGL. You should be able to just make install
to use it, or put it in /usr/local/bin, then run your program. To test that glshim is working, try running glxgears
.
Hi,
so after build and make install successfully i have start glxgears -info and the GL-renderer is Mesa x11. Okay now i have to disable the installed mesa renderer?
Yes. glshim does not depend on Mesa in any way. If you need the GL headers, you can copy the glshim/includes/GL folder to /usr/local/include
Hi,
so after remove mesa i have glxgears -info an Error: couldn't get an RGB, Double buffered visual.
I have remove mesa-common-dev and libgl1-mesa-dri and libgl1-mesa-swx11.
Any ideas?
Was that the only program output? Please paste the entire log.
Hi,
so i begin straight forward an second time.
- Jessie Image fresh install
- raspi-config >> Only SSH and Language/Keyboard settings set
- Network set
- Mesa-Utils for glxgears install
- Update and Upgrade Jessie
- git clone glshim 6.1 install cmake 6.2 sudo apt-get install libx11-dev
- Build glshim
- make install
- startx
- glxgears -info >>
No, I mean the program's output.
Yes i know.. but i want an clean fresh install to prevent something mystic.. So after Step 6.1 install cmake i want to build with make GL and becomes following error:
pi@raspberrypi ~/glshim $ make GL [ 0%] Building C object src/CMakeFiles/GL.dir/gl/raster.c.o In file included from /home/pi/glshim/src/gl/wrap/../types.h:9:0, from /home/pi/glshim/src/gl/wrap/glpack.h:1, from /home/pi/glshim/src/gl/loader.h:10, from /home/pi/glshim/src/gl/raster.c:2: /home/pi/glshim/src/util/extypes.h:5:22: fatal error: X11/Xlib.h: No such file or directory #include <X11/Xlib.h> ^ compilation terminated. src/CMakeFiles/GL.dir/build.make:54: recipe for target 'src/CMakeFiles/GL.dir/gl/raster.c.o' failed make[3]: *** [src/CMakeFiles/GL.dir/gl/raster.c.o] Error 1 CMakeFiles/Makefile2:79: recipe for target 'src/CMakeFiles/GL.dir/all' failed make[2]: *** [src/CMakeFiles/GL.dir/all] Error 2 CMakeFiles/Makefile2:91: recipe for target 'src/CMakeFiles/GL.dir/rule' failed make[1]: *** [src/CMakeFiles/GL.dir/rule] Error 2 Makefile:151: recipe for target 'GL' failed make: *** [GL] Error 2 pi@raspberrypi ~/glshim $
So have i install x11 seperatly... sudo apt-get install libx11-dev
So glxgears Step 10 of my fresh installation give the same message: couldn't get an RGB, Double buffered visual.
Where can i have a look for programs output?
I think the problem is dependig from jessie... something with the new systemd ?
If the only message from glxgears whatsoever is "couldn't get an RGB, Double buffered visual" then glshim is not being used.
Yes... and what can solve this? Many people talk about glxgears and this message appear with jessie image.
Does es2gears work? If you're using glshim properly, "couldn't get an RGB, Double buffered visual" should not be the only message from glxgears. Does ldd /usr/bin/glxgears
point to your installed glshim?
Hi,
which package i have to install?
mesa-utils-extra? learn to use apt-file or google "which debian package contains es2gears"
Hi, i have used apt-cache search...
es2gears bring following:
libEGL warning: DRI2: failed to autheticate libIGL warning: DRI2: failed to open swrast (path) EGLUT: failed to initilalize EGL Display
You don't have working OpenGL ES drivers, so this isn't a glshim problem.
If you do have drivers installed: are you running this over SSH? You need to at least export DISPLAY=:0
in that case, and maybe run xhost +local:
Ah.. okay.. i thought jessie have the driver onboard. I use keyboard directly on the rpi.
I don't find the OpenGL ES driver...
Not a glshim problem :) Ask the raspberry pi folks.
I have start it with: LD_LIBRARY_PATH=/home/pi/glshim/lib LIBGL_FB=1 glxgears -info
and become:
GL_Renderer = VideoCorre IV HW GL_Version = 1.4 glshim wrapper