Building Qt for i.Mx233

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Building Qt for i.Mx233

5,867 Views
Ameeca
Contributor II

Hello

I have a new Ubuntu 10.04 host and have been trying to build qt4.7.3 for embedded linux following this guide - http://www.imxdev.org/wiki/index.php?title=All_Boards_Qt

 

I can get up to the section of building Qt/Target but fail with this error:

 

engineering@engineering-desktop:~/qt-everywhere-opensource-src-4.7.3$ export PATH=$PATH:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin
engineering@engineering-desktop:~/qt-everywhere-opensource-src-4.7.3$ ./configure -v -embedded arm -xplatform qws/linux-arm-imx -phonon
Which edition of Qt do you want to use ?

Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.

o


Determining system architecture... (Linux:2.6.32-35-generic:i686)
    32-bit Intel 80x86 (i386)
    'arm' is supported
    'i386' is supported
System architecture: 'arm'
Host architecture: 'i386'

You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies

Precompiled-headers support enabled.
Symbol visibility control enabled.

This is the Qt for Embedded Linux Open Source Edition.

You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.

Type '3' to view the GNU General Public License version 3.
Type 'L' to view the Lesser GNU General Public License version 2.1.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license? yes

Creating qmake. Please wait...
g++ -c -o option.o -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/home/engineering/qt-everywhere-opensource-src-4.7.3/include -I/home/engineering/qt-everywhere-opensource-src-4.7.3/include/QtCore -I/home/engineering/qt-everywhere-opensource-src-4.7.3/src/corelib/global -I/home/engineering/qt-everywhere-opensource-src-4.7.3/src/corelib/xml -I/home/engineering/qt-everywhere-opensource-src-4.7.3/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/home/engineering/qt-everywhere-opensource-src-4.7.3/mkspecs/qws/linux-x86-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT  option.cpp
g++ -o "/home/engineering/qt-everywhere-opensource-src-4.7.3/bin/qmake" project.o property.o main.o makefile.o unixmake2.o unixmake.o mingw_make.o option.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_vcproj.o msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_objectmodel.o symmake.o initprojectdeploy_symbian.o symmake_abld.o symmake_sbsv2.o symbiancommon.o registry.o epocroot.o qtextcodec.o qutfcodec.o qstring.o qtextstream.o qiodevice.o qmalloc.o qglobal.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfile.o qfsfileengine_unix.o qfsfileengine_iterator_unix.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlinkedlist.o qurl.o qnumeric.o qcryptographichash.o qxmlstream.o qxmlutils.o 
floatmath auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o floatmath.o floatmath.cpp
floatmath.cpp:44: warning: unused parameter 'argc'
floatmath.cpp:44: warning: unused parameter 'argv'
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.7.3/lib -o floatmath floatmath.o     
floatmath enabled.
mmx auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mmmx -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o mmx.o mmx.cpp
cc1plus: error: unrecognized command line option "-mmmx"
make: *** [mmx.o] Error 1
mmx disabled.
3dnow auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -m3dnow -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o 3dnow.o 3dnow.cpp
cc1plus: error: unrecognized command line option "-m3dnow"
make: *** [3dnow.o] Error 1
3dnow disabled.
sse auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o sse.o sse.cpp
cc1plus: error: unrecognized command line option "-msse"
make: *** [sse.o] Error 1
sse disabled.
sse2 auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse2 -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o sse2.o sse2.cpp
cc1plus: error: unrecognized command line option "-msse2"
make: *** [sse2.o] Error 1
sse2 disabled.
sse3 auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse3 -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o sse3.o sse3.cpp
cc1plus: error: unrecognized command line option "-msse3"
make: *** [sse3.o] Error 1
sse3 disabled.
ssse3 auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mssse3 -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o ssse3.o ssse3.cpp
cc1plus: error: unrecognized command line option "-mssse3"
make: *** [ssse3.o] Error 1
ssse3 disabled.
sse4_1 auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse4.1 -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o sse4_1.o sse4_1.cpp
cc1plus: error: unrecognized command line option "-msse4.1"
make: *** [sse4_1.o] Error 1
sse4_1 disabled.
sse4_2 auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -msse4.2 -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o sse4_2.o sse4_2.cpp
cc1plus: error: unrecognized command line option "-msse4.2"
make: *** [sse4_2.o] Error 1
sse4_2 disabled.
avx auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mavx -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o avx.o avx.cpp
cc1plus: error: unrecognized command line option "-mavx"
make: *** [avx.o] Error 1
avx disabled.
neon auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -mfpu=neon -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o neon.o neon.cpp
Assembler messages:
Error: unknown floating point format `neon'

Error: unrecognized option -mfpu=neon
neon.cpp:1: error: invalid floating point option: -mfpu=neon
make: *** [neon.o] Error 1
neon disabled.
zlib auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o zlib.o zlib.cpp
zlib.cpp:42:18: error: zlib.h: No such file or directory
zlib.cpp: In function 'int main(int, char**)':
zlib.cpp:46: error: 'z_streamp' was not declared in this scope
zlib.cpp:46: error: expected `;' before 'stream'
zlib.cpp:47: error: 'stream' was not declared in this scope
zlib.cpp:48: error: 'zlibVersion' was not declared in this scope
zlib.cpp:51: error: 'compress2' was not declared in this scope
make: *** [zlib.o] Error 1
zlib disabled.
libjpeg auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o libjpeg.o libjpeg.cpp
libjpeg.cpp:45:21: error: jpeglib.h: No such file or directory
libjpeg.cpp: In function 'int main(int, char**)':
libjpeg.cpp:50: error: 'j_compress_ptr' was not declared in this scope
libjpeg.cpp:50: error: expected `;' before 'cinfo'
libjpeg.cpp:51: error: 'cinfo' was not declared in this scope
libjpeg.cpp:51: error: 'jpeg_create_compress' was not declared in this scope
make: *** [libjpeg.o] Error 1
libjpeg disabled.
libtiff auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o libtiff.o libtiff.cpp
libtiff.cpp:42:20: error: tiffio.h: No such file or directory
libtiff.cpp:50:6: error: #error "Required libtiff not found"
libtiff.cpp: In function 'int main(int, char**)':
libtiff.cpp:57: error: 'tdata_t' was not declared in this scope
libtiff.cpp:57: error: expected `;' before 'buffer'
libtiff.cpp:58: error: 'buffer' was not declared in this scope
libtiff.cpp:58: error: '_TIFFfree' was not declared in this scope
libtiff.cpp:62: error: 'TIFFReadRGBAImageOriented' was not declared in this scope
make: *** [libtiff.o] Error 1
libtiff disabled.
libmng auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o libpng.o libpng.cpp
libpng.cpp:42:17: error: png.h: No such file or directory
libpng.cpp:45:4: error: #error "Required libpng version 1.0.17 not found."
libpng.cpp: In function 'int main(int, char**)':
libpng.cpp:50: error: 'png_structp' was not declared in this scope
libpng.cpp:50: error: expected `;' before 'png_ptr'
libpng.cpp:51: error: 'png_ptr' was not declared in this scope
libpng.cpp:51: error: 'PNG_LIBPNG_VER_STRING' was not declared in this scope
libpng.cpp:51: error: 'png_create_read_struct' was not declared in this scope
make: *** [libpng.o] Error 1
libpng disabled.
DB2 auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o odbc.o odbc.cpp
odbc.cpp:45:17: error: sql.h: No such file or directory
odbc.cpp:46:20: error: sqlext.h: No such file or directory
make: *** [odbc.o] Error 1
ODBC disabled.
iODBC auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o psql.o psql.cpp
psql.cpp:42:22: error: libpq-fe.h: No such file or directory
psql.cpp: In function 'int main(int, char**)':
psql.cpp:46: error: 'PQescapeBytea' was not declared in this scope
psql.cpp:47: error: 'PQunescapeBytea' was not declared in this scope
make: *** [psql.o] Error 1
PostgreSQL disabled.
SQLite2 auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o sqlite2.o sqlite2.cpp
sqlite2.cpp:42:20: error: sqlite.h: No such file or directory
make: *** [sqlite2.o] Error 1
SQLite2 disabled.
unknown SQL driver: sqlite_symbian
TDS auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o nis.o nis.cpp
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.7.3/lib -o nis nis.o     -lnsl
NIS enabled.
Cups auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o cups.o cups.cpp
cups.cpp:42:23: error: cups/cups.h: No such file or directory
cups.cpp: In function 'int main(int, char**)':
cups.cpp:46: error: 'cups_dest_t' was not declared in this scope
cups.cpp:46: error: 'd' was not declared in this scope
cups.cpp:47: error: 'cupsGetDests' was not declared in this scope
make: *** [cups.o] Error 1
Cups disabled.
D-Bus auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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.
Glib auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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.

 

I have no idea where this error is coming from but I have followed every guide I can find to building Qt but constantly come up against this. I have Phonon installed and it is required for my board!

 

Any help would be great.

 

Thanks

Tags (2)
20 Replies

3,276 Views
Ameeca
Contributor II

Hi all,

 

Progress! At last.

 

I have moved over to my laptop and this process is working.

 

I can get through the configure with no errors but I receive an error after attempting to "make" the newly configured build:

 

..etc..

-W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_USE_BUNDLED_LIBPNG -DPNG_NO_ASSEMBLER_CODE -DQT_NO_FONTCONFIG -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/mkspecs/qws/linux-arm-imx -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui -I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/.rcc/release-shared-emb-arm -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/image -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/libpng -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/builds/unix -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/src -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/include -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/harfbuzz/src -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/dialogs -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -I. -o .obj/release-shared-emb-arm/qprintpreviewwidget.o /home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/widgets/qprintpreviewwidget.cpp
/home/engineering/Software/QT-imx233/bin/moc -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_USE_BUNDLED_LIBPNG -DPNG_NO_ASSEMBLER_CODE -DQT_NO_FONTCONFIG -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/mkspecs/qws/linux-arm-imx -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui -I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/.rcc/release-shared-emb-arm -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/image -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/libpng -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/builds/unix -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/src -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/include -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/harfbuzz/src -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/dialogs -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -I. /home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/dialogs/qprintdialog.h -o .moc/release-shared-emb-arm/moc_qprintdialog.cpp
/home/engineering/Software/QT-imx233/bin/rcc -name qprintdialog /home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/dialogs/qprintdialog.qrc -o .rcc/release-shared-emb-arm/qrc_qprintdialog.cpp
/home/engineering/Software/QT-imx233/bin/moc -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_USE_BUNDLED_LIBPNG -DPNG_NO_ASSEMBLER_CODE -DQT_NO_FONTCONFIG -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/mkspecs/qws/linux-arm-imx -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui -I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/.rcc/release-shared-emb-arm -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/image -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/libpng -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/builds/unix -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/src -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/include -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/harfbuzz/src -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/dialogs -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -I. /home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/dialogs/qprintdialog_unix.cpp -o .moc/release-shared-emb-arm/qprintdialog_unix.moc
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -include .pch/release-shared-emb-arm/QtGui -pipe -I/home/engineering/Freescale/ltib/rootfs/usr/include -pthread -I/home/engineering/Software/Build/iMX23/ltib/rootfs/usr/include/glib-2.0 -I/home/engineering/Software/Build/iMX23/ltib/rootfs/usr/lib/glib-2.0/include -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_USE_BUNDLED_LIBPNG -DPNG_NO_ASSEMBLER_CODE -DQT_NO_FONTCONFIG -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/mkspecs/qws/linux-arm-imx -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui -I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/.rcc/release-shared-emb-arm -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/image -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/libpng -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/builds/unix -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/src -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/freetype/include -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/3rdparty/harfbuzz/src -I/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/dialogs -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -I. -o .obj/release-shared-emb-arm/qprintdialog_unix.o /home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/dialogs/qprintdialog_unix.cpp
/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.4/src/gui/dialogs/qprintdialog_unix.cpp:1306:32: error: qrc_qprintdialog.cpp: No such file or directory
make[1]: *** [.obj/release-shared-emb-arm/qprintdialog_unix.o] Error 1
make[1]: Leaving directory `/home/engineering/Software/QT-imx233/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2

 

