January 9, 2012

yuvalt yuvalt
Lab Rat
2 posts

Compiling Qt 5 without X11 nor Wayland

 

Hi,

I’m trying to build Qt 5 on an embedded linux system which does not have X11 nor Wayland. It has OpenGL ES 2.0 and EGL and I was hoping to use the eglfs platform. However, when I try to run configure I get notified that I have neither xcb nor wayland and that I may disable both but it will disable graphics. So…. how can I use Qt 5 with OpenGL ES 2.0 + EGL using eglfs?

Thanks, and hope it’s not a repeat question… (I did search :-))

-Yuval

5 replies

January 11, 2012

yuvalt yuvalt
Lab Rat
2 posts

Anyone? :-)

May 10, 2012

jdwieber jdwieber
Lab Rat
1 posts

I’ve never done it myself, but I’m sure it’s possible. Maybe check out the code for lighthouse-android at: http://gitorious.org/~taipan/qt/android-lighthouse Sorry I can’t be of more help.

January 7, 2013

hari hari
Lab Rat
29 posts

I saw this just now. I am not sure if you have already compiled. use this for configuring:

  1.  ./configure -prefix $PWD/install -xplatform linux-arm -opensource -confirm-license  -no-xcb -eglfs -opengl es2

I was able to compile and run with this.

 Signature 

Hari

December 2, 2014

EricZ89 EricZ89
Lab Rat
16 posts

I have a question which might apply to this thread. I am trying to configure Qt5.3.2 to enable egl, eglfs, but have all X11 parts disabled.

However, for an linux open-embedded arm device, the EGL-X11 auto-detection … () is enabling EGL-X11, but I do not want this enabled.

Do you know how do disable EGL-X11 as a configuration option?

My Summary:

  1. Build options:
  2.   Configuration .......... alsa audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile dbus egl egl_x11 eglfs evdev eventfd freetype full-config getaddrinfo getifaddrs glib iconv inotify ipv6ifname large-config largefile libudev linuxfb medium-config minimal-config mremap nis no-harfbuzz opengl opengles2 openssl-linked pcre png posix_fallocate qpa qpa reduce_exports release shared silent small-config system-jpeg system-png system-zlib xlib
  3.   Build parts ............  tools libs
  4.   Mode ................... release
  5.   Using C++11 ............ yes
  6.   Using PCH .............. no
  7.   Target compiler supports:
  8.     iWMMXt/Neon .......... no/auto
  9.  
  10. Qt modules and options:
  11.   Qt D-Bus ............... yes (loading dbus-1 at runtime)
  12.   Qt Concurrent .......... yes
  13.   Qt GUI ................. yes
  14.   Qt Widgets ............. yes
  15.   Large File ............. yes
  16.   QML debugging .......... yes
  17.   Use system proxies ..... no
  18.  
  19. Support enabled for:
  20.   Accessibility .......... no
  21.   ALSA ................... yes
  22.   CUPS ................... no
  23.   Evdev .................. yes
  24.   FontConfig ............. no
  25.   FreeType ............... yes (bundled copy)
  26.   Glib ................... yes
  27.   GTK theme .............. no
  28.   HarfBuzz ............... no
  29.   Iconv .................. yes
  30.   ICU .................... no
  31.   Image formats:
  32.     GIF .................. yes (plugin, using bundled copy)
  33.     JPEG ................. yes (plugin, using system library)
  34.     PNG .................. yes (in QtGui, using system library)
  35.   journald ............... no
  36.   mtdev .................. no
  37.   Networking:
  38.     getaddrinfo .......... yes
  39.     getifaddrs ........... yes
  40.     IPv6 ifname .......... yes
  41.     OpenSSL .............. yes (linked to the libraries)
  42.   NIS .................... yes
  43.   OpenGL / OpenVG:
  44.     EGL .................. yes
  45.     OpenGL ............... yes (OpenGL ES 2.x)
  46.     OpenVG ............... no
  47.   PCRE ................... yes (bundled copy)
  48.   pkg-config ............. yes
  49.   PulseAudio ............. no
  50.   QPA backends:
  51.     DirectFB ............. no
  52.     EGLFS ................ yes
  53.     KMS .................. no
  54.     LinuxFB .............. yes
  55.     XCB .................. no
  56.   Session management ..... no
  57.   SQL drivers:
  58.     DB2 .................. no
  59.     InterBase ............ no
  60.     MySQL ................ no
  61.     OCI .................. no
  62.     ODBC ................. no
  63.     PostgreSQL ........... no
  64.     SQLite 2 ............. no
  65.     SQLite ............... yes (plugin, using bundled copy)
  66.     TDS .................. no
  67.   udev ................... yes
  68.   xkbcommon .............. no
  69.   zlib ................... yes (system library)

