hello everyone,
im trying to install qt in scratchbox - the cross-compilation toolkit to be able to cross compile code for an embedded system im building.
i got the bzipped tarbazz and extracted it in scratchbox user home folder (/home/nass/qt, when logged on in scratchbox).

i added the necessary system variables in /etc/profile:

Qt Code:
  1. # Qt - related
  2. export QTDIR=/home/nass/qt
  3. export PATH=$QTDIR/bin:$PATH
  4. export MANPATH=$QTDIR/doc/man:$MANPATH
  5. export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
To copy to clipboard, switch view to plain text mode 

and run ./configure -thread

the configuration runs smoothly
...
#configuration running compiling some stuff (not shown here) - among which qmake too, i think, and then links them as:

g++ -o qmake project.o property.o main.o makefile.o unixmake2.o unixmake.o msvc_nmake.o borland_bmake.o mingw_make.o msvc_dsp.o msvc_vcproj.o option.o winmakefile.o projectgenerator.o metrowerks_xml.o pbuilder_pbx.o msvc_objectmodel.o meta.o qtmd5.o qstring.o qtextstream.o qiodevice.o qglobal.o qgdict.o qcstring.o qdatastream.o qgarray.o qbuffer.o qglist.o qptrcollection.o qfile.o qfile_unix.o qregexp.o qgvector.o qgcache.o qbitarray.o qdir.o quuid.o qfileinfo_unix.o qdir_unix.o qfileinfo.o qdatetime.o qstringlist.o qmap.o qconfig.o qunicodetables.o qsettings.o qlocale.o
rm -f /home/nass/qt-x11-free-3.3.8/bin/qmake
ln -s ../qmake/qmake /home/nass/qt-x11-free-3.3.8/bin/qmake

This target is using the GNU C++ compiler (linux-g++).

Recent versions of this compiler automatically include code for
exceptions, which increase both the size of the Qt library and the
amount of memory taken by your applications.

You may choose to re-run configure with the -no-exceptions
option to compile Qt without exceptions. This is completely binary
compatible, and existing applications should continue to work.


Build type: linux-g++
Platform notes:

- Also available for Linux: linux-kcc linux-icc linux-cxx

Configuration ....... nocrosscompiler minimal-config small-config medium-config large-config full-config styles tools kernel widgets dialogs iconview workspace network canvas table xml sql release dll thread stl ipv6 png no-gif zlib nis bigcodecs
STL support ......... yes
PCH support ......... no
IPv6 support ........ yes
Thread support ...... yes
NIS support ......... yes
CUPS support ........ no
Large File support .. no
GIF support ......... no
MNG support ......... plugin (qt)
JPEG support ........ plugin (qt)
PNG support ......... yes (qt)
zlib support ........ yes
OpenGL support ...... no
NAS sound support ... no
Session management .. no
XShape support ...... no
Xinerama support .... no
Tablet support ...... no
Xcursor support ..... no
XRandR support ...... no
XRender support ..... no
Xft support ......... no
XKB Support ......... no

Finding project files. Please wait...
241 projects found.

Creating makefiles. Please wait...
for /home/nass/qt-x11-free-3.3.8/src/moc/moc.pro
for /home/nass/qt-x11-free-3.3.8/src/qt.pro
for /home/nass/qt-x11-free-3.3.8/tools/tools.pro
for /home/nass/qt-x11-free-3.3.8/tools/assistant/lib/lib.pro
for /home/nass/qt-x11-free-3.3.8/tools/designer/uilib/uilib.pro
for /home/nass/qt-x11-free-3.3.8/tools/designer/editor/editor.pro

#and from here on end makefiles are being generated from the project files... or at least i think thats what happens

note that the automatically chosen build platform is linux-g++... there is no linux-arm-g++ supported, but i am hoping and believe that since scratchbox provides an arm toolchain on its own i don't need to worry abt that. (in scratchbox g++ -v returns:
[sbox-DEHTEST: ~/qt] > g++ -v
Reading specs from /scratchbox/compilers/arm-linux-gcc3.4.cs-glibc2.3/lib/gcc/arm-linux/3.4.2/specs
Reading specs from /scratchbox/compilers/arm-linux-gcc3.4.cs-glibc2.3/gcc.specs
rename spec cpp to old_cpp
Configured with: ../../work/gcc-2004-q3d/configure --target=arm-linux --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --prefix=/scratchbox/compilers/arm-linux-gcc3.4.cs-glibc2.3 --enable-languages=c,c++ --program-prefix=arm-linux- --enable-shared --enable-static --with-sysroot=/scratchbox/compilers/arm-linux-gcc3.4.cs-glibc2.3 --with-local-prefix=/scratchbox/compilers/arm-linux-gcc3.4.cs-glibc2.3 --enable-symvers=gnu --with-gnu-ld
Thread model: posix
gcc version 3.4.2 (release) (CodeSourcery ARM Q3D 2004)
so once the configuration completes, i type make... and that fails. Any ideas why?