Where QT-imx233 is my newly configured embedded QT build. The directory ( /home/engineering/Software/QT-imx233/src/gui ) contains pkgconfig and Makefile only.

0 Kudos

3,276 Views
Ameeca
Contributor II

Alessandro,

 

I appreciate the input but I did actually do all that you have suggested...

 

still did not work.

0 Kudos

3,276 Views
Galax
Contributor I

I David,
I think that your problem is here:

You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies

I've seen that you read Rogerio's guide: http://imxcommunity.org/forum/attachment/download?id=4103961%3AUplo...

At the beginning I had the same problem.

You have every packages required installed but when you cross compile it gives you error about dependancies.

Pay attention In Rogerio's guide at page 16 and 17 - Preparing Qt Libraries (Device side) - .


Inside qt source code, copy mkspecs/qws/linux-arm-gnueabi-g++ to mkspecs/qws/linux-mxc-g++
Edit mkspecs/qws/linux-mxc-g++/qmake.conf and add before the last line
PKG_CONFIG = pkg-config-wrapper.sh
QMAKE_LIBS = -lglib-2.0 -lgthread-2.0 -lgstreamer-0.10 -lxml2 -lz -lgmodule-2.0 -lgobject-2.0 -lts -lasound
Create $HOME/Software/Scripts/pkg-config-wrapper.sh and make it executable

#!/bin/sh
if [ -n "${SYSROOT:+x}" ];
then
export PKG_CONFIG_LIBDIR="${SYSROOT}/usr/lib/pkgconfig"
cmd="pkg-config $@ | sed -e 's:-I:-I${SYSROOT}:g' -e 's:-L:-L${SYSROOT}:g'"
eval "$cmd"
else
eval "pkg-config $@"
fi

Change to $HOME/Software/Build/iMX28

Create subdirectory qt-4.7.4 and change to it

Export SYSROOT environment variable

# export SYSROOT=$HOME/Software/Build/iMX28/ltib/rootfs

