Hello,
Is it possible to use both QT 5.x and SGX.
I am not sure accordint to TI's wiki which state that:
1. Qt 5.x does not use qws any more.
2. SGX use qws.
So is it possible to use both ?
we use DM8148 processor
Thanks,
Ran
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.
Hi Pavel,
I've download QT 5.1.1 and build with arm-aragon-linux
exactly as described in TI's sgx patch:
But I get the following errors and then it stops:
./configure -prefix /qt5_1_install/ -release -make libs -xplatform linux-arm-gnueabi-ti-g++ -opengl es2 -confirm-license -opensource -icu -no-xcb -no-pch -make examples -verbose
CFG_ARCH="arm"
CFG_CPUFEATURES=""
Determining architecture... ()
g++ -c -pipe -g -Wall -W -fPIE -I../../mkspecs/linux-g++ -I. -o arch.o arch.cpp
g++ -o arch arch.o
{ test -n "" && DESTDIR="" || DESTDIR=.; } && test $(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'arch' && test -f arch.gdb-index && objcopy --add-section '.gdb_index=arch.gdb-index' --set-section-flags '.gdb_index=readonly' 'arch' 'arch' && rm -f arch.gdb-index || true
Found architecture in binary
CFG_HOST_ARCH="i386"
CFG_HOST_CPUFEATURES=""
System architecture: 'arm'
Host architecture: 'i386'
C++11 auto-detection... ()
/home/ubuntu/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/arm-arago-linux-gnueabi-g++ -c -pipe -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp -std=c++0x -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-ti-g++ -I. -I/qt5_1_install/usr/include -I/qt5_1_install/usr/include/glib-2.0 -I/qt5_1_install/usr/lib/glib-2.0/include/ -I/qt5_1_install/usr/include/libxml2/ -I/qt5_1_install/usr/include/freetype2 -I/qt5_1_install/usr/include/dbus-1.0 -I/qt5_1_install/usr/include/dbus-1.0/dbus -o c++11.o c++11.cpp
/home/ubuntu/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/arm-arago-linux-gnueabi-g++ -Wl,-O1 -o c++11 c++11.o -L/qt5_1_install/usr/lib/arm-arago-linux-gnueabi -L/qt5_1_install/usr/lib -lxml2 -lz -lts -lasound -lfreetype -lexpat -lfontconfig -lpng -lpthread -Wl,-rpath-link=/qt5_1_install/usr/lib/arm-arago-linux-gnueabi -Wl,-rpath-link=/qt5_1_install/usr/lib
C++11 enabled.
floatmath auto-detection... ()
/home/ubuntu/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/arm-arago-linux-gnueabi-g++ -c -pipe -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-ti-g++ -I. -I/qt5_1_install/usr/include -I/qt5_1_install/usr/include/glib-2.0 -I/qt5_1_install/usr/lib/glib-2.0/include/ -I/qt5_1_install/usr/include/libxml2/ -I/qt5_1_install/usr/include/freetype2 -I/qt5_1_install/usr/include/dbus-1.0 -I/qt5_1_install/usr/include/dbus-1.0/dbus -o floatmath.o floatmath.cpp
floatmath.cpp:44:5: warning: unused parameter 'argc'
floatmath.cpp:44:5: warning: unused parameter 'argv'
/home/ubuntu/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/arm-arago-linux-gnueabi-g++ -Wl,-O1 -o floatmath floatmath.o -L/qt5_1_install/usr/lib/arm-arago-linux-gnueabi -L/qt5_1_install/usr/lib -lxml2 -lz -lts -lasound -lfreetype -lexpat -lfontconfig -lpng -lpthread -Wl,-rpath-link=/qt5_1_install/usr/lib/arm-arago-linux-gnueabi -Wl,-rpath-link=/qt5_1_install/usr/lib
floatmath enabled.
sse2 auto-detection... ()
/home/ubuntu/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/arm-arago-linux-gnueabi-g++ -c -pipe -msse2 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-ti-g++ -I. -I/qt5_1_install/usr/include -I/qt5_1_install/usr/include/glib-2.0 -I/qt5_1_install/usr/lib/glib-2.0/include/ -I/qt5_1_install/usr/include/libxml2/ -I/qt5_1_install/usr/include/freetype2 -I/qt5_1_install/usr/include/dbus-1.0 -I/qt5_1_install/usr/include/dbus-1.0/dbus -o sse2.o sse2.cpp
cc1plus: error: unrecognized command line option "-msse2"
make: *** [sse2.o] Error 1
sse2 disabled.
sse3 auto-detection... ()
/home/ubuntu/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/arm-arago-linux-gnueabi-g++ -c -pipe -msse3 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-ti-g++ -I. -I/qt5_1_install/usr/include -I/qt5_1_install/usr/include/glib-2.0 -I/qt5_1_install/usr/lib/glib-2.0/include/ -I/qt5_1_install/usr/include/libxml2/ -I/qt5_1_install/usr/include/freetype2 -I/qt5_1_install/usr/include/dbus-1.0 -I/qt5_1_install/usr/include/dbus-1.0/dbus -o sse3.o sse3.cpp
cc1plus: error: unrecognized command line option "-msse3"
make: *** [sse3.o] Error 1
sse3 disabled.
ssse3 auto-detection... ()
Also tried to apply the patches on qt5.1.1 as described but it fails.
Thanks,
Ran
Ran Shalit said:I've download QT 5.1.1 and build with arm-aragon-linux
Ran Shalit said:./configure -prefix /qt5_1_install/ -release -make libs -xplatform linux-arm-gnueabi-ti-g++
Ran Shalit said:/home/ubuntu/dvrrdk/DVRRDK_04.01.00.02/ti_tools/cgt_a8/arago/linux-devkit/bin/arm-arago-linux-gnueabi-g++
Which toolchain exactly you are using?
I suspect that more recent toolchain is needed:
export PATH=<path to recent GCC toolchain>
TOOLCHAIN_PREFIX=/opt/linaro/gcc-linaro-arm-linux-gnueabi-2012.03-20120326_linux/bin/arm-linux-gnueabi
Can you check if there will be any improvements with the below toolchains:
1. arago-2011.09
2. Sitara toolchain:
BR
Pavel
Hi Pavel,
Thank you very much for the help.
After some struglling with the version patch's provided by prabindh which non could compiled according to instructions, I decided to try my luck with newer qt version. So I tried qt5.3.2, with the build is successful ! Though I still hope that no patch is required for TI's arm.
Anyway, on trying to run any of the examples in qt I get error:
" could not find or load the Qt platform plugin "xcb"
Although I build it with -no-xcb (also prabindh configure examle for 5.1.1 is with -no-xcb)
Is there any idea if I can run any non xcb dependent example ?
Thanks,
Ran
Ran Shalit said:If we need OpenGL and QML does it mean Qt must support SGX ?
Is it OpenGL=3D=SGX ?
Yes, Qt5 can be used on DM81xx devices.
SGX is a 3D Graphics accelerator that is programmed via OpenGLES API. Hence, you can say that SGX = 3D = OpenGLES.
There is no OpenGL support, TI SoCs support only OpenGL ES 1.1/2.0
Upgrading Qt is done via picking up the right Yocto recipes.
BR
Pavel
Ran Shalit said:Anyway, on trying to run any of the examples in qt I get error:
" could not find or load the Qt platform plugin "xcb"
See if the below e2e threads will be in help:
BR
Pavel
Hi Pavel,
I've followed the detailed instruction in
In this link prabindh , even attached the exact binaries he compiled, so I used that files.
But on trying to example as he used in the tutorial:
root@dm814x:/examples/widgets/painting/basicdrawing# /bin/qmlscene /examples/declarative/animation/ -platform eglfs
QIconvCodec::convertFromUnicode: using Latin-1 for conversion, iconv_open failed
QML debugging is enabled. Only use this in a safe environment.
QIconvCodec::convertToUnicode: using Latin-1 for conversion, iconv_open failed
Failed to load platform plugin "eglfs". Available platforms are:
Aborted
It seems as if LD_LIBRARY_PATH does not link to this .co , but trying to add the link to LD_LIBRARY_PATH, I still get the same error.
Is there any idea what's wrong ?
Thanks,
Ran
Hi Pavel,
Seems that the qt install path in configure -prefix
is responsible for this.
if prefix is -prefix /path/to/qt
then all libraries everything must be inside
$/path/to/qt
On fixing it the issue been resolved...
I also had to start sgx with “/opt/gfxsdkdemos/38xx-demo”
Does it all make sense ?
Thanks,
Ran