[Qt-creator] QSystemInfo Error
dhk
dhkuhl at optonline.net
Thu Aug 19 14:50:02 CEST 2010
On 08/19/2010 08:21 AM, Niels Weber wrote:
> Am Donnerstag, den 19.08.2010, 14:02 +0200 schrieb ext dhk:
>> When I run qmake the Makefile is created and then make has the problem.
>>
>> ~/NokiaQtSDK/Dev/QuickStart $ make
>> g++ -c -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB
>> -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
>> -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
>> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4
>> -I. -I. -o main.o main.cpp
>> main.cpp:5:29: error: QSystemInfo: No such file or directory
>> main.cpp:9: error: expected constructor, destructor, or type conversion
>> before ‘int’
>> make: *** [main.o] Error 1
>
> You are not using the Qt from the Nokia Qt SDK but the Qt that is
> provided by your OS. That Qt doesn't contain Mobility. You need to
> select a different Qt version for your project.
>
> Niels
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
I think you're right about that. I installed a version through Gentoo's
portage, but that wasn't the most recent; it was still a version 1.n.
For the mobile I installed version 2.n manually. So I guess the qmake
picked up on the old environment.
It doesn't look like any of the version 2.n install went in /usr it
looks like it's all in the ~/NokiaQtSDK directory. So I guess it's a
qmake question now. How do I run qmake to look at the local install in
my home directory?
Thanks,
dhk
More information about the Qt-creator-old
mailing list