Configure Qt for iMX28 using following configure line

$HOMESoftware/Packages/qt-everywhere-opensource-src-4.7.4/configure -
embedded arm -xplatform qws/linux-mxc-g++ -release -opensource -prefix
$HOME/Software/QtEmbedded-4.7.4-imx -qt-gfx-linuxfb -qt-kbd-tty -qt-mouse-tslib
-little-endian -host-little-endian -multimedia -audio-backend -phonon -phonon-
backend -gstreamer -glib -force-pkg-config -confirm-license -
I$HOME/Software/Build/iMX28/ltib/rootfs/usr/include -
L$HOME/Software/Build/iMX28/ltib/rootfs/usr/lib

 

I suggest you to read the pdf again, and PAY VERY ATTENTION when you copy and paste from PDF (or from my post).

You must have correct SYSROOT environment variable declared; check every step that you do.

Hope this help...

Alessandro

0 Kudos

3,276 Views
Ameeca
Contributor II

Hi Venkat,

I'm certain I've added these packages in Ltib. These appear in litb/config/platform/imx/ .config:

 

CONFIG_PKG_GLIB2=y

CONFIG_PKG_GSTREAMER_CORE=y

CONFIG_PKG_GST_PLUGINS_BASE=y
CONFIG_PKG_GST_PLUGINS_GOOD=y
CONFIG_PKG_GST_PLUGINS_BAD=y
CONFIG_PKG_GST_PLUGINS_UGLY=y
CONFIG_PKG_GST_PLUGINS_FFMPEG=y
CONFIG_PKG_GST_PLUGINS_FARSIGHT=y

# CONFIG_PKG_GLIBC is not set

 

I have been using -I and -L in my ./configure as

./configure -embedded arm -xplatform qws/linux-arm-imx -release -opensource -prefix /home/engineering/Software/QtEmbedded -qt-gfx-linuxfb -qt-kbd-tty -qt-mouse-tslib -little-endian -host-little-endian -multimedia -audio-backend -phonon -phonon-backend -gstreamer -glib -force-pkg-config -confirm-license -I /home/engineering/Freescale/ltib/rootfs/usr/include -L /home/engineering/Freescale/ltib/rootfs/usr/lib -v

Which gives the following output

...etc...

Cups auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -I/home/engineering/Freescale/ltib/rootfs/usr/include -o cups.o cups.cpp
cups.cpp:42:23: error: cups/cups.h: No such file or directory
cups.cpp: In function 'int main(int, char**)':
cups.cpp:46: error: 'cups_dest_t' was not declared in this scope
cups.cpp:46: error: 'd' was not declared in this scope
cups.cpp:47: error: 'cupsGetDests' was not declared in this scope
make: *** [cups.o] Error 1
Cups disabled.
D-Bus auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -I/home/engineering/Freescale/ltib/rootfs/usr/include -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.
Glib auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -I/home/engineering/Freescale/ltib/rootfs/usr/include -I/home/engineering/Software/Build/iMX23/ltib/rootfs/usr/include/glib-2.0 -I/home/engineering/Software/Build/iMX23/ltib/rootfs/usr/lib/glib-2.0/include -o glib.o glib.cpp
glib.cpp: In function 'int main(int, char**)':
glib.cpp:55: warning: 'pollfd' is used uninitialized in this function
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -Wl,-O1 -Wl,-rpath,/home/engineering/Software/Qt-4.7.4-imx/lib -o glib glib.o     -L/home/engineering/Freescale/ltib/rootfs/usr/lib -pthread -lgthread-2.0 -lrt -lglib-2.0
Glib enabled.
GStreamer auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -I/home/engineering/Freescale/ltib/rootfs/usr/include -I/home/engineering/Software/Build/iMX23/ltib/rootfs/usr/include/gstreamer-0.10 -I/home/engineering/Software/Build/iMX23/ltib/rootfs/usr/include/glib-2.0 -I/home/engineering/Software/Build/iMX23/ltib/rootfs/usr/lib/glib-2.0/include -I/home/engineering/Software/Build/iMX23/ltib/rootfs/usr/include/libxml2 -o gstreamer.o gstreamer.cpp
gstreamer.cpp:53: warning: unused parameter 'argc'
gstreamer.cpp:53: warning: unused parameter 'argv'
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -Wl,-O1 -Wl,-rpath,/home/engineering/Software/Qt-4.7.4-imx/lib -o gstreamer gstreamer.o     -L/home/engineering/Freescale/ltib/rootfs/usr/lib -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lgstinterfaces-0.10 -lgstvideo-0.10 -lgstbase-0.10
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: libz.so.1, needed by /home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so, not found (try using -rpath or -rpath-link)
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `deflate'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `gzopen'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `inflate'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `crc32'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `gzread'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `deflateInit2_'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `gzdopen'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `gzclose'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `gzwrite'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `gzrewind'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `inflateEnd'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `inflateInit2_'
/home/engineering/Freescale/ltib/rootfs/usr/lib/libxml2.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make: *** [gstreamer] Error 1
GStreamer disabled.
Gstreamer 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.

 

It was also suggested to me to run ./configure as sudo. This gives:

...etc...

SQLite2 auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -I/home/engineering/Freescale/ltib/rootfs/usr/include -o sqlite2.o sqlite2.cpp
sqlite2.cpp:42:20: error: sqlite.h: No such file or directory
make: *** [sqlite2.o] Error 1
SQLite2 disabled.
unknown SQL driver: sqlite_symbian
TDS auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -I/home/engineering/Freescale/ltib/rootfs/usr/include -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... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -I/home/engineering/Freescale/ltib/rootfs/usr/include -o nis.o nis.cpp
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -Wl,-O1 -Wl,-rpath,/home/engineering/Software/Qt-4.7.4-imx/lib -o nis nis.o     -L/home/engineering/Freescale/ltib/rootfs/usr/lib -lnsl
NIS enabled.
Cups auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -I/home/engineering/Freescale/ltib/rootfs/usr/include -o cups.o cups.cpp
cups.cpp:42:23: error: cups/cups.h: No such file or directory
cups.cpp: In function 'int main(int, char**)':
cups.cpp:46: error: 'cups_dest_t' was not declared in this scope
cups.cpp:46: error: 'd' was not declared in this scope
cups.cpp:47: error: 'cupsGetDests' was not declared in this scope
make: *** [cups.o] Error 1
Cups disabled.
D-Bus auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -I/home/engineering/Freescale/ltib/rootfs/usr/include -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.
Glib auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -I/home/engineering/Freescale/ltib/rootfs/usr/include -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.
Glib 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.

 

EDIT:

 

It may also be worth noting that

