Question on using toolchain and Qt Embedded SDK

Hello,

I am new to use cross-complier so I followed the instruction on
http://www.angstrom-distribution.org/toolchains/ and installed the
toolchain.

But I got the following error when make the "qte-example" provided by
this turtorial:

Please excuse the phone induced top-post.

Did you source the environment variables before running qmake2? Can you provide the output of 'env'.

Yes, I ran "environment-setup" before qmakes. The following is my env.

Thanks!

You might want to look at this site to see how to set up Qt-Creator to
write BB Arm based code.

http://treyweaver.blogspot.com/2010/10/setting-up-qt-development-environment.html

Why aren't you just using the qt included in the angstrom sdk? That works quite well with the qt creator out of the box and integrates properly into angstrom without all that /opt crap.

The Qt in the package manager is 4.6.3. The toolchain is 4.6.2. I
tested it and had some GUI problems. Plus Qt-Creator will still
generate code that thinks the fonts are in the opt directory (there
must be a way to fix this).

A couple of responses below...

Yes, I ran "environment-setup" before qmakes. The following is my env.

Below is some kind of script, not the environment itself, but I it
tells me that you are doing this step. Are you doing '.
/path/to/environment-setup' or 'source /path/to/environment-setup'?
Can you humor me by providing the actual output to 'env' just to be
sure? I know I'm checking you on something very basic, but your
problem should not show up in general cases.

Thanks!

------------------------------------------------------------
declare -x BOOST_PREFIX="/opt/boost_1_37_0"
declare -x COLORTERM="gnome-terminal"
declare -x CONFIG_SITE="/usr/local/angstrom/arm/site-config"
declare -x CPATH="/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/
usr/include:"
declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-
YuLquUSNf6,guid=c5589317b175168088831c244ccaca93"
declare -x DEFAULTS_PATH="/usr/share/gconf/gnome.default.path"
declare -x DESKTOP_SESSION="gnome"
declare -x DISPLAY=":0.0"
declare -x GDMSESSION="gnome"
declare -x GDM_KEYBOARD_LAYOUT="us"
declare -x GDM_LANG="en_US.UTF-8"
declare -x GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
declare -x GNOME_KEYRING_CONTROL="/tmp/keyring-wQppnd"
declare -x GNOME_KEYRING_PID="1767"
declare -x GTK_IM_MODULE="ibus"
declare -x GTK_MODULES="canberra-gtk-module"
declare -x HOME="/home/zkong"
declare -x LANG="en_US.UTF-8"
declare -x LD_LIBRARY_PATH="/usr/local/angstrom/arm/arm-angstrom-linux-
gnueabi/usr/lib"
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
declare -x LESSOPEN="| /usr/bin/lesspipe %s"
declare -x LIBTOOL_SYSROOT_PATH="/usr/local/angstrom/arm/arm-angstrom-
linux-gnueabi"
declare -x LOGNAME="zkong"
declare -x MANDATORY_PATH="/usr/share/gconf/gnome.mandatory.path"
declare -x OE_QMAKE_CC="arm-angstrom-linux-gnueabi-gcc"
declare -x OE_QMAKE_CXX="arm-angstrom-linux-gnueabi-g++"
declare -x OE_QMAKE_INCDIR_QT="/usr/local/angstrom/arm/arm-angstrom-
linux-gnueabi//usr/include/qtopia"
declare -x OE_QMAKE_LIBDIR_QT="/usr/local/angstrom/arm/arm-angstrom-
linux-gnueabi//usr/lib"
declare -x OE_QMAKE_LINK="arm-angstrom-linux-gnueabi-g++"
declare -x OE_QMAKE_MOC="/usr/local/angstrom/arm/bin/moc4"
declare -x OE_QMAKE_QDBUSCPP2XML="/usr/local/angstrom/arm/bin/
qdbuscpp2xml4"
declare -x OE_QMAKE_QDBUSXML2CPP="/usr/local/angstrom/arm/bin/
qdbusxml2cpp4"
declare -x OE_QMAKE_QT_CONFIG="/usr/local/angstrom/arm/arm-angstrom-
linux-gnueabi//usr/share/qtopia/mkspecs/qconfig.pri"
declare -x OE_QMAKE_RCC="/usr/local/angstrom/arm/bin/rcc4"
declare -x OE_QMAKE_UIC="/usr/local/angstrom/arm/bin/uic4"
declare -x OE_QMAKE_UIC3="/usr/local/angstrom/arm/bin/uic34"
declare -x OLDPWD="/home/zkong/arm/qte-example"
declare -x ORBIT_SOCKETDIR="/tmp/orbit-zkong"
declare -x PATH="/usr/local/angstrom/arm/bin:/usr/local/angstrom/arm/
arm-angstrom-linux-gnueabi/bin:/usr/local/sbin:/usr/local/bin:/usr/
sbin:/usr/bin:/sbin:/bin:/usr/games"
declare -x PKG_CONFIG_PATH="/usr/local/angstrom/arm/arm-angstrom-linux-
gnueabi/usr/lib/pkgconfig"
declare -x PKG_CONFIG_SYSROOT_DIR="/usr/local/angstrom/arm/arm-
angstrom-linux-gnueabi"
declare -x PWD="/usr/local/angstrom/arm"
declare -x PYTHONPATH="/usr/local/lib/python2.6/dist-packages/:/usr/
lib/python2.6/dist-packages"
declare -x QMAKESPEC="/usr/local/angstrom/arm/arm-angstrom-linux-
gnueabi//usr/share/qtopia/mkspecs/linux-g++"
declare -x QT_IM_MODULE="xim"
declare -x SDK_PATH="/usr/local/angstrom/arm"
declare -x SESSION_MANAGER="local/zkong-ubuntu:@/tmp/.ICE-unix/
1785,unix/zkong-ubuntu:/tmp/.ICE-unix/1785"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SPEECHD_PORT="7560"
declare -x SSH_AGENT_PID="1825"
declare -x SSH_AUTH_SOCK="/tmp/keyring-wQppnd/ssh"
declare -x TARGET_SYS="arm-angstrom-linux-gnueabi"
declare -x TERM="xterm"
declare -x USER="zkong"
declare -x USERNAME="zkong"
declare -x WINDOWID="71351355"
declare -x XAUTHORITY="/var/run/gdm/auth-for-zkong-6hywYL/database"
declare -x XDG_CONFIG_DIRS="/etc/xdg/xdg-gnome:/etc/xdg"
declare -x XDG_DATA_DIRS="/usr/share/gnome:/usr/local/share/:/usr/
share/"
declare -x
XDG_SESSION_COOKIE="62e595308ecfa536b5057c3e4c9497a1-1288358547.209116-1379852448"
declare -x XMODIFIERS="@im=ibus"

