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.

Any TI's arm processor support Qt5 ?

Guru 20755 points

Hello,

I am trying build qt5.x package for TI's arm but I get errors which I don't know how to resolve.

It seems that the package can't find some headers which are totally missing in out host environment.

 If they are supposed to be installed in host. isn't it that the application on target will search for the library of those packages cross-sompiled and won't find them ?
These libararies for example are supposed to be installed in HOST (but not sure if they should also be build in target):

libfontconfig1-dev libdbus-1-dev libfreetype6-dev libudev-dev libicu-dev \
  libsqlite3-dev libxslt1-dev libssl-dev libasound2-dev libavcodec-dev libavformat-dev libswscale-dev \
  libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev gstreamer-tools gstreamer0.10-plugins-good \
  gstreamer0.10-plugins-bad libraspberrypi-dev libpulse-dev libx11-dev libglib2.0-dev libcups2-dev \
  freetds-dev libsqlite0-dev libpq-dev libiodbc2-dev libmysqlclient-dev firebird-dev libpng12-dev \
  libjpeg62-dev libgst-dev libxext-dev libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 \
  libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 \
  libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-render-util0 libxcb-render-util0-dev \
  libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev libxi-dev \
  libdrm-dev flex ruby gperf bison libts-dev)

ubuntu@ubuntu-laptop:/media/sdb/qt5/qt-everywhere-opensource-src-5.1.1$ ./configure -prefix /qt5 -release -make libs -xplatform linux-TIarmv7-g++ -opengl es2 -confirm-license -opensource -icu -no-xcb -no-pch -make examples -verbose >> myerr
Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.
floatmath.cpp:44:5: warning: unused parameter 'argc'
floatmath.cpp:44:5: warning: unused parameter 'argv'
cc1plus: error: unrecognized command line option "-msse2"
make: *** [sse2.o] Error 1
cc1plus: error: unrecognized command line option "-msse3"
make: *** [sse3.o] Error 1
cc1plus: error: unrecognized command line option "-mssse3"
make: *** [ssse3.o] Error 1
cc1plus: error: unrecognized command line option "-msse4.1"
make: *** [sse4_1.o] Error 1
cc1plus: error: unrecognized command line option "-msse4.2"
make: *** [sse4_2.o] Error 1
cc1plus: error: unrecognized command line option "-mavx"
make: *** [avx.o] Error 1
libjpeg.cpp: In function 'int main(int, char**)':
libjpeg.cpp:51:32: warning: 'cinfo' is used uninitialized in this function
db2.cpp:42:20: fatal error: sqlcli.h: No such file or directory
compilation terminated.
make: *** [db2.o] Error 1
ibase.cpp:42:19: fatal error: ibase.h: No such file or directory
compilation terminated.
make: *** [ibase.o] Error 1
../mysql/mysql.cpp:42:19: fatal error: mysql.h: No such file or directory
compilation terminated.
make: *** [mysql.o] Error 1
mysql.cpp:42:19: fatal error: mysql.h: No such file or directory
compilation terminated.
make: *** [mysql.o] Error 1
oci.cpp:42:17: fatal error: oci.h: No such file or directory
compilation terminated.
make: *** [oci.o] Error 1
odbc.cpp:45:17: fatal error: sql.h: No such file or directory
compilation terminated.
make: *** [odbc.o] Error 1
iodbc.cpp:42:17: fatal error: sql.h: No such file or directory
compilation terminated.
make: *** [iodbc.o] Error 1
psql.cpp:42:22: fatal error: libpq-fe.h: No such file or directory
compilation terminated.
make: *** [psql.o] Error 1
sqlite2.cpp:42:20: fatal error: sqlite.h: No such file or directory
compilation terminated.
make: *** [sqlite2.o] Error 1
tds.cpp:42:22: fatal error: sybfront.h: No such file or directory
compilation terminated.
make: *** [tds.o] Error 1
In file included from dbus.cpp:43:0:
/media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/arm-arago-linux-gnueabi/usr/include/dbus-1.0/dbus/dbus.h:29:33: fatal error: dbus/dbus-arch-deps.h: No such file or directory
compilation terminated.
make: *** [dbus.o] Error 1
glib.cpp: In function 'int main(int, char**)':
glib.cpp:55:38: warning: 'pollfd' is used uninitialized in this function
glib.o: In function `main':
glib.cpp:(.text+0x20): undefined reference to `g_thread_init'
glib.cpp:(.text+0x24): undefined reference to `g_main_context_default'
glib.cpp:(.text+0x30): undefined reference to `g_source_new'
glib.cpp:(.text+0x38): undefined reference to `g_source_add_poll'
glib.cpp:(.text+0x48): undefined reference to `g_threads_got_initialized'
collect2: ld returned 1 exit status
make: *** [glib] Error 1
icu.cpp:42:28: fatal error: unicode/utypes.h: No such file or directory
compilation terminated.
make: *** [icu.o] Error 1
ubuntu@ubuntu-laptop:/media/sdb/qt5/qt-everywhere-opensource-src-5.1.1$

In the following link from TI's patch for Qt I see that the latest version patches is QT5.1.1 which is supposed to support SGX:

Does it mean that later version should not be used with TI's arm ?

I have removed icu from configure shell command. Is it required for the openGL ?

Regards,