engineering@engineering-desktop:~/Freescale/ltib/rootfs/usr/include$ ls -la
total 176
drwxrwxrwx 10 root root  4096 2011-11-21 15:27 .
drwxrwxrwx 12 root root  4096 2011-11-23 11:37 ..
drwxrwxrwx  3 root root  4096 2011-11-18 11:14 alsa
lrwxrwxrwx  1 root root    16 2011-11-21 15:27 curses.h -> ncurses/curses.h
lrwxrwxrwx  1 root root    13 2011-11-21 15:27 eti.h -> ncurses/eti.h
lrwxrwxrwx  1 root root    14 2011-11-21 15:27 form.h -> ncurses/form.h
drwxrwxrwx  3 root root  4096 2011-11-18 11:14 gio-unix-2.0
drwxrwxrwx  5 root root  4096 2011-11-18 11:14 glib-2.0
drwxrwxrwx  3 root root  4096 2011-11-18 11:20 gstreamer-0.10
-rwxrwxrwx  1 root root 10647 2011-11-18 11:16 id3tag.h
drwxrwxrwx  3 root root  4096 2011-11-18 11:17 liboil-0.3
-rwxrwxrwx  1 root root  6498 2011-11-18 11:16 libvolume_id.h
drwxrwxrwx  3 root root  4096 2011-11-18 11:16 libxml2
-rwxrwxrwx  1 root root 27123 2011-11-18 11:16 mad.h
lrwxrwxrwx  1 root root    14 2011-11-21 15:27 menu.h -> ncurses/menu.h
drwxrwxrwx  2 root root  4096 2011-11-21 15:27 ncurses
lrwxrwxrwx  1 root root    17 2011-11-21 15:27 ncurses.h -> ncurses/ncurses.h
lrwxrwxrwx  1 root root    15 2011-11-21 15:27 panel.h -> ncurses/panel.h
drwxrwxrwx  2 root root  4096 2011-11-18 11:14 sys
-rwxrwxrwx  1 root root  1841 2011-11-21 15:27 termcap.h
lrwxrwxrwx  1 root root    14 2011-11-21 15:27 term.h -> ncurses/term.h
-rwxrwxrwx  1 root root  1869 2011-11-18 11:14 tslib.h
lrwxrwxrwx  1 root root    16 2011-11-21 15:27 unctrl.h -> ncurses/unctrl.h
-rwxrwxrwx  1 root root  9544 2011-11-18 11:13 zconf.h
-rwxrwxrwx  1 root root 66188 2011-11-18 11:13 zlib.h

 

