I had problems getting cross compile to work. The kernel needed for ti graphics was different than the linaro toolchain, so my cross compile failed even when I specified sysroot as the SD card. So, I built the whole thing on the beaglebone. To develop applications, I installed QT Creator on a x86 32bit debian image, developed the application for the desktop, copied the project to the beaglebone and compiled it there.
Here's how I set up my qt 5.3.2 production image: install base image: bone-debian-7.6-console-armhf-2014-09-04-2gb.img on a SD card Put the SD card in your beaglebone and boot to the SD card Log in Change the default password Enter the following (things to type at the console will start with #, don’t type the #) Change the default password #passwd Upgrade the image to latest repositories #sudo apt-get update #sudo apt-get upgrade Install the kernel that works with ti graphics SDK #sudo apt-get install linux-image-3.14.19-ti-r27 #sudo reboot Set up your locale information #sudo apt-get install locales #sudo dpkg-reconfigure locales Install network date/time sync #sudo apt-get install ntpdate chrony Install touch screen drivers + utilities like ts_calibrate #sudo apt-get install tslib libts-bin Install wireless drivers & tools for USB wireless dongle #sudo apt-get install wireless-tools wpasupplicant Install pre-requisite for installing ti graphics SDK #sudo apt-get install lsb-release Configure wireless to start when system starts by uncommenting wireless entries #sudo nano /etc/network/interfaces auto wlan0 iface wlan0 inet dhcp wpa-ssid networkname wpa-psk passphrase Configure time zone and touch screen environment variables by appending the following values #nano .profile export TZ='America/Chicago' export TSLIB_CONSOLEDEVICE=none export TSLIB_CONFFILE=/etc/ts.conf export TSLIB_CALIBFILE=/etc/pointercal export TSLIB_TSDEVICE=/dev/input/event1 export TSLIB_FBDEVICE=/dev/fb0 export TSLIB_PLUGINDIR=/usr/lib/arm-linux-gnueabihf/ts0 export TSLIB_TSEVENTTYPE=INPUT The LCD cape will be disabled - you will need to add the following to re-enable the LCD cape and disable the HDMI #sudo nano /boot/uEnv.txt fdtfile=am335x-boneblack-4dcape-43t.dtb cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN #sudo reboot Now, switch over to a debian 7.6 x86 32 bit linux box Load pre-requisites for building ti graphics SDK and build it for the kernel #sudo apt-get install git build-essential device-tree-compiler lzma lzop u-boot-tools libncurses5-dev #git config —global user.name “name” #git config —global user.email “email” #git clone https://github.com/RobertCNelson/ti-linux-kernel-dev.git #cd ti-linux-kernel-dev #git checkout 3.14.19-ti-r27 #./build_kernel #./sgx-build-modules.sh Copy the compiled ti graphics SDK to the beagle bone #scp ./release/GFX_5.01.01.01.tar.gz [email protected].???:~/. Run the following on your beagle bone #sudo tar xfv GFX_5.01.01.01.tar.gz -C / #cd /opt/gfxinstall/ #sudo ./sgx-install.sh #sudo reboot Verify the ti graphics SDK installed After running this line you should see the following output #lsmod | grep omap omaplfb 13161 0 pvrsrvkm 178957 1 omaplfb tilcdc 28310 1 omaplfb Run a demo to make sure it all works #cd /opt/gfxsdkdemos/ogles2 #sudo ./OGLES2ChameleonMan Exit the demo #q Shut down #sudo shutdown now Power down and insert the SD card into the Linux box Make a backup of the SD card on the Linux box #sudo dd if=/dev/sdb bs=1M | gzip > ./debian-7.6-GFX-WIFI-base.gz Eject the SD card and insert it back in the beaglebone and boot to SD Card Log in Execute the following: #sudo /opt/scripts/tools/grow_partition.sh #sudo reboot Copy the qt dev files to the beaglebone from the linux box #scp qt-everywhere-opensource-src-5.3.1.tar [email protected].???:~/. Execute the following on the beaglebone #sudo apt-get install make gcc g++ alsa libasound2-dev libgles2-mesa-dev mtdev-tools libmtdev-dev libudev-dev #tar xfv ./qt-everywhere-opensource-src-5.3.2.tar #mv qt-everywhere-opensource-src-5.3.2 qt-src #mkdir qt-beagle #cd qt-beagle #../qt-src/configure -v -opensource -confirm-license -prefix /usr/local/qt-5.3.2 -no-largefile -qt-zlib -qt-libpng -qt-libjpeg -no-nis -no-cups -opengl es2 -no-xcb #make Wait about 16 hours #make install Copy the qt deployed image for future use #tar -cvzf qt-5.3.2.tgz /usr/local/qt-5.3.2/ Copy the qt-5.3.2.tgz to the linux box Shutdown the beaglebone and move the SD card back to the linux box On the linux box, Restore the base graphics image we saved before #sudo gzip -dc ./debian-7.6-GFX-WIFI-base.gz | sudo dd of=/dev/sdb Eject the SD card and insert it in the beaglebone and boot to SD card Copy the qt libraries to the beaglebone #scp qt-5.3-libs.tar.gz [email protected].???:~ On the beaglebone, execute the following: #sudo tar xfv qt-5.3-libs.tar.gz -C / #sudo nano /etc/environment export QT_QPA_PLATFORM=eglfs export QT_PLUGIN_PATH=/usr/local/plugins #nano /etc/profile export PATH=$PATH:/usr/local/qt-5.3.2/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/qt-5.3.2/lib #sudo apt-get install dbus libpng12-0 libglib2.0-0 mtdev1 libfontconfig1 libts-bin libgles2-mesa-dev mtdev-tools libasound2 #cd /opt/gfxinstall/ #sudo ./sgx-install.sh #sudo reboot Your deployment system should be ready to go. Try running some qt examples. To build qt applications, install QT Creator on your linux box and qt 5.3.2 Build for the local desktop. Copy the project to the beaglebone and compile it there when you are ready to test on the beaglebone. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