----------------------------------------------------------------------------------

Please excuse the phone induced top-post.

Did you source the environment variables before running qmake2? Can you provide the output of 'env'.
Sent via BlackBerry from T-Mobile

From: Hanks <zkon...@gmail.com>

Sender: beagleboard@googlegroups.com
Date: Fri, 29 Oct 2010 07:20:41
To: Beagle Board<beagleboard@googlegroups.com>
Reply-To: beagleboard@googlegroups.com
Subject: [beagleboard] Question on using toolchain and Qt Embedded SDK

Hello,

I am new to use cross-complier so I followed the instruction onhttp://www.angstrom-distribution.org/toolchains/and installed the
toolchain.

But I got the following error when make the "qte-example" provided by
this turtorial:

Can you start from the beginning and show how you sourced the
environment variables before running qmake2? Can you give a bit of
background on your setup? For example, which of the tarballs did you
uncompress and to where?

Here's what I tried:
arago@domU-12-31-38-01-BD-05 ~ $ mkdir angstrom-qt-sdk
arago@domU-12-31-38-01-BD-05 ~ $ cd angstrom-qt-sdk/
arago@domU-12-31-38-01-BD-05 ~/angstrom-qt-sdk $ wget
http://www.angstrom-distribution.org/toolchains/angstrom-2010.4-test-20100422-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.2.tar.bz2
--12:11:08-- http://www.angstrom-distribution.org/toolchains/angstrom-2010.4-test-20100422-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.2.tar.bz2
           => `angstrom-2010.4-test-20100422-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.2.tar.bz2'
Resolving www.angstrom-distribution.org... 188.40.83.200
Connecting to www.angstrom-distribution.org|188.40.83.200|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 150,319,871 (143M) [application/x-bzip2]
100%[========================================================>]
150,319,871 21.63K/s ETA 00:00

14:29:13 (17.72 KB/s) -
`angstrom-2010.4-test-20100422-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.2.tar.bz2'
saved [150319871/150319871]
arago@domU-12-31-38-01-BD-05 ~/angstrom-qt-sdk $ tar -C ~/ -xjf
angstrom-2010.4-test-20100422-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.2.tar.bz2
arago@domU-12-31-38-01-BD-05 ~ $ ^D
domU-12-31-38-01-BD-05 ~ # ln -s /home/arago/usr/local/angstrom
/usr/local/angstrom
domU-12-31-38-01-BD-05 ~ # su - arago
arago@domU-12-31-38-01-BD-05 ~ $ . /usr/local/angstrom/arm/environment-setup
arago@domU-12-31-38-01-BD-05 ~ $ cd angstrom-qt-sdk/
arago@domU-12-31-38-01-BD-05 ~/angstrom-qt-sdk $ echo "TEMPLATE=app

SOURCES=main.cpp
" > qte-example.pro

arago@domU-12-31-38-01-BD-05 ~/angstrom-qt-sdk $ qmake2
arago@domU-12-31-38-01-BD-05 ~/angstrom-qt-sdk $ make
arm-angstrom-linux-gnueabi-g++ -c -pipe -Wall -W -D_REENTRANT
-DQT_QWS_CLIENTBLIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_SHARED -I/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++
-I. -I/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi//usr/include/qtopia/QtCore
-I/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi//usr/include/qtopia/QtGui
-I/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi//usr/include/qtopia
-I. -o main.o main.cpp
arm-angstrom-linux-gnueabi-g++ -o qte-example main.o
-L/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi//usr/lib -lQtGuiE
-lQtNetworkE -lQtCoreE -lglib-2.0 -lpthread
arago@domU-12-31-38-01-BD-05 ~/angstrom-qt-sdk $ file qte-example
qte-example: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for
GNU/Linux 2.6.16, dynamically linked (uses shared libs), not stripped

So, I don't see any problems.