Trolltech Home | Qtopia-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qtopia-interest Archive, March 2007
[repost] problems compiling qtopia core for arm-architecture


Message 1 in thread

Hi all,

I found this in the archive posted by Andreas Sumper. I think i came across the same issue.
In the web archive i found no answers to his question. I repost this in the hope that someone can
shed some light on this.

--------- original post ------------

Hi list!

I am trying to compile qtopia core for running on an embedded arm 
architecture. but whenever I try to compile, i get the following error:

make[3]: Entering directory 
`/home/sumpi/Software/qtopia-core-opensource-src-4.1.1_NEW/src/corelib'
/opt/ptxdist-0.10.2/gcc-4.0.2-glibc-2.3.6/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-g++ 
-x c++-header -c -pipe -fno-exceptions -g -fvisibility=hidden 
-fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC  -DQT_SHARED 
-DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT 
-I../../mkspecs/qws/linux-arm-g++ -I. -I../../include 
-I../../include/QtCore -Iglobal -I../3rdparty/zlib 
-I.moc/debug-shared-emb-arm -I. global/qt_pch.h -o 
.obj/debug-shared-emb-arm/QtCore_debug.gch/c++
../../include/QtCore/../../src/corelib/tools/qchar.h: In member function 
'ushort& QChar::unicode()':
../../include/QtCore/../../src/corelib/tools/qchar.h:222: error: cannot 
bind packed field '((QChar*)this)->QChar::ucs' to 'ushort&'
make[3]: *** [.obj/debug-shared-emb-arm/QtCore_debug.gch/c++] Fehler 1
make[3]: Leaving directory 
`/home/sumpi/Software/qtopia-core-opensource-src-4.1.1_NEW/src/corelib'
make[2]: *** [debug-all] Fehler 2
make[2]: Leaving directory 
`/home/sumpi/Software/qtopia-core-opensource-src-4.1.1_NEW/src/corelib'
make[1]: *** [sub-corelib-make_default-ordered] Fehler 2
make[1]: Leaving directory 
`/home/sumpi/Software/qtopia-core-opensource-src-4.1.1_NEW/src'
make: *** [sub-src-make_default-ordered] Fehler 2

Has anybody any hints for solving this problem or at least a link to some 
documentation?

thanks in advance!
Andy

--------- original post end ------------


Best regards,


Andre


--
 [ signature omitted ] 

Message 2 in thread

Andre Haupt wrote:
> Hi all,
>
> I found this in the archive posted by Andreas Sumper. I think i came 
> across the same issue.
> In the web archive i found no answers to his question. I repost this 
> in the hope that someone can
> shed some light on this.
>
> --------- original post ------------
>
> Hi list!
>
> I am trying to compile qtopia core for running on an embedded arm 
> architecture. but whenever I try to compile, i get the following error:
>
> make[3]: Entering directory 
> `/home/sumpi/Software/qtopia-core-opensource-src-4.1.1_NEW/src/corelib'
> /opt/ptxdist-0.10.2/gcc-4.0.2-glibc-2.3.6/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-g++ 
> -x c++-header -c -pipe -fno-exceptions -g -fvisibility=hidden 
> -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC  -DQT_SHARED 
> -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT 
> -DQT_MOC_COMPAT -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include 
> -I../../include/QtCore -Iglobal -I../3rdparty/zlib 
> -I.moc/debug-shared-emb-arm -I. global/qt_pch.h -o 
> .obj/debug-shared-emb-arm/QtCore_debug.gch/c++
> ../../include/QtCore/../../src/corelib/tools/qchar.h: In member 
> function 'ushort& QChar::unicode()':
> ../../include/QtCore/../../src/corelib/tools/qchar.h:222: error: 
> cannot bind packed field '((QChar*)this)->QChar::ucs' to 'ushort&'
> make[3]: *** [.obj/debug-shared-emb-arm/QtCore_debug.gch/c++] Fehler 1
> make[3]: Leaving directory 
> `/home/sumpi/Software/qtopia-core-opensource-src-4.1.1_NEW/src/corelib'
> make[2]: *** [debug-all] Fehler 2
> make[2]: Leaving directory 
> `/home/sumpi/Software/qtopia-core-opensource-src-4.1.1_NEW/src/corelib'
> make[1]: *** [sub-corelib-make_default-ordered] Fehler 2
> make[1]: Leaving directory 
> `/home/sumpi/Software/qtopia-core-opensource-src-4.1.1_NEW/src'
> make: *** [sub-src-make_default-ordered] Fehler 2
>
> Has anybody any hints for solving this problem or at least a link to 
> some documentation?
>
Seems to have something to do with Q_PACKED. I disabled it in qglobal.h 
and now it seems to compile.
BTW, compiler version is arm-xscale-linux-gnu-g++ v4.0.2.
Does this ring a bell?

Best,

Andre

--
 [ signature omitted ]