glshim


Ah ok, thanks, I'll commit something new.


@nighteagle: you can make "git pull" and try again.
 
Last edited by a moderator:
Okay so i have cloned new... the master branch with


git clone -b master ...repo...


Is this the correct branch?
 
Last edited by a moderator:
So i cloned the master-branch and have the same error:

Code:
/home/pi/glshim/src/glx/glx.c:176:8: error: ‘bcm_host_init’ redeclared as different kind of symbol
 void (*bcm_host_init)();
 
So i cloned the master-branch and have the same error:



/home/pi/glshim/src/glx/glx.c:176:8: error: ‘bcm_host_init’ redeclared as different kind of symbol
void (*bcm_host_init)();

Really? Mmmm, I'm puzzled, can you copy/paste more lines, so I can see where are both definition of bcm_host_init?
 
Code:
[  3%] Building C object src/CMakeFiles/GL.dir/glx/glx.c.o
/home/pi/glshim/src/glx/glx.c:176:8: error: ‘bcm_host_init’ redeclared as different kind of symbol
 void (*bcm_host_init)();
        ^
In file included from /home/pi/glshim/src/glx/../gl/gl.h:3:0,
                 from /home/pi/glshim/src/glx/glx.h:11,
                 from /home/pi/glshim/src/glx/glx.c:15:
/opt/vc/include/bcm_host.h:39:6: note: previous declaration of ‘bcm_host_init’ was here
 void bcm_host_init(void);
      ^
/home/pi/glshim/src/glx/glx.c:177:8: error: ‘bcm_host_deinit’ redeclared as different kind of symbol
 void (*bcm_host_deinit)();
        ^
In file included from /home/pi/glshim/src/glx/../gl/gl.h:3:0,
                 from /home/pi/glshim/src/glx/glx.h:11,
                 from /home/pi/glshim/src/glx/glx.c:15:
/opt/vc/include/bcm_host.h:40:6: note: previous declaration of ‘bcm_host_deinit’ was here
 void bcm_host_deinit(void);
      ^
/home/pi/glshim/src/glx/glx.c: In function ‘glXMakeCurrent’:
/home/pi/glshim/src/glx/glx.c:749:102: warning: passing argument 3 of ‘egl_eglCreateWindowSurface’ makes pointer from integer without a cast
    eglSurface = context->eglSurface = egl_eglCreateWindowSurface(eglDisplay, context->eglConfigs[0], drawable, NULL);
                                                                                                      ^
/home/pi/glshim/src/glx/glx.c:749:102: note: expected ‘EGLNativeWindowType’ but argument is of type ‘GLXDrawable’
/home/pi/glshim/src/glx/glx.c:753:80: warning: passing argument 3 of ‘egl_eglCreateWindowSurface’ makes pointer from integer without a cast
             eglSurface = egl_eglCreateWindowSurface(eglDisplay, eglConfigs[0], drawable, NULL); // create surface only if needed
                                                                                ^
/home/pi/glshim/src/glx/glx.c:753:80: note: expected ‘EGLNativeWindowType’ but argument is of type ‘GLXDrawable’
In file included from /opt/vc/include/interface/vcos/vcos.h:185:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/EGL/eglplatform.h:110,
                 from /opt/vc/include/EGL/egl.h:36,
                 from /home/pi/glshim/src/glx/glx.h:1,
                 from /home/pi/glshim/src/glx/glx.c:15:
/home/pi/glshim/src/glx/glx.c: At top level:
/opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined
 void vcos_timer_delete(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined
 void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined
 void vcos_timer_cancel(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined
 void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined
 VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
               ^
In file included from /opt/vc/include/interface/vcos/vcos.h:127:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/EGL/eglplatform.h:110,
                 from /opt/vc/include/EGL/egl.h:36,
                 from /home/pi/glshim/src/glx/glx.h:1,
                 from /home/pi/glshim/src/glx/glx.c:15:
/opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined
 void vcos_thread_resume(VCOS_THREAD_T *thread);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ declared but never defined
 int vcos_thread_running(VCOS_THREAD_T *thread);
     ^
/opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption’ declared but never defined
 VCOS_UNSIGNED vcos_change_preemption(VCOS_UNSIGNED pe);
               ^
/opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’ declared but never defined
 void vcos_thread_relinquish(void);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affinity’ declared but never defined
 VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);
               ^
In file included from /opt/vc/include/interface/vcos/vcos.h:185:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/EGL/eglplatform.h:110,
                 from /opt/vc/include/EGL/egl.h:36,
                 from /home/pi/glshim/src/glx/glx.h:1,
                 from /home/pi/glshim/src/glx/glx.c:15:
/opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined
 void vcos_timer_delete(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined
 void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined
 void vcos_timer_cancel(VCOS_TIMER_T *timer);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined
 void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
      ^
/opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined
 VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
               ^
In file included from /opt/vc/include/interface/vcos/vcos.h:127:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/EGL/eglplatform.h:110,
                 from /opt/vc/include/EGL/egl.h:36,
                 from /home/pi/glshim/src/glx/glx.h:1,
                 from /home/pi/glshim/src/glx/glx.c:15:
/opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined
 void vcos_thread_resume(VCOS_THREAD_T *thread);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ declared but never defined
 int vcos_thread_running(VCOS_THREAD_T *thread);
     ^
/opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption’ declared but never defined
 VCOS_UNSIGNED vcos_change_preemption(VCOS_UNSIGNED pe);
               ^
/opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’ declared but never defined
 void vcos_thread_relinquish(void);
      ^
/opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affinity’ declared but never defined
 VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);
               ^
src/CMakeFiles/GL.dir/build.make:583: recipe for target 'src/CMakeFiles/GL.dir/glx/glx.c.o' failed
make[3]: *** [src/CMakeFiles/GL.dir/glx/glx.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:110: recipe for target 'GL' failed
make: *** [GL] Error 2
pi@raspberrypi ~/glshim $
 
@nighteagle: Ok thanks! I'll do a commit tonight, but if you want to try before that, take src/gl/gl.h and remove lines 2,3 and 4 (or at least 3), and it should works.
 
okay i have done..


Build secessfull.


So when i start i became an Error from libGL.


EGL Error EGL_BAD_DISPLAY (0x3008)
 
Last edited by a moderator:
I see under the lib there is only the libGL.so.1


If i build the unstable branch from lunixbochs i have two more files...
 
Hi,


also with an symlink is the same.. okay..


The one that works is the unstable branch from lunixbochs... so something is other on that branch.
 
Hi,


also with an symlink is the same.. okay..


The one that works is the unstable branch from lunixbochs... so something is other on that branch.

Just a question, do you see an output like:


LIBGL:loaded:/usr/opt/lb/libbcm_host.so


LIBGL:loaded:/usr/opt/lib/libvcos.so
 
libGL.jpg
 
Code:
pi@raspberrypi ~/optris/optrisapp_oop/build $ ldd irimager_show_oop
        linux-vdso.so.1 (0x7ef7e000)
        /usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f4d000)
        libirimager.so => /usr/lib/libirimager.so (0x76f01000)
        libirimageprocessing.so => /usr/lib/libirimageprocessing.so (0x76ebe000)
        libircore.so => /usr/lib/libircore.so (0x76ea6000)
        libudev.so.1 => /lib/arm-linux-gnueabihf/libudev.so.1 (0x76e89000)
        libGL.so.1 => /usr/lib/arm-linux-gnueabihf/libGL.so.1 (0x76de9000)
        libGLU.so.1 => /usr/lib/arm-linux-gnueabihf/libGLU.so.1 (0x76d8a000)
        libglut.so.3 => /usr/lib/arm-linux-gnueabihf/libglut.so.3 (0x76d4f000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76d27000)
        libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x76c4b000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76bd0000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x76ba2000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76a65000)
        /lib/ld-linux-armhf.so.3 (0x54b92000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x76a4e000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76a3b000)
        libexpat.so.1 => /lib/arm-linux-gnueabihf/libexpat.so.1 (0x76a09000)
        libglapi.so.0 => /usr/lib/arm-linux-gnueabihf/libglapi.so.0 (0x769c6000)
        libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0x769a7000)
        libXdamage.so.1 => /usr/lib/arm-linux-gnueabihf/libXdamage.so.1 (0x7699c000)
        libXfixes.so.3 => /usr/lib/arm-linux-gnueabihf/libXfixes.so.3 (0x7698f000)
        libX11-xcb.so.1 => /usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1 (0x76985000)
        libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0x7686e000)
        libxcb-glx.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-glx.so.0 (0x76856000)
        libxcb-dri2.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-dri2.so.0 (0x7684a000)
        libxcb-dri3.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-dri3.so.0 (0x7683f000)
        libxcb-present.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-present.so.0 (0x76834000)
        libxcb-sync.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb-sync.so.1 (0x76826000)
        libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0x76807000)
        libxshmfence.so.1 => /usr/lib/arm-linux-gnueabihf/libxshmfence.so.1 (0x767f5000)
        libXxf86vm.so.1 => /usr/lib/arm-linux-gnueabihf/libXxf86vm.so.1 (0x767e8000)
        libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0x767cd000)
        libXi.so.6 => /usr/lib/arm-linux-gnueabihf/libXi.so.6 (0x767b7000)
        libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0x767ac000)
        libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0x767a0000)
pi@raspberrypi ~/optris/optrisapp_oop/build $
 
Code:
pi@raspberrypi ~/glshim/lib $ ls
libGL.so.1  libGL.so.1.2
pi@raspberrypi ~/glshim/lib $ ldd libGL.so.1
        linux-vdso.so.1 (0x7ef96000)
        /usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f16000)
        libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0x76ded000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76d72000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76d5f000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x76d32000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76bf5000)
        libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0x76bd6000)
        /lib/ld-linux-armhf.so.3 (0x54b16000)
        libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0x76bcb000)
        libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0x76bbf000)
pi@raspberrypi ~/glshim/lib $
 
Back
Top