This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

QT BUILD issue with GLSDK 7.04.00.03

Hi,

I have downloaded GLSDK 7.04.00.03.

And followed the steps given in the link:

for building the yocto based root filesystem with QT5.

I made the necessary changes in the config files as given in the link:

But QT5 is not built in to the root filesystem.

Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| Determining system architecture... (Linux:3.13.0-32-generic:x86_64)
|     64-bit AMD 80x86 (x86_64)
|     'arm' is supported
|     'x86_64' is supported
| System architecture: 'arm'
| Host architecture: 'x86_64'
| Symbol visibility control enabled.
| Symbolic function binding enabled.
| 
| This is the Qt for Embedded Linux Open Source Edition.
| 
| You are licensed to use this software under the terms of
| the Lesser GNU General Public License (LGPL) versions 2.1.
| You are also licensed to use this software under the terms of
| the GNU General Public License (GPL) versions 3.
| 
| Type '3' to view the GNU General Public License version 3.
| Type 'L' to view the Lesser GNU General Public License version 2.1.
| Type 'yes' to accept this license offer.
| Type 'no' to decline this license offer.
| 
| Do you accept the terms of either license?
| floatmath auto-detection... ()
| compiling floatmath.cpp
| floatmath.cpp:44:5: warning: unused parameter 'argc' [-Wunused-parameter]
| floatmath.cpp:44:5: warning: unused parameter 'argv' [-Wunused-parameter]
| linking floatmath
| floatmath enabled.
| mmx auto-detection... ()
| compiling mmx.cpp
| arm-linux-gnueabihf-g++: error: unrecognized command line option '-mmmx'
| make: *** [mmx.o] Error 1
| mmx disabled.
| 3dnow auto-detection... ()
| compiling 3dnow.cpp
| arm-linux-gnueabihf-g++: error: unrecognized command line option '-m3dnow'
| make: *** [3dnow.o] Error 1
| 3dnow disabled.
| sse auto-detection... ()
| compiling sse.cpp
| arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse'
| make: *** [sse.o] Error 1
| sse disabled.
| sse2 auto-detection... ()
| compiling sse2.cpp
| arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse2'
| make: *** [sse2.o] Error 1
| sse2 disabled.
| sse3 auto-detection... ()
| compiling sse3.cpp
| arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse3'
| make: *** [sse3.o] Error 1
| sse3 disabled.
| ssse3 auto-detection... ()
| compiling ssse3.cpp
| arm-linux-gnueabihf-g++: error: unrecognized command line option '-mssse3'
| make: *** [ssse3.o] Error 1
| ssse3 disabled.
| sse4_1 auto-detection... ()
| compiling sse4_1.cpp
| arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse4.1'
| make: *** [sse4_1.o] Error 1
| sse4_1 disabled.
| sse4_2 auto-detection... ()
| compiling sse4_2.cpp
| arm-linux-gnueabihf-g++: error: unrecognized command line option '-msse4.2'
| make: *** [sse4_2.o] Error 1
| sse4_2 disabled.
| avx auto-detection... ()
| compiling avx.cpp
| arm-linux-gnueabihf-g++: error: unrecognized command line option '-mavx'
| make: *** [avx.o] Error 1
| avx disabled.
| neon auto-detection... ()
| compiling neon.cpp
| linking neon
| neon enabled.
| ipc_sysv auto-detection... ()
| compiling ipc.cpp
| linking ipc_sysv
| ipc_sysv enabled.
| libmng auto-detection... ()
| compiling libmng.cpp
| libmng.cpp:42:20: fatal error: libmng.h: No such file or directory
| compilation terminated.
| make: *** [libmng.o] Error 1
| libmng disabled.
| DB2 auto-detection... ()
| compiling db2.cpp
| db2.cpp:42:20: fatal error: sqlcli.h: No such file or directory
| compilation terminated.
| make: *** [db2.o] Error 1
| DB2 disabled.
| OCI auto-detection... ()
| compiling oci.cpp
| oci.cpp:42:17: fatal error: oci.h: No such file or directory
| compilation terminated.
| make: *** [oci.o] Error 1
| OCI disabled.
| SQLite auto-detection... ()
| compiling sqlite.cpp
| linking sqlite
| SQLite enabled.
| unknown SQL driver: sqlite_symbian
| unknown SQL driver: symsql
| TDS auto-detection... ()
| compiling tds.cpp
| tds.cpp:42:22: fatal error: sybfront.h: No such file or directory
| compilation terminated.
| make: *** [tds.o] Error 1
| TDS disabled.
| D-Bus auto-detection... ()
| compiling dbus.cpp
| linking dbus
| D-Bus enabled.
| Glib auto-detection... ()
| compiling glib.cpp
| glib.cpp: In function 'int main(int, char**)':
| glib.cpp:52:9: warning: 'void g_thread_init(gpointer)' is deprecated (declared at /home/mobis/ti-glsdk_dra7xx-evm_7_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm/usr/include/glib-2.0/glib/deprecated/gthread.h:260) [-Wdeprecated-declarations]
| glib.cpp:52:27: warning: 'void g_thread_init(gpointer)' is deprecated (declared at /home/mobis/ti-glsdk_dra7xx-evm_7_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm/usr/include/glib-2.0/glib/deprecated/gthread.h:260) [-Wdeprecated-declarations]
| glib.cpp:48:19: warning: variable 'context' set but not used [-Wunused-but-set-variable]
| glib.cpp:55:38: warning: 'pollfd' is used uninitialized in this function [-Wuninitialized]
| linking glib
| Glib enabled.
| GStreamer auto-detection... ()
| compiling gstreamer.cpp
| gstreamer.cpp:53:5: warning: unused parameter 'argc' [-Wunused-parameter]
| gstreamer.cpp:53:5: warning: unused parameter 'argv' [-Wunused-parameter]
| linking gstreamer
| GStreamer enabled.
| ICD auto-detection... ()
| compiling icd.cpp
| icd.cpp:42:22: fatal error: wlancond.h: No such file or directory
| compilation terminated.
| make: *** [icd.o] Error 1
| ICD disabled.
| ICU auto-detection... ()
| compiling icu.cpp
| linking icu
| ICU enabled.
| PulseAudio auto-detection... ()
| compiling pulseaudio.cpp
| linking pulseaudio
| PulseAudio enabled.
| OpenGL ES 2.x auto-detection... ()
| compiling opengles2.cpp
| linking opengles2
| /home/mobis/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lGLES_CM
| collect2: error: ld returned 1 exit status
| make: *** [opengles2] Error 1
| OpenGL ES 2.x disabled.
| The OpenGL ES 2.0 functionality test failed!
|  You might need to modify the include and library search paths by editing
|  QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in
|  /home/mobis/ti-glsdk_dra7xx-evm_7_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15t2hf-vfp-neon-3.14-linux-gnueabi/qt4-embedded-gles/4.8.5-r52.3-arago8.1/qt-everywhere-opensource-src-4.8.5/mkspecs/linux-gnueabi-oe-g++.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/mobis/ti-glsdk_dra7xx-evm_7_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15t2hf-vfp-neon-3.14-linux-gnueabi/qt4-embedded-gles/4.8.5-r52.3-arago8.1/temp/log.do_configure.28549)
ERROR: Task 3393 (/home/mobis/ti-glsdk_dra7xx-evm_7_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-qt/qt4/qt4-embedded-gles_4.8.5.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4243 tasks of which 4242 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
No currently running tasks (1815 of 4265)

Summary: 1 task failed:
  /home/mobis/ti-glsdk_dra7xx-evm_7_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-qt/qt4/qt4-embedded-gles_4.8.5.bb, do_configure
Summary: There were 2 WARNING messages shown.
Summary: There were 9 ERROR messages shown, returning a non-zero exit code.
[GLSDK]>
[GLSDK]> Completed Yocto build at Tue May  3 17:46:47 IST 2016
[GLSDK]>

Please find the attachment for the build log where I am getting error: cannot find -lGLES_CM during configuring of QT5.

Please help me resolve this problem and build a root filesystem with QT libraries in it.

Best Regards,

Sainath

  • Hi Sainath,

    There are some potential reasons causing issues during building GLSDK.
    Could you print your PATH variable to check weather the you have added only one toolchain.
    Check weather the condition from the guide is considered:
    NOTE: Please pass the same downloads directory path to the following build-script when prompted
    Try with install and use newer linaro toolchain cross compiler version:
    releases.linaro.org/.../

    BR
    Tsvetolin Shulev
  • Hi Tsvetolin Shulev,

    Thanks for the reply.
    I am able to build Qt5. Now I am trying to run some applications on the target (DRA7XX-EVM). But I am not succeeding.
    I have configured the QT5 with opengles2. When i am running the application I am getting the below error:

    root@dra7xx-evm#./mainwindow -platform eglfs
    PVR:(Warning): LoadWSModule: Window system module libpvrws_KMS.so did not validate native display [98, /generic_ws.c]
    PVR:(Warning): LoadWSModule: Window system module libpvrws_WAYLAND.so did not validate native display [98, /generic_ws.c]
    PVR:(Error): Couldn't load WS module libpvrws_OMAPDRI2.so [44, /generic_ws.c]
    Could not open egl display

    EGL error
    Aborted


    Best Regards,
    Sainath