My configuration statement:

  1.     ${S}/configure -v \
  2.         -opensource -confirm-license \
  3.         -sysroot ${STAGING_DIR_TARGET} \
  4.         -no-gcc-sysroot \
  5.         -prefix ${OE_QMAKE_PATH_PREFIX} \
  6.         -bindir ${OE_QMAKE_PATH_BINS} \
  7.         -libdir ${OE_QMAKE_PATH_LIBS} \
  8.         -datadir ${OE_QMAKE_PATH_DATA} \
  9.         -sysconfdir ${OE_QMAKE_PATH_SETTINGS} \
  10.         -docdir ${OE_QMAKE_PATH_DOCS} \
  11.         -headerdir ${OE_QMAKE_PATH_HEADERS} \
  12.         -archdatadir ${OE_QMAKE_PATH_ARCHDATA} \
  13.         -libexecdir ${OE_QMAKE_PATH_LIBEXECS} \
  14.         -plugindir ${OE_QMAKE_PATH_PLUGINS} \
  15.         -importdir ${OE_QMAKE_PATH_IMPORTS} \
  16.         -qmldir ${OE_QMAKE_PATH_QML} \
  17.         -translationdir ${OE_QMAKE_PATH_TRANSLATIONS} \
  18.         -testsdir ${OE_QMAKE_PATH_TESTS} \
  19.         -examplesdir ${OE_QMAKE_PATH_EXAMPLES} \
  20.         -hostbindir ${OE_QMAKE_PATH_HOST_BINS} \
  21.         -hostdatadir ${OE_QMAKE_PATH_HOST_DATA} \
  22.         -external-hostbindir ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS} \
  23.         -platform ${TOPDIR}/out/sysroots/x86_64-linux/usr/lib/qt5/mkspecs/linux-g++ \
  24.   -xplatform linux-oe-g++ \
  25.   -optimized-qmake \
  26.   -shared \    
  27.   -silent \    
  28.   -no-pch \    
  29.   -no-rpath \    
  30.   -pkg-config \    
  31.   -no-xcb \
  32.   -no-sql-db2 \
  33.   -no-mtdev \
  34.   -no-gtkstyle \
  35.   -nomake tests \
  36.   -system-libjpeg \
  37.   -openssl-linked \
  38.   -nomake examples \
  39.   -no-xfixes \
  40.   -no-sql-mysql \
  41.   -opengl es2 \
  42.   -eglfs \
  43.   -qpa eglfs \
  44.   -make tools \
  45.   -qt-pcre \
  46.   -iconv \
  47.   -no-xkb \
  48.   -no-xkbcommon \
  49.   -no-fontconfig \
  50.   -no-kms \
  51.   -system-libpng \
  52.   -no-tslib \
  53.   -no-icu \
  54.   -no-directfb \
  55.   -glib \
  56.   -no-sql-oci \
  57.   -no-xinerama \
  58.   -no-sql-sqlite2 \
  59.   -accessibility \
  60.   -widgets \
  61.   -no-xrandr \
  62.   -linuxfb \
  63.   -no-libudev \
  64.   -no-xcursor \
  65.   -no-sql-psql \
  66.   -make libs \
  67.   -nis \
  68.   -no-openvg \
  69.   -no-xvideo \
  70.   -no-xsync \
  71.   -no-sql-tds \
  72.   -no-xshape \
  73.   -dbus \
  74.   -system-zlib \
  75.   -no-pulseaudio \
  76.   -no-xrender \
  77.   -no-mitshm \
  78.   -no-sm \
  79.   -no-xinput \
  80.   -no-sql-ibase \
  81.   -no-xinput2 \
  82.   -alsa \
  83.   -no-sql-odbc \
  84.   -release \

Thanks.

December 3, 2014

agocs agocs
Hobby Entomologist
136 posts

egl-x11 is irrelevant if you are not using the xcb platform plugin. In your case xcb is disabled completely so the fact that EGL support under X11 is reported as available has no consequences whatsoever.

 
  ‹‹ make not recognized by configure script      Canot get Qt-SDK ››

You must log in to post a reply. Not a member yet? Register here!