Qtopia-interest Archive, April 2007
Problems of cross-compiling Qtopia Core 4.3 for ARM
Message 1 in thread
Hello,
first, thank you for reading my mail.
i cross-compiled qtopia core opesource 4.3.0beta for my PXA270, my cross-compiler is 'armv4l-unknown-linux', i have no idea whether the problems relate to my compiler.
when it compiled the file src/corelib/kernel/qvariant.cpp some warnings occured, following is the compiling message:
armv4l-unknown-linux-g++ -c -pipe -fno-exceptions -O2 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -I../../include -I../../include/QtCore -Iglobal -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -o .obj/release-shared-emb-arm/qvariant.o kernel/qvariant.cpp
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h: In function `const class QString * v_cast<QString>(const QVariant::Private *, QString * = 0)':
kernel/qvariant.cpp:273: instantiated from here
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h:59: static_cast from `void *' to `const QString *'
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h:59: warning: control reaches end of non-void function `v_cast<QString>(const QVariant::Private *, QString *)'
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h: In function `const class QChar * v_cast<QChar>(const QVariant::Private *, QChar * = 0)':
kernel/qvariant.cpp:275: instantiated from here
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h:59: static_cast from `void *' to `const QChar *'
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h:59: warning: control reaches end of non-void function `v_cast<QChar>(const QVariant::Private *, QChar *)'
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h: In function `const class QDate * v_cast<QDate>(const QVariant::Private *, QDate * = 0)':
kernel/qvariant.cpp:277: instantiated from here
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h:59: static_cast from `void *' to `const QDate *'
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h:59: warning: control reaches end of non-void function `v_cast<QDate>(const QVariant::Private *, QDate *)'
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h: In function `const class QTime * v_cast<QTime>(const QVariant::Private *, QTime * = 0)':
kernel/qvariant.cpp:279: instantiated from here
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h:59: static_cast from `void *' to `const QTime *'
../../include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h:59: warning: control reaches end of non-void function `v_cast<QTime>(const QVariant::Private *, QTime *)'
.......
.......
(some other similar warnings, no error upon)
and then:
make[1]: *** [.obj/release-shared-emb-arm/qvariant.o] Error 1
make[1]: Leaving directory `/root/qt/qtopia-core-opensource-src-4.3.0beta/src/corelib'
make: *** [sub-corelib-make_default-ordered] Error 2
the compiling process terminated!
please help me, and tell me what's wrong.
thank in advance.....
Regards,
duwchy
duwchy
2007-04-22