Ran

  • Is there any one who managed to work with qt and openGL?

    I am struggling with it.

    trying to configure 5.1.1 as instructed by Prabindh Sundareson patch

    gives plenty of errors:

    ubuntu@ubuntu-laptop:/media/sdb/qt5/qt-everywhere-opensource-src-5.1.1$ ./configure -prefix /qt5 -release -make libs -xplatform linux-TIarmv7-g++ -opengl es2 -confirm-license -opensource -no-icu -no-xcb -no-pch -make examples -verbose >> xx
    Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
    Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.
    floatmath.cpp:44:5: warning: unused parameter 'argc'
    floatmath.cpp:44:5: warning: unused parameter 'argv'
    cc1plus: error: unrecognized command line option "-msse2"
    make: *** [sse2.o] Error 1
    cc1plus: error: unrecognized command line option "-msse3"
    make: *** [sse3.o] Error 1
    cc1plus: error: unrecognized command line option "-mssse3"
    make: *** [ssse3.o] Error 1
    cc1plus: error: unrecognized command line option "-msse4.1"
    make: *** [sse4_1.o] Error 1
    cc1plus: error: unrecognized command line option "-msse4.2"
    make: *** [sse4_2.o] Error 1
    cc1plus: error: unrecognized command line option "-mavx"
    make: *** [avx.o] Error 1
    libjpeg.cpp: In function 'int main(int, char**)':
    libjpeg.cpp:51:32: warning: 'cinfo' is used uninitialized in this function
    db2.cpp:42:20: fatal error: sqlcli.h: No such file or directory
    compilation terminated.
    make: *** [db2.o] Error 1
    ibase.cpp:42:19: fatal error: ibase.h: No such file or directory
    compilation terminated.
    make: *** [ibase.o] Error 1
    /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/../lib/gcc/arm-arago-linux-gnueabi/4.5.3/../../../../arm-arago-linux-gnueabi/bin/ld: cannot find -lmysqlclient_r
    collect2: ld returned 1 exit status
    make: *** [mysql_r] Error 1
    /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/../lib/gcc/arm-arago-linux-gnueabi/4.5.3/../../../../arm-arago-linux-gnueabi/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    make: *** [mysql] Error 1
    oci.cpp:42:17: fatal error: oci.h: No such file or directory
    compilation terminated.
    make: *** [oci.o] Error 1
    odbc.cpp:45:17: fatal error: sql.h: No such file or directory
    compilation terminated.
    make: *** [odbc.o] Error 1
    iodbc.cpp:42:17: fatal error: sql.h: No such file or directory
    compilation terminated.
    make: *** [iodbc.o] Error 1
    /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/../lib/gcc/arm-arago-linux-gnueabi/4.5.3/../../../../arm-arago-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/libpq.so when searching for -lpq
    /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/../lib/gcc/arm-arago-linux-gnueabi/4.5.3/../../../../arm-arago-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/libpq.a when searching for -lpq
    /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/../lib/gcc/arm-arago-linux-gnueabi/4.5.3/../../../../arm-arago-linux-gnueabi/bin/ld: cannot find -lpq
    collect2: ld returned 1 exit status
    make: *** [psql] Error 1
    sqlite2.cpp:42:20: fatal error: sqlite.h: No such file or directory
    compilation terminated.
    make: *** [sqlite2.o] Error 1
    tds.cpp:42:22: fatal error: sybfront.h: No such file or directory
    compilation terminated.
    make: *** [tds.o] Error 1
    dbus.cpp:43:23: fatal error: dbus/dbus.h: No such file or directory
    compilation terminated.
    make: *** [dbus.o] Error 1
    In file included from /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/arm-arago-linux-gnueabi/usr/include/glib-2.0/glib/galloca.h:34:0,
    from /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/arm-arago-linux-gnueabi/usr/include/glib-2.0/glib.h:32,
    from glib.cpp:44:
    /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/arm-arago-linux-gnueabi/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory
    compilation terminated.
    make: *** [glib.o] Error 1
    In file included from /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/arm-arago-linux-gnueabi/usr/include/glib-2.0/glib/galloca.h:34:0,
    from /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/arm-arago-linux-gnueabi/usr/include/glib-2.0/glib.h:32,
    from /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/pulse/glib-mainloop.h:26,
    from pulseaudio.cpp:43:
    /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/arm-arago-linux-gnueabi/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory
    compilation terminated.
    make: *** [pulseaudio.o] Error 1
    In file included from fontconfig.cpp:42:0:
    /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such file or directory
    compilation terminated.
    make: *** [fontconfig.o] Error 1
    Project ERROR: Package libdrm not found
    make: *** No targets specified and no makefile found. Stop.
    egl.cpp: In function 'int main(int, char**)':
    egl.cpp:46:12: warning: unused variable 'x'
    In file included from freetype.cpp:42:0:
    /media/sdc/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/../arm-arago-linux-gnueabi/usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such file or directory
    compilation terminated.
    make: *** [freetype.o] Error 1
    stltest.cpp: In function 'int main()':
    stltest.cpp:146:9: warning: unused variable 'n'
    pcre.cpp:45:2: error: #error This PCRE version is not supported
    make: *** [pcre.o] Error 1
    shivavg.cpp:42:23: fatal error: vg/openvg.h: No such file or directory
    compilation terminated.
    make: *** [shivavg.o] Error 1
    alsatest.cpp:47:5: warning: unused parameter 'argc'
    alsatest.cpp:47:5: warning: unused parameter 'argv'
    hwcap_test.cpp:43:5: warning: unused parameter 'argc'
    hwcap_test.cpp:43:5: warning: unused parameter 'argv'
    ptrsizetest.cpp: In function 'int main(int, char**)':
    ptrsizetest.cpp:59:12: error: 'PointerSize' is not a member of 'QPointerSizeTest<4>'
    make: *** [ptrsizetest.o] Error 1
    ubuntu@ubuntu-laptop:/media/sdb/qt5/qt-everyw

  • Hello,

    You could check this thread:
    e2e.ti.com/.../481795

    BR
    Margarita