ts-7000
[Top] [All Lists]

Re: [ts-7000] Cross compiling - please Help!, qstring.h failed to compil

To:
Subject: Re: [ts-7000] Cross compiling - please Help!, qstring.h failed to compile in w/ target
From: Manuel Soto <>
Date: Sun, 12 Nov 2006 23:01:14 -0400
El dom, 12-11-2006 a las 00:16 -0400, Manuel Soto escribiÃ:
> Hello,
>
> I'm very frustrated because a can't cross compile
> qt-embedded-free-3.3.4. I get the following error when
> "qt-embedded-free-3.3.4/src/.moc/release-shared-emb-arm/allmoc.cpp"
> is compiled:
>
> ...
> arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2
> -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_NO_NIS -DQT_NO_FREETYPE
> -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC
> -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP
> -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -DQT_NO_QWS_VFB
> -DQT_NO_QWS_VNC -DQT_NO_QWS_VGA16 -DQT_NO_QWS_TRANSFORMED
> -DQT_NO_QWS_SNAP -DQT_NO_QWS_MACH64 -DQT_NO_QWS_VOODOO3
> -DQT_NO_QWS_MATROX -DQT_NO_QWS_SHADOWFB -DQT_NO_QWS_REPEATER
> -DQT_NO_QWS_KBD_SL5000 -DQT_NO_QWS_KBD_USB -DQT_NO_QWS_KBD_YOPY
> -DQT_NO_QWS_KBD_VR41 -DQT_NO_QWS_MOUSE_BUS -DQT_NO_QWS_MOUSE_LINUXTP
> -DQT_NO_QWS_MOUSE_VR41 -DQT_NO_QWS_MOUSE_YOPY
> -I/home/ts7300/qt-embedded-free-3.3.4/mkspecs/qws/linux-arm-g++ -I.
> -I3rdparty/freetype2/include -I3rdparty/libpng -I3rdparty/zlib
> -I../include -I.moc/release-shared-emb-arm/
> -o .obj/release-shared-emb-arm/allmoc.o .moc/release-shared-emb-arm/allmoc.cpp
> ../include/qstring.h: In member function 'ushort& QChar::unicode()':
> ../include/qstring.h:199: error: cannot bind packed field
> '((QChar*)this)->QChar::ucs' to 'ushort&'
> .....
>
> Steeps:
>
> 1.- expand
> $ tar -xzf qt-embedded-free-3.3.4-src.tar.gz
>
> 2.- host compile
> $ cd qt-embedded-free-3.3.4
> $ ./configure -plugin-gfx-qvfb
> $ make
>
> examples works
>
> 3.- crosscomiple
> $ ./configure -embedded arm -no-ipv6 -no-largefile -no-cups
>
> $ make clean
> $ make
>
> ... compile a lot of files
> ... BANG!!!
>
> I was working with 2 different cross compilers
>
> $ /usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/
> $ /opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/
>
> I've update alternatives to switch each other.
>
> ==============
> update-alternatives \
> --install /usr/bin/arm-linux-gcc \
> arm-linux-gcc \
> /opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc
>  \
> 100 \
> --slave /usr/bin/arm-linux-c++ arm-linux-c
> ++ 
> /opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-c++
>  \
> --slave /usr/bin/arm-linux-g++ arm-linux-g
> ++ 
> /opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-g++
>
> update-alternatives \
> --install /usr/bin/arm-linux-gcc \
> arm-linux-gcc \
> /usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc \
> 150 \
> --slave /usr/bin/arm-linux-c++ arm-linux-c
> ++ 
> /opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-c++
>  \
> --slave /usr/bin/arm-linux-g++ arm-linux-g
> ++ 
> /opt/crosstool/gcc-4.0.1-glibc-2.3.5/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-g++
>
> update-alternatives --auto arm-linux-gcc
> =============
>
> Any help appreciated
>
> Environment:
> Ubuntu 6.10
>
> Linux version 2.6.17-10-generic (gcc version 4.1.2 20060928
> (prerelease) (Ubuntu 4.1.1-13ubuntu5)) #2 SMP Fri Oct 13 18:45:35 UTC
> 2006 (Ubuntu 2.6.17-10.33-generic)
>
> Manuel S
>

Believe or not, the problem occur because update-alternatives has a mix
in 3.3.4 arm-crosscompiler. The correct update-alternative is

ARM=/usr/local/opt/crosstool/arm-linux/\
gcc-3.3.4-glibc-2.3.2/bin/arm-linux

update-alternatives  \
  --install /usr/bin/arm-linux-gcc \
     arm-linux-gcc  $ARM-gcc \
    150 \
    --slave /usr/bin/arm-linux-c++  \
     arm-linux-c++ $ARM-c++  \
    --slave /usr/bin/arm-linux-g++  \
     arm-linux-g++\
   $ARM-g++


I did modify qglobal.h in order to avoid packing, but libstdc++.so.6 was
required in the ts7300. Actually all it's OK using gcc-3.3.4 which use
libstdc++.so.5


Manuel Soto




Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
    
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU