glshim icon indicating copy to clipboard operation
glshim copied to clipboard

What Lib i need for Jessie?

Open nighteagle1974 opened this issue 8 years ago • 77 comments

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

nighteagle1974 avatar Nov 30 '15 17:11 nighteagle1974

Can you post an exact error message and tell me what hardware you're running this on?

lunixbochs avatar Nov 30 '15 17:11 lunixbochs

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 ...

nighteagle1974 avatar Nov 30 '15 19:11 nighteagle1974

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....

nighteagle1974 avatar Nov 30 '15 19:11 nighteagle1974

What's the silliness with these "i's" instead of "l's" in /usr/bin/id : cannot find -iGL ?

MagaTailor avatar Nov 30 '15 19:11 MagaTailor

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

nighteagle1974 avatar Nov 30 '15 19:11 nighteagle1974

Did you build and install glshim? You're posting compile errors for glues which is a different project.

lunixbochs avatar Nov 30 '15 20:11 lunixbochs

???

I have read these README:

https://github.com/lunixbochs/glshim

So what have i to do? I'm confused....

nighteagle1974 avatar Nov 30 '15 20:11 nighteagle1974

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.

lunixbochs avatar Nov 30 '15 22:11 lunixbochs

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,

nighteagle1974 avatar Dec 01 '15 07:12 nighteagle1974

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.

lunixbochs avatar Dec 01 '15 07:12 lunixbochs

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?

nighteagle1974 avatar Dec 01 '15 08:12 nighteagle1974

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

lunixbochs avatar Dec 01 '15 08:12 lunixbochs

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?

nighteagle1974 avatar Dec 01 '15 08:12 nighteagle1974

Was that the only program output? Please paste the entire log.

lunixbochs avatar Dec 01 '15 09:12 lunixbochs

Hi,

so i begin straight forward an second time.

  1. Jessie Image fresh install
  2. raspi-config >> Only SSH and Language/Keyboard settings set
  3. Network set
  4. Mesa-Utils for glxgears install
  5. Update and Upgrade Jessie
  6. git clone glshim 6.1 install cmake 6.2 sudo apt-get install libx11-dev
  7. Build glshim
  8. make install
  9. startx
  10. glxgears -info >>

nighteagle1974 avatar Dec 01 '15 09:12 nighteagle1974

No, I mean the program's output.

lunixbochs avatar Dec 01 '15 10:12 lunixbochs

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

nighteagle1974 avatar Dec 01 '15 10:12 nighteagle1974

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?

nighteagle1974 avatar Dec 01 '15 10:12 nighteagle1974

I think the problem is dependig from jessie... something with the new systemd ?

nighteagle1974 avatar Dec 01 '15 11:12 nighteagle1974

If the only message from glxgears whatsoever is "couldn't get an RGB, Double buffered visual" then glshim is not being used.

lunixbochs avatar Dec 01 '15 15:12 lunixbochs

Yes... and what can solve this? Many people talk about glxgears and this message appear with jessie image.

nighteagle1974 avatar Dec 01 '15 15:12 nighteagle1974

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?

lunixbochs avatar Dec 01 '15 15:12 lunixbochs

Hi,

which package i have to install?

nighteagle1974 avatar Dec 01 '15 15:12 nighteagle1974

mesa-utils-extra? learn to use apt-file or google "which debian package contains es2gears"

lunixbochs avatar Dec 01 '15 15:12 lunixbochs

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

nighteagle1974 avatar Dec 01 '15 15:12 nighteagle1974

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:

lunixbochs avatar Dec 01 '15 16:12 lunixbochs

Ah.. okay.. i thought jessie have the driver onboard. I use keyboard directly on the rpi.

nighteagle1974 avatar Dec 01 '15 16:12 nighteagle1974

I don't find the OpenGL ES driver...

nighteagle1974 avatar Dec 01 '15 16:12 nighteagle1974

Not a glshim problem :) Ask the raspberry pi folks.

lunixbochs avatar Dec 01 '15 16:12 lunixbochs

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

nighteagle1974 avatar Dec 01 '15 17:12 nighteagle1974