engineering@engineering-desktop:~/Freescale/ltib/rootfs/usr/lib$ ls -la
total 32784
drwxrwxrwx  7 root root   12288 2011-11-21 15:27 .
drwxrwxrwx 12 root root    4096 2011-11-23 11:37 ..
drwxrwxrwx  3 root root    4096 2011-11-18 11:14 alsa-lib
drwxrwxrwx  3 root root    4096 2011-11-18 11:14 glib-2.0
drwxrwxrwx  2 root root    4096 2011-11-18 11:21 gstreamer-0.10
lrwxrwxrwx  1 root root      21 2011-11-18 11:12 libanl.so -> ../../lib/libanl.so.1
lrwxrwxrwx  1 root root      18 2011-11-18 11:14 libasound.so -> libasound.so.2.0.0
lrwxrwxrwx  1 root root      18 2011-11-18 11:14 libasound.so.2 -> libasound.so.2.0.0
-rwxrwxrwx  1 root root 2805525 2011-11-18 11:14 libasound.so.2.0.0
lrwxrwxrwx  1 root root      30 2011-11-18 11:12 libBrokenLocale.so -> ../../lib/libBrokenLocale.so.1
lrwxrwxrwx  1 root root      23 2011-11-18 11:12 libcrypt.so -> ../../lib/libcrypt.so.1
-rwxrwxrwx  1 root root     224 2011-11-18 11:12 libc.so
-rwxrwxrwx  1 root root     224 2007-05-09 17:23 libc.so.bak
-rwxrwxrwx  1 root root     243 2007-05-09 17:11 libc.so_orig
lrwxrwxrwx  1 root root      12 2011-11-21 15:27 libcurses.a -> libncurses.a
lrwxrwxrwx  1 root root      17 2011-11-21 15:27 libcurses.so -> libncurses.so.5.3
lrwxrwxrwx  1 root root      20 2011-11-18 11:12 libdl.so -> ../../lib/libdl.so.2
-rwxrwxrwx  1 root root   83222 2011-11-21 15:27 libform.a
lrwxrwxrwx  1 root root      12 2011-11-21 15:27 libform.so -> libform.so.5
lrwxrwxrwx  1 root root      14 2011-11-21 15:27 libform.so.5 -> libform.so.5.3
-rwxrwxrwx  1 root root   62598 2011-11-21 15:27 libform.so.5.3
lrwxrwxrwx  1 root root      23 2011-11-18 11:12 libgcc_s.so -> ../../lib/libgcc_s.so.1
lrwxrwxrwx  1 root root      22 2011-11-18 11:14 libgio-2.0.so -> libgio-2.0.so.0.1800.1
lrwxrwxrwx  1 root root      22 2011-11-18 11:14 libgio-2.0.so.0 -> libgio-2.0.so.0.1800.1
-rwxrwxrwx  1 root root 1594035 2011-11-18 11:14 libgio-2.0.so.0.1800.1
lrwxrwxrwx  1 root root      23 2011-11-18 11:14 libglib-2.0.so -> libglib-2.0.so.0.1800.1
lrwxrwxrwx  1 root root      23 2011-11-18 11:14 libglib-2.0.so.0 -> libglib-2.0.so.0.1800.1
-rwxrwxrwx  1 root root 2275120 2011-11-18 11:14 libglib-2.0.so.0.1800.1
lrwxrwxrwx  1 root root      26 2011-11-18 11:14 libgmodule-2.0.so -> libgmodule-2.0.so.0.1800.1
lrwxrwxrwx  1 root root      26 2011-11-18 11:14 libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.1800.1
-rwxrwxrwx  1 root root   29503 2011-11-18 11:14 libgmodule-2.0.so.0.1800.1
lrwxrwxrwx  1 root root      26 2011-11-18 11:14 libgobject-2.0.so -> libgobject-2.0.so.0.1800.1
lrwxrwxrwx  1 root root      26 2011-11-18 11:14 libgobject-2.0.so.0 -> libgobject-2.0.so.0.1800.1
-rwxrwxrwx  1 root root  796782 2011-11-18 11:14 libgobject-2.0.so.0.1800.1
lrwxrwxrwx  1 root root      24 2011-11-18 11:18 libgstapp-0.10.so -> libgstapp-0.10.so.0.18.0
lrwxrwxrwx  1 root root      24 2011-11-18 11:18 libgstapp-0.10.so.0 -> libgstapp-0.10.so.0.18.0
-rwxrwxrwx  1 root root  152194 2011-11-18 11:18 libgstapp-0.10.so.0.18.0
-rwxrwxrwx  1 root root  593280 2011-11-18 11:18 libgstaudio-0.10.a
lrwxrwxrwx  1 root root      26 2011-11-18 11:18 libgstaudio-0.10.so -> libgstaudio-0.10.so.0.18.0
lrwxrwxrwx  1 root root      26 2011-11-18 11:18 libgstaudio-0.10.so.0 -> libgstaudio-0.10.so.0.18.0
-rwxrwxrwx  1 root root  444398 2011-11-18 11:18 libgstaudio-0.10.so.0.18.0
-rwxrwxrwx  1 root root  797256 2011-11-18 11:17 libgstbase-0.10.a
lrwxrwxrwx  1 root root      25 2011-11-18 11:17 libgstbase-0.10.so -> libgstbase-0.10.so.0.22.0
lrwxrwxrwx  1 root root      25 2011-11-18 11:17 libgstbase-0.10.so.0 -> libgstbase-0.10.so.0.22.0
-rwxrwxrwx  1 root root  654413 2011-11-18 11:17 libgstbase-0.10.so.0.22.0
-rwxrwxrwx  1 root root  100302 2011-11-18 11:18 libgstcdda-0.10.a
lrwxrwxrwx  1 root root      25 2011-11-18 11:18 libgstcdda-0.10.so -> libgstcdda-0.10.so.0.18.0
lrwxrwxrwx  1 root root      25 2011-11-18 11:18 libgstcdda-0.10.so.0 -> libgstcdda-0.10.so.0.18.0
-rwxrwxrwx  1 root root  115332 2011-11-18 11:18 libgstcdda-0.10.so.0.18.0
-rwxrwxrwx  1 root root  231210 2011-11-18 11:17 libgstcheck-0.10.a
lrwxrwxrwx  1 root root      26 2011-11-18 11:17 libgstcheck-0.10.so -> libgstcheck-0.10.so.0.22.0
lrwxrwxrwx  1 root root      26 2011-11-18 11:17 libgstcheck-0.10.so.0 -> libgstcheck-0.10.so.0.22.0
-rwxrwxrwx  1 root root  188326 2011-11-18 11:17 libgstcheck-0.10.so.0.22.0
-rwxrwxrwx  1 root root  597740 2011-11-18 11:17 libgstcontroller-0.10.a
lrwxrwxrwx  1 root root      31 2011-11-18 11:17 libgstcontroller-0.10.so -> libgstcontroller-0.10.so.0.22.0
lrwxrwxrwx  1 root root      31 2011-11-18 11:17 libgstcontroller-0.10.so.0 -> libgstcontroller-0.10.so.0.22.0
-rwxrwxrwx  1 root root  515614 2011-11-18 11:17 libgstcontroller-0.10.so.0.22.0
-rwxrwxrwx  1 root root   45268 2011-11-18 11:17 libgstdataprotocol-0.10.a
lrwxrwxrwx  1 root root      33 2011-11-18 11:17 libgstdataprotocol-0.10.so -> libgstdataprotocol-0.10.so.0.22.0
lrwxrwxrwx  1 root root      33 2011-11-18 11:17 libgstdataprotocol-0.10.so.0 -> libgstdataprotocol-0.10.so.0.22.0
-rwxrwxrwx  1 root root   44285 2011-11-18 11:17 libgstdataprotocol-0.10.so.0.22.0
-rwxrwxrwx  1 root root  183450 2011-11-18 11:18 libgstfft-0.10.a
lrwxrwxrwx  1 root root      24 2011-11-18 11:18 libgstfft-0.10.so -> libgstfft-0.10.so.0.18.0
lrwxrwxrwx  1 root root      24 2011-11-18 11:18 libgstfft-0.10.so.0 -> libgstfft-0.10.so.0.18.0
-rwxrwxrwx  1 root root  139675 2011-11-18 11:18 libgstfft-0.10.so.0.18.0
-rwxrwxrwx  1 root root  297276 2011-11-18 11:18 libgstinterfaces-0.10.a
lrwxrwxrwx  1 root root      31 2011-11-18 11:18 libgstinterfaces-0.10.so -> libgstinterfaces-0.10.so.0.18.0
lrwxrwxrwx  1 root root      31 2011-11-18 11:18 libgstinterfaces-0.10.so.0 -> libgstinterfaces-0.10.so.0.18.0
-rwxrwxrwx  1 root root  210382 2011-11-18 11:18 libgstinterfaces-0.10.so.0.18.0
-rwxrwxrwx  1 root root   85730 2011-11-18 11:17 libgstnet-0.10.a
lrwxrwxrwx  1 root root      24 2011-11-18 11:17 libgstnet-0.10.so -> libgstnet-0.10.so.0.22.0
lrwxrwxrwx  1 root root      24 2011-11-18 11:17 libgstnet-0.10.so.0 -> libgstnet-0.10.so.0.22.0
-rwxrwxrwx  1 root root   97927 2011-11-18 11:17 libgstnet-0.10.so.0.22.0
-rwxrwxrwx  1 root root   21618 2011-11-18 11:18 libgstnetbuffer-0.10.a
lrwxrwxrwx  1 root root      30 2011-11-18 11:18 libgstnetbuffer-0.10.so -> libgstnetbuffer-0.10.so.0.18.0
lrwxrwxrwx  1 root root      30 2011-11-18 11:18 libgstnetbuffer-0.10.so.0 -> libgstnetbuffer-0.10.so.0.18.0
-rwxrwxrwx  1 root root   22185 2011-11-18 11:18 libgstnetbuffer-0.10.so.0.18.0
-rwxrwxrwx  1 root root  121872 2011-11-18 11:18 libgstpbutils-0.10.a
lrwxrwxrwx  1 root root      28 2011-11-18 11:18 libgstpbutils-0.10.so -> libgstpbutils-0.10.so.0.18.0
lrwxrwxrwx  1 root root      28 2011-11-18 11:18 libgstpbutils-0.10.so.0 -> libgstpbutils-0.10.so.0.18.0
-rwxrwxrwx  1 root root  101802 2011-11-18 11:18 libgstpbutils-0.10.so.0.18.0
-rwxrwxrwx  1 root root   42804 2011-11-18 11:20 libgstphotography-0.10.a
lrwxrwxrwx  1 root root      31 2011-11-18 11:20 libgstphotography-0.10.so -> libgstphotography-0.10.so.0.0.0
lrwxrwxrwx  1 root root      31 2011-11-18 11:20 libgstphotography-0.10.so.0 -> libgstphotography-0.10.so.0.0.0
-rwxrwxrwx  1 root root   39007 2011-11-18 11:20 libgstphotography-0.10.so.0.0.0
-rwxrwxrwx  1 root root 3153996 2011-11-18 11:17 libgstreamer-0.10.a
lrwxrwxrwx  1 root root      27 2011-11-18 11:17 libgstreamer-0.10.so -> libgstreamer-0.10.so.0.22.0
lrwxrwxrwx  1 root root      27 2011-11-18 11:17 libgstreamer-0.10.so.0 -> libgstreamer-0.10.so.0.22.0
-rwxrwxrwx  1 root root 2351156 2011-11-18 11:17 libgstreamer-0.10.so.0.22.0
-rwxrwxrwx  1 root root  109836 2011-11-18 11:18 libgstriff-0.10.a
lrwxrwxrwx  1 root root      25 2011-11-18 11:18 libgstriff-0.10.so -> libgstriff-0.10.so.0.18.0
lrwxrwxrwx  1 root root      25 2011-11-18 11:18 libgstriff-0.10.so.0 -> libgstriff-0.10.so.0.18.0
-rwxrwxrwx  1 root root  100550 2011-11-18 11:18 libgstriff-0.10.so.0.18.0
-rwxrwxrwx  1 root root  313616 2011-11-18 11:18 libgstrtp-0.10.a
lrwxrwxrwx  1 root root      24 2011-11-18 11:18 libgstrtp-0.10.so -> libgstrtp-0.10.so.0.18.0
lrwxrwxrwx  1 root root      24 2011-11-18 11:18 libgstrtp-0.10.so.0 -> libgstrtp-0.10.so.0.18.0
-rwxrwxrwx  1 root root  262228 2011-11-18 11:18 libgstrtp-0.10.so.0.18.0
-rwxrwxrwx  1 root root  271220 2011-11-18 11:18 libgstrtsp-0.10.a
lrwxrwxrwx  1 root root      25 2011-11-18 11:18 libgstrtsp-0.10.so -> libgstrtsp-0.10.so.0.18.0
lrwxrwxrwx  1 root root      25 2011-11-18 11:18 libgstrtsp-0.10.so.0 -> libgstrtsp-0.10.so.0.18.0
-rwxrwxrwx  1 root root  215921 2011-11-18 11:18 libgstrtsp-0.10.so.0.18.0
-rwxrwxrwx  1 root root   65240 2011-11-18 11:18 libgstsdp-0.10.a
lrwxrwxrwx  1 root root      24 2011-11-18 11:18 libgstsdp-0.10.so -> libgstsdp-0.10.so.0.18.0
lrwxrwxrwx  1 root root      24 2011-11-18 11:18 libgstsdp-0.10.so.0 -> libgstsdp-0.10.so.0.18.0
-rwxrwxrwx  1 root root   61243 2011-11-18 11:18 libgstsdp-0.10.so.0.18.0
-rwxrwxrwx  1 root root  176544 2011-11-18 11:18 libgsttag-0.10.a
lrwxrwxrwx  1 root root      24 2011-11-18 11:18 libgsttag-0.10.so -> libgsttag-0.10.so.0.18.0
lrwxrwxrwx  1 root root      24 2011-11-18 11:18 libgsttag-0.10.so.0 -> libgsttag-0.10.so.0.18.0
-rwxrwxrwx  1 root root  155211 2011-11-18 11:18 libgsttag-0.10.so.0.18.0
-rwxrwxrwx  1 root root  146754 2011-11-18 11:18 libgstvideo-0.10.a
lrwxrwxrwx  1 root root      26 2011-11-18 11:18 libgstvideo-0.10.so -> libgstvideo-0.10.so.0.18.0
lrwxrwxrwx  1 root root      26 2011-11-18 11:18 libgstvideo-0.10.so.0 -> libgstvideo-0.10.so.0.18.0
-rwxrwxrwx  1 root root  132700 2011-11-18 11:18 libgstvideo-0.10.so.0.18.0
lrwxrwxrwx  1 root root      26 2011-11-18 11:14 libgthread-2.0.so -> libgthread-2.0.so.0.1800.1
lrwxrwxrwx  1 root root      26 2011-11-18 11:14 libgthread-2.0.so.0 -> libgthread-2.0.so.0.1800.1
-rwxrwxrwx  1 root root   33727 2011-11-18 11:14 libgthread-2.0.so.0.1800.1
-rwxrwxrwx  1 root root  228082 2011-11-18 11:16 libid3tag.a
lrwxrwxrwx  1 root root      18 2011-11-18 11:16 libid3tag.so -> libid3tag.so.0.3.0
lrwxrwxrwx  1 root root      18 2011-11-18 11:16 libid3tag.so.0 -> libid3tag.so.0.3.0
-rwxrwxrwx  1 root root  171357 2011-11-18 11:16 libid3tag.so.0.3.0
-rwxrwxrwx  1 root root  218358 2011-11-18 11:16 libmad.a
lrwxrwxrwx  1 root root      15 2011-11-18 11:16 libmad.so -> libmad.so.0.2.1
lrwxrwxrwx  1 root root      15 2011-11-18 11:16 libmad.so.0 -> libmad.so.0.2.1
-rwxrwxrwx  1 root root  179713 2011-11-18 11:16 libmad.so.0.2.1
-rwxrwxrwx  1 root root   46024 2011-11-21 15:27 libmenu.a
lrwxrwxrwx  1 root root      12 2011-11-21 15:27 libmenu.so -> libmenu.so.5
lrwxrwxrwx  1 root root      14 2011-11-21 15:27 libmenu.so.5 -> libmenu.so.5.3
-rwxrwxrwx  1 root root   33200 2011-11-21 15:27 libmenu.so.5.3
lrwxrwxrwx  1 root root      19 2011-11-18 11:12 libm.so -> ../../lib/libm.so.6
-rwxrwxrwx  1 root root  411960 2011-11-21 15:27 libncurses.a
lrwxrwxrwx  1 root root      15 2011-11-21 15:27 libncurses.so -> libncurses.so.5
lrwxrwxrwx  1 root root      17 2011-11-21 15:27 libncurses.so.5 -> libncurses.so.5.3
-rwxrwxrwx  1 root root  306097 2011-11-21 15:27 libncurses.so.5.3
lrwxrwxrwx  1 root root      21 2011-11-18 11:12 libnsl.so -> ../../lib/libnsl.so.1
lrwxrwxrwx  1 root root      28 2011-11-18 11:12 libnss_compat.so -> ../../lib/libnss_compat.so.2
lrwxrwxrwx  1 root root      25 2011-11-18 11:12 libnss_dns.so -> ../../lib/libnss_dns.so.2
lrwxrwxrwx  1 root root      27 2011-11-18 11:12 libnss_files.so -> ../../lib/libnss_files.so.2
lrwxrwxrwx  1 root root      28 2011-11-18 11:12 libnss_hesiod.so -> ../../lib/libnss_hesiod.so.2
lrwxrwxrwx  1 root root      29 2011-11-18 11:12 libnss_nisplus.so -> ../../lib/libnss_nisplus.so.2
lrwxrwxrwx  1 root root      25 2011-11-18 11:12 libnss_nis.so -> ../../lib/libnss_nis.so.2
-rwxrwxrwx  1 root root 1861022 2011-11-18 11:17 liboil-0.3.a
lrwxrwxrwx  1 root root      19 2011-11-18 11:17 liboil-0.3.so -> liboil-0.3.so.0.3.0
lrwxrwxrwx  1 root root      19 2011-11-18 11:17 liboil-0.3.so.0 -> liboil-0.3.so.0.3.0
-rwxrwxrwx  1 root root 1213940 2011-11-18 11:17 liboil-0.3.so.0.3.0
-rwxrwxrwx  1 root root   18236 2011-11-21 15:27 libpanel.a
lrwxrwxrwx  1 root root      13 2011-11-21 15:27 libpanel.so -> libpanel.so.5
lrwxrwxrwx  1 root root      15 2011-11-21 15:27 libpanel.so.5 -> libpanel.so.5.3
-rwxrwxrwx  1 root root   11502 2011-11-21 15:27 libpanel.so.5.3
-rwxrwxrwx  1 root root     207 2011-11-18 11:12 libpthread.so
-rwxrwxrwx  1 root root     207 2007-05-09 17:23 libpthread.so.bak
-rwxrwxrwx  1 root root     221 2007-05-09 17:18 libpthread.so_orig
lrwxrwxrwx  1 root root      24 2011-11-18 11:12 libresolv.so -> ../../lib/libresolv.so.2
lrwxrwxrwx  1 root root      20 2011-11-18 11:12 librt.so -> ../../lib/librt.so.1
lrwxrwxrwx  1 root root      28 2011-11-18 11:12 libstdc++.so -> ../../lib/libstdc++.so.6.0.8
-rwxrwxrwx  1 root root   11560 2011-11-21 15:27 libtermcap.a
lrwxrwxrwx  1 root root      29 2011-11-21 15:27 libtermcap.so -> ../../lib/libtermcap.so.2.0.8
lrwxrwxrwx  1 root root      27 2011-11-18 11:12 libthread_db.so -> ../../lib/libthread_db.so.1
lrwxrwxrwx  1 root root      18 2011-11-18 11:14 libts-1.0.so.0 -> libts-1.0.so.0.1.1
-rwxrwxrwx  1 root root   11235 2011-11-18 11:14 libts-1.0.so.0.1.1
lrwxrwxrwx  1 root root      18 2011-11-18 11:14 libts.so -> libts-1.0.so.0.1.1
lrwxrwxrwx  1 root root      22 2011-11-18 11:12 libutil.so -> ../../lib/libutil.so.1
-rwxrwxrwx  1 root root  150820 2011-11-18 11:16 libvolume_id.so
-rwxrwxrwx  1 root root 4083118 2011-11-18 11:16 libxml2.a
lrwxrwxrwx  1 root root      17 2011-11-18 11:16 libxml2.so -> libxml2.so.2.6.28
lrwxrwxrwx  1 root root      17 2011-11-18 11:16 libxml2.so.2 -> libxml2.so.2.6.28
-rwxrwxrwx  1 root root 3210897 2011-11-18 11:16 libxml2.so.2.6.28
-rwxrwxrwx  1 root root   92250 2011-11-18 11:13 libz.a
lrwxrwxrwx  1 root root      13 2011-11-18 11:13 libz.so -> libz.so.1.2.3
lrwxrwxrwx  1 root root      13 2011-11-18 11:13 libz.so.1 -> libz.so.1.2.3
-rwxrwxrwx  1 root root   84915 2011-11-18 11:13 libz.so.1.2.3
drwxrwxrwx  2 root root    4096 2011-11-18 11:18 pkgconfig
lrwxrwxrwx  1 root root      17 2011-11-21 15:27 terminfo -> ../share/terminfo
drwxrwxrwx  2 root root    4096 2011-11-18 11:14 ts
-rwxrwxrwx  1 root root     199 2011-11-18 11:16 xml2Conf.sh