[sbox-DEHTEST: ~/qt] > make
make[1]: Entering directory `/home/nass/qt-x11-free-3.3.8'
cd qmake && make
make[2]: Entering directory `/home/nass/qt-x11-free-3.3.8/qmake'
make[2]: `qmake' is up to date.
make[2]: Leaving directory `/home/nass/qt-x11-free-3.3.8/qmake'
cd src/moc && make
make[2]: Entering directory `/home/nass/qt-x11-free-3.3.8/src/moc'
Makefile:252: warning: overriding commands for target `.cpp.o'
Makefile:68: warning: ignoring old commands for target `.cpp.o'
Makefile:255: warning: overriding commands for target `.cc.o'
Makefile:71: warning: ignoring old commands for target `.cc.o'
Makefile:258: warning: overriding commands for target `.cxx.o'
Makefile:74: warning: ignoring old commands for target `.cxx.o'
Makefile:261: warning: overriding commands for target `.C.o'
Makefile:77: warning: ignoring old commands for target `.C.o'
Makefile:264: warning: overriding commands for target `.c.o'
Makefile:80: warning: ignoring old commands for target `.c.o'
Makefile:278: warning: overriding commands for target `/home/nass/qt-x11-free-3.3.8/bin/moc'
Makefile:93: warning: ignoring old commands for target `/home/nass/qt-x11-free-3.3.8/bin/moc'
Makefile:281: warning: overriding commands for target `Makefile'
Makefile:96: warning: ignoring old commands for target `Makefile'
Makefile:283: warning: overriding commands for target `qmake'
Makefile:98: warning: ignoring old commands for target `qmake'
Makefile:286: warning: overriding commands for target `dist'
Makefile:101: warning: ignoring old commands for target `dist'
Makefile:294: warning: overriding commands for target `clean'
Makefile:110: warning: ignoring old commands for target `clean'
Makefile:301: warning: overriding commands for target `distclean'
Makefile:116: warning: ignoring old commands for target `distclean'
g++ -o ../../bin/moc ./qbuffer.o ./qptrcollection.o ./qcstring.o ./qdatastream.o ./qdatetime.o ./qfile.o ./qdir.o ./qfileinfo.o ./qgarray.o ./qgdict.o ./qglist.o ./qglobal.o ./qgvector.o ./qiodevice.o ./qregexp.o ./qstring.o ./qlocale.o ./qunicodetables.o ./qstringlist.o ./qtextstream.o ./qbitarray.o ./qmap.o ./qgcache.o ./qtextcodec.o ./qutfcodec.o ./moc_yacc.o ./qfile_unix.o ./qdir_unix.o ./qfileinfo_unix.o -L/usr/lib -L/usr/X11R6/lib
sbox-arm-linux-g++: ./qbuffer.o: No such file or directory
sbox-arm-linux-g++: ./qptrcollection.o: No such file or directory
sbox-arm-linux-g++: ./qcstring.o: No such file or directory
sbox-arm-linux-g++: ./qdatastream.o: No such file or directory
sbox-arm-linux-g++: ./qdatetime.o: No such file or directory
sbox-arm-linux-g++: ./qfile.o: No such file or directory
sbox-arm-linux-g++: ./qdir.o: No such file or directory
sbox-arm-linux-g++: ./qfileinfo.o: No such file or directory
sbox-arm-linux-g++: ./qgarray.o: No such file or directory
sbox-arm-linux-g++: ./qgdict.o: No such file or directory
sbox-arm-linux-g++: ./qglist.o: No such file or directory
sbox-arm-linux-g++: ./qglobal.o: No such file or directory
sbox-arm-linux-g++: ./qgvector.o: No such file or directory
sbox-arm-linux-g++: ./qiodevice.o: No such file or directory
sbox-arm-linux-g++: ./qregexp.o: No such file or directory
sbox-arm-linux-g++: ./qstring.o: No such file or directory
sbox-arm-linux-g++: ./qlocale.o: No such file or directory
sbox-arm-linux-g++: ./qunicodetables.o: No such file or directory
sbox-arm-linux-g++: ./qstringlist.o: No such file or directory
sbox-arm-linux-g++: ./qtextstream.o: No such file or directory
sbox-arm-linux-g++: ./qbitarray.o: No such file or directory
sbox-arm-linux-g++: ./qmap.o: No such file or directory
sbox-arm-linux-g++: ./qgcache.o: No such file or directory
sbox-arm-linux-g++: ./qtextcodec.o: No such file or directory
sbox-arm-linux-g++: ./qutfcodec.o: No such file or directory
sbox-arm-linux-g++: ./moc_yacc.o: No such file or directory
sbox-arm-linux-g++: ./qfile_unix.o: No such file or directory
sbox-arm-linux-g++: ./qdir_unix.o: No such file or directory
sbox-arm-linux-g++: ./qfileinfo_unix.o: No such file or directory
sbox-arm-linux-g++: no input files
make[2]: *** [linux-g++] Error 1
make[2]: Leaving directory `/home/nass/qt-x11-free-3.3.8/src/moc'
make[1]: *** [src-moc] Error 2
make[1]: Leaving directory `/home/nass/qt-x11-free-3.3.8'
make: *** [init] Error 2
it seems to have something to do with the moc making... i don't get it anyway...
thank you in advance for your help
nass