PDA

View Full Version : Configure failure with qt-mobility-opensource-src-1.0.0 on QT4.6.2 on Ubuntu9.04



borton
1st June 2010, 09:56
Dear sirs,
After I set up QT4.6.2 on Ubuntu, I downloaded qt-mobility-opensource-src-1.0.0 and followed the instructions in doc/installation.html, I encountered a failure after running ./configure . The error messages are extracted as follows:
..............
Package conninet was not found in the pkg-config search path.
Perhaps you should add the directory containing `conninet.pc'
to the PKG_CONFIG_PATH environment variable
No package 'conninet' found
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: /android_src/EB306/QT/qt-mobility-opensource-src-1.0.0/qtmobility.pro

I surveyed the suggestions from internet:
export QMAKESPEC =/opt/qtsdk-2010.02/qt/mkspecs
or export QMAKESPEC =/opt/qtsdk-2010.02/qt/mkspecs/arm-linux
But still in vain with same error message.

I've also tried another codebase qt-mobility-src-1.0.0-tp2, but it went to the same result.

Could someone help provide your suggestions or opinions?

If this is not a proper place for this question, please kindly let me know as well.

Thanks a lot!

borton
15th June 2010, 10:37
Here comes the update for this issue.
I found that it's due to my mis-using the cross compiler. I should use the g++ instead of arm-linux-g++. Then "./configure" works well! :)

However, while perfoming "make" , there are so many compiling errors.Ex:
In file included from /usr/include/c++/4.3/list:68,
from /usr/local/Trolltech/Qt-4.6.2/include/QtCore/qlist.h:51,
from /usr/local/Trolltech/Qt-4.6.2/include/QtCore/qobject.h:50,
from /usr/local/Trolltech/Qt-4.6.2/include/QtCore/QObject:1,
from qmediapluginloader_p.h:63,
from qmediapluginloader.cpp:49:
/usr/include/c++/4.3/bits/stl_list.h:116: error: ‘ptrdiff_t’ does not name a type
/usr/include/c++/4.3/bits/stl_list.h:192: error: ‘ptrdiff_t’ does not name a type
/usr/include/c++/4.3/bits/stl_list.h:437: error: ‘ptrdiff_t’ does not name a type
In file included from /usr/local/Trolltech/Qt-4.6.2/include/QtCore/qobject.h:50,
from /usr/local/Trolltech/Qt-4.6.2/include/QtCore/QObject:1,
from qmediapluginloader_p.h:63,
from qmediapluginloader.cpp:49:
/usr/local/Trolltech/Qt-4.6.2/include/QtCore/qlist.h:166: error: ‘ptrdiff_t’ does not name a type
/usr/local/Trolltech/Qt-4.6.2/include/QtCore/qlist.h:213: error: ‘ptrdiff_t’ does not name a type
/usr/local/Trolltech/Qt-4.6.2/include/QtCore/qlist.h:292: error: ‘ptrdiff_t’ does not name a type
In file included from /usr/include/c++/4.3/map:65,
from /usr/local/Trolltech/Qt-4.6.2/include/QtCore/qmap.h:50,
from qmediapluginloader_p.h:65,
from qmediapluginloader.cpp:49:
/usr/include/c++/4.3/bits/stl_tree.h:158: error: ‘ptrdiff_t’ does not name a type
/usr/include/c++/4.3/bits/stl_tree.h:230: error: ‘ptrdiff_t’ does not name a type
/usr/include/c++/4.3/bits/stl_tree.h:339: error: ‘ptrdiff_t’ does not name a type
.................

I'm wondering if it's related to C++/4.3?

If anyone has any idea, please kindly let me know.
Thanks a lot!