0 Kudos

3,276 Views
Venku
Contributor I

Hello David, 

 

- Untar step was to have a clean qt, ensuring we are not working on left-overs from your prev build

- When you add -phonon option to QT configure, you need to ensure that the dependent libraries and packages to build phonon are present. glib, gstreamer are two main dependencies for having phonon with QT. Can you check if you have chosen these in your ltib installation?

If you are not sure, go to ltib/config/platform/imx/ directory and open your config file (which you would have given a particular name during your ltib installation). Open the <filename>.config and check for GLIB, GSTREAMER named config (see if they are set to 'y'). If not, you might want to do your ltib installation with these enabled or, download these packages, put it in your ltib/rpm/BUILD folder and compile them individually. Once that is done, in your ./configure, you could give -I and -L and make them point to the location of the include files and libraries which are generated by these packages (gstreamer, glib etc).

Venkat

0 Kudos

3,276 Views
Ameeca
Contributor II

Hello again,

 

Venkat that works fine except that I need to include phonon in my build. When I re-run the configure with phonon included, I receive the usual Glib error:

...

ODBC auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o odbc.o odbc.cpp
odbc.cpp:45:17: error: sql.h: No such file or directory
odbc.cpp:46:20: error: sqlext.h: No such file or directory
make: *** [odbc.o] Error 1
ODBC disabled.
iODBC auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o psql.o psql.cpp
psql.cpp:42:22: error: libpq-fe.h: No such file or directory
psql.cpp: In function 'int main(int, char**)':
psql.cpp:46: error: 'PQescapeBytea' was not declared in this scope
psql.cpp:47: error: 'PQunescapeBytea' was not declared in this scope
make: *** [psql.o] Error 1
PostgreSQL disabled.
SQLite2 auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o sqlite2.o sqlite2.cpp
sqlite2.cpp:42:20: error: sqlite.h: No such file or directory
make: *** [sqlite2.o] Error 1
SQLite2 disabled.
unknown SQL driver: sqlite_symbian
TDS auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o nis.o nis.cpp
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -Wl,-O1 -Wl,-rpath,/home/engineering/Software/Qt-4.7.4-imx/lib -o nis nis.o     -lnsl
NIS enabled.
Cups auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -I. -o cups.o cups.cpp
cups.cpp:42:23: error: cups/cups.h: No such file or directory
cups.cpp: In function 'int main(int, char**)':
cups.cpp:46: error: 'cups_dest_t' was not declared in this scope
cups.cpp:46: error: 'd' was not declared in this scope
cups.cpp:47: error: 'cupsGetDests' was not declared in this scope
make: *** [cups.o] Error 1
Cups disabled.
D-Bus auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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.
Glib auto-detection... ()
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W  -I../../../mkspecs/qws/linux-arm-imx -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.
Glib 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.

