[Gta04-owner] Building QtMoko v45

Sven Dyroff S.Dyroff at phytec.de
Mon Jul 9 11:51:10 CEST 2012


Hello Radek and Neil,

if I do "../qtmoko/configure -force-build-qt -device gta04" it builds some 
qt things, but then fails with XLib:


Basic XLib functionality test failed!
 You might need to modify the include and library search paths by editing
 QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in 
/home/sven/qtmoko/qtopiacore/qt/mkspecs/linux-g++.
configure exited with value 1 at /home/sven/qtmoko/src/build/bin/configure 
line 4909
        main::bootstrap_qt() called at 
/home/sven/qtmoko/src/build/bin/configure line 1759
make: *** [src/build/mkconf/configure] Fehler 1


So it seems that it doesn't follow dependencies. So I did "apt-get install 
libqt4-dev". Then I tried the "../qtmoko/configure -system-qt -device neo" 
from the README again, but again it failed. So I tried the 
"../qtmoko/configure -force-build-qt -device gta04" again and this time it 
did lots of work. Unfortunately in the end even this didn't succeed. After 
tons of outputs it failed with:


cd src/ && /usr/bin/make -f Makefile 
/home/sven/build/qtopiacore/host/bin/qmake 
QMAKE_ABSOLUTE_SOURCE_PATH=/home/sven/qtmoko/qtopiacore/qt/tools/porting/src 
-spec /home/sven/qtmoko/qtopiacore/qt/mkspecs/linux-g++ -unix -o Makefile 
/home/sven/qtmoko/qtopiacore/qt/tools/porting/src/src.pro
g++ -c -pipe -fno-exceptions -g -Wall -W -D_REENTRANT 
-DQT_NO_CAST_TO_ASCII -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE 
-DQT_XML_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/home/sven/qtmoko/qtopiacore/qt/mkspecs/linux-g++ 
-I/home/sven/qtmoko/qtopiacore/qt/tools/porting/src 
-I../../../include/QtCore -I../../../include/QtXml -I../../../include 
-I.moc/debug-shared -I. -o .obj/debug-shared/projectporter.o 
/home/sven/qtmoko/qtopiacore/qt/tools/porting/src/projectporter.cpp
In file included from 
/home/sven/qtmoko/qtopiacore/qt/tools/porting/src/translationunit.h:48:0,
                 from 
/home/sven/qtmoko/qtopiacore/qt/tools/porting/src/projectporter.cpp:47:
/home/sven/qtmoko/qtopiacore/qt/tools/porting/src/codemodel.h: In 
instantiation of ‘void 
CodeModel::Collection<CollectedType>::add(CollectedType*) [with 
CollectedType = CodeModel::Type]’:
/home/sven/qtmoko/qtopiacore/qt/tools/porting/src/codemodel.h:296:36: 
required from here
/home/sven/qtmoko/qtopiacore/qt/tools/porting/src/codemodel.h:99:7: error: 
‘insert’ was not declared in this scope, and no declarations were found by 
argument-dependent lookup at the point of instantiation [-fpermissive]
/home/sven/qtmoko/qtopiacore/qt/tools/porting/src/codemodel.h:99:7: note: 
declarations in dependent base ‘QMultiHash<QByteArray, CodeModel::Type*>’ 
are not found by unqualified lookup
/home/sven/qtmoko/qtopiacore/qt/tools/porting/src/codemodel.h:99:7: note: 
use ‘this->insert’ instead
make[4]: *** [.obj/debug-shared/projectporter.o] Fehler 1
make[3]: *** [sub-src-make_default] Fehler 2
make[2]: *** [sub-porting-make_default-ordered] Fehler 2
make[1]: *** [sub-tools-make_default-ordered] Fehler 2
There was an error building Qt. configure cannot continue.
If your system's package manager does not provide Qt 4 development 
libraries
please see the Guide to Configuring and Building Qt Extended for 
information
on how to build Qt from the included source.
make: *** [src/build/mkconf/configure] Fehler 2


Question aside: Why does "configure" do compiles and even so much? Isn't 
this the task of "make"?


So I wonder what still is wrong.Whereat I don't understand the hint "Also, 
please make sure you have a tracking branch for 'master_gta04'". What 
should I do? I tried to do your suggested "git checkout master_gta04" 
within directory "qtmoko" and got the messages:


root at VM-debian-wheezy:/home/sven# cd qtmoko/
root at VM-debian-wheezy:/home/sven/qtmoko# git checkout master_gta04
M       src/3rdparty/applications/nerongps
Branch master_gta04 set up to track remote branch master_gta04 from 
origin.
Switched to a new branch 'master_gta04'


Then I erased the "build"-directory with the stuff from the previous build 
and tried "../qtmoko/configure -force-build-qt -device gta04" once more, 
unfortunately with the same result as being documentated above.

Please tell me what still is wrong with the "configure", so that I can 
really try to build with "make".

Besides: Am I right that within the README it's a typo to say "-device 
neo" and that it should be "-device gta04"? I'm not quite sure, but I 
belief to remember that someone other also already mentioned this within 
this list.

Best regards,
   Sven
 



Von:    Radek Polak <psonek2 at seznam.cz>
An:     List for communicating with real GTA04 owners 
<gta04-owner at goldelico.com>
Datum:  06.07.2012 14:33
Betreff:        Re: [Gta04-owner] Building QtMoko v45
Gesendet von:   gta04-owner-bounces at goldelico.com


On Friday, July 06, 2012 10:40:17 AM Sven Dyroff wrote:

> Testing the system Qt: FAIL
> Qt Extended requires Qt 4.3 or higher to be installed.
> You must have qmake in your PATH.
> If your system's package manager does not provide Qt 4 development
> libraries
> please see the Guide to Configuring and Building Qt Extended for
> information
> on how to build Qt from the included source.

Do you have Qt installed on your host? Something like this should do it:

apt-get install libqt4-dev

our you can try -force-build-qt arg:

../qtmoko/configure -force-build-qt -device gta04

Regards

Radek
_______________________________________________
Gta04-owner mailing list
Gta04-owner at goldelico.com
http://lists.goldelico.com/mailman/listinfo/gta04-owner


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20120709/5a37e90e/attachment-0001.html>


More information about the Gta04-owner mailing list