QXCBEGLWindow problem in cross-compile



  • I'm trying to cross-compile qt5 with a raspberry pi 3

    After the configure when a i run make I get the following error

    This is my configure options
    ./configure -release -opengl es2 -no-use-gold-linker -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=$RPI_TOOLCHAIN -sysroot $RPI_SYSROOT -opensource -confirm-license -make libs -optimized-qmake -reduce-exports -release -prefix /usr/local/qt5pi -v

    this is the error i got
    qxcbeglwindow.cpp: Na função membro ‘virtual void QXcbEglWindow::create()’:
    qxcbeglwindow.cpp:96:92: erro: conversão de ‘xcb_window_t {aka unsigned int}’ para ‘EGLNativeWindowType {aka void*}’ inválida [-fpermissive]
    m_surface = eglCreateWindowSurface(m_glIntegration->eglDisplay(), m_config, m_window, 0);
    ^
    In file included from ../../../../../../include/QtEglSupport/5.9.3/QtEglSupport/private/../../../../../src/platformsupport/eglconvenience/qt_egl_p.h:65:0,
    from ../../../../../../include/QtEglSupport/5.9.3/QtEglSupport/private/qt_egl_p.h:1,
    from qxcbeglinclude.h:49,
    from qxcbeglwindow.h:45,
    from qxcbeglwindow.cpp:40:
    /mnt/rasp_pi_root_fs/opt/vc/include/EGL/egl.h:265:31: erro: inicializando argumento 3 de ‘void* eglCreateWindowSurface(EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint*)’ [-fpermissive]
    EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
    ^
    Makefile:2844: recipe for target '.obj/qxcbeglwindow.o' failed
    make[7]: *** [.obj/qxcbeglwindow.o] Error 1
    make[7]: Leaving directory '/home/felipe/Qt/5.9.3/Src/qtbase/src/plugins/platforms/xcb/gl_integrations/xcb_egl'
    Makefile:44: recipe for target 'sub-xcb_egl-make_first' failed
    make[6]: *** [sub-xcb_egl-make_first] Error 2
    make[6]: Leaving directory '/home/felipe/Qt/5.9.3/Src/qtbase/src/plugins/platforms/xcb/gl_integrations'
    Makefile:104: recipe for target 'sub-gl_integrations-make_first-ordered' failed
    make[5]: *** [sub-gl_integrations-make_first-ordered] Error 2
    make[5]: Leaving directory '/home/felipe/Qt/5.9.3/Src/qtbase/src/plugins/platforms/xcb'
    Makefile:100: recipe for target 'sub-xcb-make_first' failed
    make[4]: *** [sub-xcb-make_first] Error 2
    make[4]: Leaving directory '/home/felipe/Qt/5.9.3/Src/qtbase/src/plugins/platforms'
    Makefile:101: recipe for target 'sub-platforms-make_first' failed
    make[3]: *** [sub-platforms-make_first] Error 2

    Sorry for any mistakes in writing this post.
    This is my first post


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.