0 Kudos

3,276 Views
Ameeca
Contributor II

Thank you Venkat. I will try this as soon as possible.

 

Is there any reason why I have to untar to ltib/rpm/BUILD?

0 Kudos

3,276 Views
Venku
Contributor I

Hello David,

 

Your QT configure isn't complete as yet and your guess is right, it has nothing to do with tftp boot.

 

Let us take it one by one.

 

Go to your ltib directory. In this directory, you will find a rpm/BUILD folder. Check if you have a qt-everywhere-opensource-src-4.7.3 folder inside? (Ltib typically untar the qtxxx.tar.gz from within its /opt/freescale/pkgs). Just delete the directory and untar the same (from /opt/freescale/pkgs). This is to make sure you start clean.

 

Else download a copy from:

(http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz): Thats the latest available.

 

untar it to ltib/rpm/BUILD.

 

Now go to your qt-everywhere-opensource-src-xx directory. In this directory go to mkspecs/qws/linux-arm-g++

 

Open the qmake.conf file.

 

Copy paste your earlier conf onto this (Copied from your last Friday reply).

 

include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

# modifications to g++.conf
QMAKE_CC                = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
QMAKE_CXX               = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
QMAKE_LINK              = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB        = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++

# modifications to linux.conf
QMAKE_AR                = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY           = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-objcopy
QMAKE_STRIP             = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-strip

