QT-Everywhere ./configure problem with -phonon

I am using qt-everywhere from the Angstrom site on a BeagleBoard-xM
and I want to include the alsa drivers and I am having some
difficulty. When I use the -phonon option on the ./conigure the
configure script falls apart. Can someone give me a hand?

Here is the output of the ./configure

floatmath auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o floatmath.o
floatmath.cpp
floatmath.cpp:44: warning: unused parameter ‘argc’
floatmath.cpp:44: warning: unused parameter ‘argv’
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -Wl,-O1 -
Wl,-rpath,/opt/qt-arm/lib -o floatmath floatmath.o
floatmath enabled.
mmx auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
mmmx -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
-Wall -W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o mmx.o mmx.cpp
cc1plus: error: unrecognized command line option "-mmmx"
make: *** [mmx.o] Error 1
mmx disabled.
3dnow auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
m3dnow -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-
abi=softfp -Wall -W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o
3dnow.o 3dnow.cpp
cc1plus: error: unrecognized command line option "-m3dnow"
make: *** [3dnow.o] Error 1
3dnow disabled.
sse auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
msse -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
-Wall -W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o sse.o sse.cpp
cc1plus: error: unrecognized command line option "-msse"
make: *** [sse.o] Error 1
sse disabled.
sse2 auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
msse2 -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-
abi=softfp -Wall -W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o
sse2.o sse2.cpp
cc1plus: error: unrecognized command line option "-msse2"
make: *** [sse2.o] Error 1
sse2 disabled.
neon auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
mfpu=neon -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-
abi=softfp -Wall -W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o
neon.o neon.cpp
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -Wl,-O1 -
Wl,-rpath,/opt/qt-arm/lib -o neon neon.o -mfpu=neon
neon enabled.
zlib auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o zlib.o zlib.cpp
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -Wl,-O1 -
Wl,-rpath,/opt/qt-arm/lib -o zlib zlib.o -lz
zlib enabled.
libjpeg auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o libjpeg.o
libjpeg.cpp
libjpeg.cpp: In function ‘int main(int, char**)’:
libjpeg.cpp:51: warning: ‘cinfo’ is used uninitialized in this
function
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -Wl,-O1 -
Wl,-rpath,/opt/qt-arm/lib -o libjpeg libjpeg.o -ljpeg
libjpeg enabled.
libtiff auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o libtiff.o
libtiff.cpp
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -Wl,-O1 -
Wl,-rpath,/opt/qt-arm/lib -o libtiff libtiff.o -ltiff
libtiff enabled.
libmng auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o libmng.o libmng.cpp
libmng.cpp:42:20: error: libmng.h: No such file or directory
libmng.cpp:50:2: error: #error System libmng version is less than
1.0.9; using built-in version instead.
libmng.cpp: In function ‘int main(int, char**)’:
libmng.cpp:46: error: ‘mng_handle’ was not declared in this scope
libmng.cpp:46: error: expected `;' before ‘hMNG’
libmng.cpp:47: error: ‘hMNG’ was not declared in this scope
libmng.cpp:47: error: ‘mng_cleanup’ was not declared in this scope
make: *** [libmng.o] Error 1
libmng disabled.
libpng auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o libpng.o libpng.cpp
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -Wl,-O1 -
Wl,-rpath,/opt/qt-arm/lib -o libpng libpng.o -lpng
libpng enabled.
DB2 auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o db2.o db2.cpp
db2.cpp:42:20: error: sqlcli.h: No such file or directory
db2.cpp:43:21: error: sqlcli1.h: No such file or directory
make: *** [db2.o] Error 1
DB2 disabled.
InterBase auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o ibase.o ibase.cpp
ibase.cpp:42:19: error: ibase.h: No such file or directory
make: *** [ibase.o] Error 1
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o mysql.o ../mysql/
mysql.cpp
../mysql/mysql.cpp:42:19: error: mysql.h: No such file or directory
make: *** [mysql.o] Error 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o mysql.o mysql.cpp
mysql.cpp:42:19: error: mysql.h: No such file or directory
make: *** [mysql.o] Error 1
MySQL (thread-unsafe) disabled.
OCI auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o oci.o oci.cpp
oci.cpp:42:17: error: oci.h: No such file or directory
make: *** [oci.o] Error 1
OCI disabled.
ODBC auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o odbc.o odbc.cpp
odbc.cpp:42:17: error: sql.h: No such file or directory
odbc.cpp:43:20: error: sqlext.h: No such file or directory
make: *** [odbc.o] Error 1
ODBC disabled.
iODBC auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o iodbc.o iodbc.cpp
iodbc.cpp:42:17: error: sql.h: No such file or directory
iodbc.cpp:43:20: error: sqlext.h: No such file or directory
make: *** [iodbc.o] Error 1
iODBC disabled.
PostgreSQL auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o psql.o psql.cpp
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -Wl,-O1 -
Wl,-rpath,/opt/qt-arm/lib -o psql psql.o -lpq
PostgreSQL enabled.
SQLite2 auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o sqlite2.o
sqlite2.cpp
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -Wl,-O1 -
Wl,-rpath,/opt/qt-arm/lib -o sqlite2 sqlite2.o -lsqlite
SQLite2 enabled.
unknown SQL driver: sqlite_symbian
TDS auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o tds.o tds.cpp
tds.cpp:42:22: error: sybfront.h: No such file or directory
tds.cpp:43:19: error: sybdb.h: No such file or directory
make: *** [tds.o] Error 1
TDS disabled.
NIS auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o nis.o nis.cpp
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -Wl,-O1 -
Wl,-rpath,/opt/qt-arm/lib -o nis nis.o -lnsl
NIS enabled.
Cups auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o cups.o cups.cpp
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -Wl,-O1 -
Wl,-rpath,/opt/qt-arm/lib -o cups cups.o -lcups
Cups enabled.
D-Bus auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o dbus.o dbus.cpp
dbus.cpp:43:23: error: dbus/dbus.h: No such file or directory
dbus.cpp:46:2: error: #error Needs at least dbus version 1
dbus.cpp: In function ‘int main(int, char**)’:
dbus.cpp:51: error: ‘dbus_shutdown’ was not declared in this scope
make: *** [dbus.o] Error 1
D-Bus disabled.
EGL (EGL/egl.h) auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o egl.o egl.cpp
egl.cpp: In function ‘int main(int, char**)’:
egl.cpp:46: warning: unused variable ‘x’
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -Wl,-O1 -
Wl,-rpath,/opt/qt-arm/lib -o egl egl.o -lEGL
EGL (EGL/egl.h) enabled.
Glib auto-detection... ()
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++ -c -pipe -
O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall
-W -I../../../mkspecs/qws/linux-DM3730-g++ -I. -o glib.o glib.cpp
glib.cpp:44:18: error: glib.h: No such file or directory
glib.cpp: In function ‘int main(int, char**)’:
glib.cpp:49: error: ‘GSource’ was not declared in this scope
glib.cpp:49: error: ‘source’ was not declared in this scope
glib.cpp:50: error: ‘GPollFD’ was not declared in this scope
glib.cpp:50: error: ‘pollfd’ was not declared in this scope
glib.cpp:51: error: ‘g_thread_supported’ was not declared in this
scope
glib.cpp:52: error: ‘NULL’ was not declared in this scope
glib.cpp:52: error: ‘g_thread_init’ was not declared in this scope
glib.cpp:53: error: ‘g_main_context_default’ was not declared in this
scope
glib.cpp:54: error: ‘g_source_new’ was not declared in this scope
glib.cpp:55: error: ‘g_source_add_poll’ was not declared in this scope
make: *** [glib.o] Error 1
Glib disabled.
Phonon support cannot be enabled due to functionality tests!
Turn on verbose messaging (-v) to ./configure to see the final
report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.

why don't you install the prebuilt phonon libs and plugins from the angstrom feeds?

Maybe I did not explain what I was doing very well. I am trying to do
this on my Ubuntu system for cross compiling onto the BeagleBoard. So
I have a QT application that needs to access the alsa libraries for
sound. So I thought that adding the phonon libraries (and headers) by
rebuilding the toolchain on my Ubuntu box to be the correct way. Is
there another (better) way?

Yeah: http://www.angstrom-distribution.org/simplified-development-setup

I got a new toolchain from narcissus using the site you referred too.
But when I try to build qt with phonon I get the same error.

Here are the errors:

Looks like the makefiles are adding x86 compile options that an ARM compiler don't recognize.

Grep for mmx in the source tree and try removing them

I got rid of those, you can add an option of -no-mmx etc, but it does
not seem to help.

Seems to be related to the fact that it can not find the libraries;
like glib.h

I succeeded to complie phono in the Qt4.6.2 source.
There may be some problems with the config file.
I use toolchain CodeSourcery Sourcery G++ Lite 2007q3-51.

1. download Qt Everywhere from Nokia..
2. modify file qt-everywhere-opensource-src-4.6.2/mkspecs/qws/linux-
arm-g++/qmake.conf

It's missing ts library and there are several unrecognized flags passed to gcc.

From your printout, it still tries mmx and a few others.

This seems to be a qt related build issue. I would check their forums for cross compile HOWTO's

My point is, why do you want to rebuilt qt? The angstrom build is a superset of the options, nicely packages so that only need to install the things you want.

If I am going to use QT-creator on my Ubuntu box to create binaries to
use on my BB-xM then I need to have a set of the QT binaries built on
my Ubuntu box. Lets say my app is called Zing, if Zing is a QT
application then I would want to use QT-creator to develop it and QT-
creator would need to generate arm code; so it needs all of the QT
libraries in arm binaries.

If I am going to use QT-creator on my Ubuntu box to create binaries to
use on my BB-xM then I need to have a set of the QT binaries built on
my Ubuntu box.

Weird, I use qt-creator just fine with the angstrom qt toolchain, no need to build anything on ubuntu.

I am not trying to be a pest, I really am trying to learn here. Just
to make sure we are talking about the same thing where did you get the
"angstrom qt toolchain"? Because when I went to Narcissus and
downloaded the Full SDK toolchain it did not include any "qt" files in
it. No libs, no headers, no qmake. Is there something special I need
to do on Narcissus to get these?

I am not trying to be a pest, I really am trying to learn here. Just
to make sure we are talking about the same thing where did you get the
"angstrom qt toolchain"? Because when I went to Narcissus and
downloaded the Full SDK toolchain it did not include any "qt" files in
it. No libs, no headers, no qmake. Is there something special I need
to do on Narcissus to get these?

Like checking the QT checkboxes for the items you want in the rootfs? The SDK will match the rootfs, so if you don't select QT bits....

Makes you wonder if anything ever goes right.

Went to Narcissus and tried several times, it would not include task-
qte-toolchain-target, got an error every time.

I thought this was broken about a month ago too, thought it would be
fixed by now.

It generated http://narcissus.angstrom-distribution.org/deploy/beagleboard/eb58a6/Angstrom-2010.11-narcissus-beagleboard-i686-random-8a8d54ff-image-sdk.tar.gz for me just fine a few minutes ago

OK, I was able to download your build.

Now I want to install it into QT. So I go into QT-Creator->Options-

QT4->+ . QT-Creator wants a qmake, which is there is none, so I use

qmake2 or qmake-QT4 and it says it can not find the binaries. So what
am I doing wrong? Is there a HowTo anywhere?

Thanks for your help!