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.
Tool/software: Linux
Team,
One of my customer needs QT4.8.x with latest processor SDK. Could you please help with working
1. qmake.conf
2. configure commandI seen the previous e2e links but I couldn't get it working.
Note: I am using qt-everywhere-opensource-src-4.8.7.
Best Regards, Shiv
Hello Shiv,
Here is the config file.
qmake.conf
Here is the configure command.
./configure -opensource -confirm-license -xplatform qws/linux-arm-g++ -prefix /usr -embedded arm -opengl es2 -plugin-gfx-powervr -plugin-mouse-tslib -no-rpath
Apply these two patches.
cd qt-everywhere-opensource-src-4.8.7
git apply 0001-Fix-missing-pvr2d.h-and-wsegl.h-header-in-SGX-SDK.patch
git apply 002_pvrqwswsegl.c.patch
Copy tslib.h file to ti-processor-sdk-linux-am437x-evm-05.01.00.11/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include and extract libts.tar.xz in ti-processor-sdk-linux-am437x-evm-05.01.00.11/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib.
Export the tool-chain path and build.
export PATH=<absolute path to>/ti-processor-sdk-linux-am437x-evm-05.01.00.11/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/:$PATH
./configure -opensource -confirm-license -xplatform qws/linux-arm-g++ -prefix /usr -embedded arm -opengl es2 -plugin-gfx-powervr -plugin-mouse-tslib -no-rpath
make -j 8
Use INSTALL_ROOT to extract the binaries and libraries to a separate directory, then copy this directory to your board in /usr location.
make INSTALL_ROOT=~/qt4 install
Export QWS_MOUSE_PROTO to make the touch screen work and install these tslib touch screen libraries on your board.
root@am437x-evm:~# export QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0
root@am437x-evm:~# opkg install tslib-conf_1.1-r0.arago1_armv7ahf-neon.ipk
root@am437x-evm:~# opkg install libts-1.0-0_1.1-r0.arago1_armv7ahf-neon.ipk
root@am437x-evm:~# opkg install tslib-calibrate_1.1-r0.arago1_armv7ahf-neon.ipk
You can add QT4.8.7 support to the latest Processor SDK by using OE build system in this way.
$ sudo dpkg-reconfigure dash
(Select "No" when prompted)
Close the current terminal where you have executed dpkg-reconfigure dash command and open a new one.
$ sudo apt-get install git build-essential python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386
$ wget https://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/arm-linux-gnueabihf/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz
$ tar -Jxvf gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz -C $HOME
$ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
$ cd tisdk
$ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-05.01.00.11-config.txt
$ cd sources/meta-arago/
$ git apply 0001-meta-arago-Add-Qt4-recipes.patch
$ cd ../meta-openembedded/
$ git apply 0001-meta-openembedded-Add-Qt4-recipes.patch
$ cd ../oe-core/
$ git apply 0001-oe-core-Import-Qt4-recipes.patch
$ cd ../../build/
# Add these lines to <tisdk>/build/conf/local.conf
//------------------------------------------------------------------------------
#Select Qt provider qt4e or qt5
QT_PROVIDER = "qt4e"
#Additional software to install on target rootfs
IMAGE_INSTALL += "tslib-calibrate"
//------------------------------------------------------------------------------
$ . conf/setenv
$ export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf
$ MACHINE=am437x-evm bitbake tisdk-rootfs-image
Best regards,
Kemal
Hi Kemal,
Many thanks, I will check with the above steps and update soon.
Best Regards, Shiv