PKG_CONFIG        = pkg-config-wrapper.sh
QMAKE LIBS         = -lglib-2.0 -lgthread-2.0 -lgstreamer-0.10 -lxml2 -lz -lgmodule-2.0 -lgobject-2.0 -lts -lasound

load(qt_config)

 

>> Save this. You have mentioned the location of your compilers for compiling QT in this file.

 

now go to your qt-everywhere-opensource-xxx/ folder. Run the following configure:

 

./configure -embedded arm -xplatform qws/linux-arm-g++ -qt-gfx-linuxfb -no-largefile -no-multimedia -no-phonon -no-phonon-backend -no-svg -no-webkit -no-javascript-jit -no-script -little-endian

 

for everything else, it would take the default config options. After this, it should ideally go to the step where it asks you to make and make install. Once this is done, you could add onto the ./configure options.

 

If the above fails, open your qmake.conf anf comment the QMAKE LIBS line and try again.

 

Hope this helps.

 

Venkat

0 Kudos

3,276 Views
Ameeca
Contributor II

I may be totally wrong but I don't think this is where my problem is. I'm still at the stage of trying to build Qt for embedded (my i.Mx233). During the build I am getting the following errors;

Glib disabled.
Glib support cannot be enabled due to functionality tests!
 Turn on verbose messaging (-v) to /home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.3/configure to see the final report.
 If you believe this message is in error you may use the continue
 switch (-continue) to /home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.3/configure to continue.

etc..

 

I'm not even close to touching the board yet. I thought the problem was the build cannot see my include and library files even though I explicily state:

 

/home/engineering/Software/Packages/qt-everywhere-opensource-src-4.7.3/configure -embedded arm -xplatform qws/linux-arm-imx -release -opensource -prefix /home/engineering/Software/QtEmbedded-4.7.3 -little-endian -host-little-endian -multimedia -audio-backend -phonon -phonon-backend -gstreamer -glib -force-pkg-config -I /home/engineering/Software/Build/iMX23/ltib/rootfs/usr/include -L /home/engineering/Software/Build/iMX23/ltib/rootfs/usr/lib -v

 

which is where the files are. I'm not sure if the tftpboot things help?


Luca Bonifacio said:

Have you made the /tftpboot folder and have you create a symbol link to your ltib/rootfs location?

What's the print out when you run followng command?

$ cd /tftpboot

$ ls -la

0 Kudos

3,276 Views
bonil
Contributor I

Have you made the /tftpboot folder and have you create a symbol link to your ltib/rootfs location?

What's the print out when you run followng command?

$ cd /tftpboot

$ ls -la

0 Kudos

3,276 Views
Ameeca
Contributor II

Thanks Luca but I'm still getting the same errors

Luca Bonifacio said:

Hi David,

You have to make the tftpboot directory by yourself. Attached you will find an interesting tutorial of Freescale. Have a look at chapter 5.3 TFTP Host Setup

0 Kudos

3,276 Views
bonil
Contributor I

Hi David,

You have to make the tftpboot directory by yourself. Attached you will find an interesting tutorial of Freescale. Have a look at chapter 5.3 TFTP Host Setup

0 Kudos

3,276 Views
Ameeca
Contributor II

Hi Luca,

 

qws/linux-arm-imx is my qmake.conf file as posted above. The links are all correct to the compiler I am using.

 

I have read alot about the /tftpboot directory but I cannot find that anywhere on my host?


Luca Bonifacio said:

This configuration file doesn't look the right one.. Are you sure you are loading the right configuration file when you build Qt?

 

$ ./configure -v -embedded arm -xplatform qws/linux-arm-imx -phonon


If you are using the tutorial I linked before, then you should use a command like this:

$ ./configure -arch arm -xplatform linux-g++-mx5x -release -prefix /tftpboot/ltib/usr/local/Trolltech/Qt-4.7.2-mx5x-x11 -multimedia -phonon -phonon-backend -qt-gfx-linuxfb -qt-kbd-tty -little-endian -host-little-endian -fontconfig -sm -opengl es2

 

where linux-g++-mx5x indicates the folder in mkspec where is located your qmake.conf file

0 Kudos

3,276 Views
bonil
Contributor I

This configuration file doesn't look the right one.. Are you sure you are loading the right configuration file when you build Qt?

 

$ ./configure -v -embedded arm -xplatform qws/linux-arm-imx -phonon


If you are using the tutorial I linked before, then you should use a command like this:

$ ./configure -arch arm -xplatform linux-g++-mx5x -release -prefix /tftpboot/ltib/usr/local/Trolltech/Qt-4.7.2-mx5x-x11 -multimedia -phonon -phonon-backend -qt-gfx-linuxfb -qt-kbd-tty -little-endian -host-little-endian -fontconfig -sm -opengl es2

 

where linux-g++-mx5x indicates the folder in mkspec where is located your qmake.conf file

0 Kudos

3,276 Views
Ameeca
Contributor II

Luca - my qconf file:

 

#
# qmake configuration for building with arm-linux-g++
#

include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

# modifications to g++.conf
QMAKE_CC                = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
QMAKE_CXX               = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
QMAKE_LINK              = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB        = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++

# modifications to linux.conf
QMAKE_AR                = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY           = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-objcopy
QMAKE_STRIP             = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-strip

PKG_CONFIG        = pkg-config-wrapper.sh
QMAKE LIBS         = -lglib-2.0 -lgthread-2.0 -lgstreamer-0.10 -lxml2 -lz -lgmodule-2.0 -lgobject-2.0 -lts -lasound

load(qt_config)

 

Also, I have been working through these tutorials with the exact same errors - http://imxcommunity.org/forum/topics/qt-4-7-4-embedded-spec-on-i-mx28?xg_source=activity

0 Kudos

3,276 Views
bonil
Contributor I

It looks like you are using the wrong include path. Could you please attach the qmake.conf file? Where are your ltib files located?

0 Kudos

3,276 Views
Ameeca
Contributor II

It may also be worth mentioning that if I do not include "-phonon" then, whilst I do still get the errors at the start, the build does eventually succeed.

0 Kudos

3,276 Views
Ameeca
Contributor II

Hi Luca, that is more or less the tutorial I  have followed which is giving me problems.

 

Vladan, I'm sure I have the glib package installed but I'm not sure if its to rootfs (sorry, I'm new to linux!).

 

I have included gstreamer in LTIB but I will need to check if FSL is included.

 

EDIT: I have looked at /usr/include and glib-2.0 is there.

0 Kudos

3,276 Views
VladanJovanovic
NXP Employee
NXP Employee

Do you have glib installed to rootfs? If you want to use Phonon, you need to install also gstreamer and FSL multimedia codecs package from LTIB, which will in turn also include glib.

 

Looks like Qt is not able to find glib at this point (not able to find glib.h, most probably in /usr/include/ or similar location) so thinks it is not installed.

0 Kudos

3,276 Views
bonil
Contributor I

Hi David

Read this tutorial.. and I'm sure you will be able to build Qt for your board successfully!

http://imxcommunity.org/group/imxqt/forum/topics/building-qt-for-imx5x

 

Regards,

Luca

0 Kudos