Primary tabs

Comments by User

Wednesday, January 4, 2012 - 04:23

Did that and was finally able to compile and run the demo/engine whatever.

I will probably put up the findings on the wiki.Especially the bit about setting the build environment and removing the Makefile and .pro.user files. Perhaps there could be a small script be written for it.

Btw there were compile/build issues both with qrpgedit and qrpgengine. If you want I can put them here or can send an e-mail with whatever warnings that appeared during the make processors.  

 

Wednesday, January 4, 2012 - 03:20

Yes, I have qtcreator from my distribution .See :-

$ aptitude search qtcreator
i   qtcreator                                           - lightweight integrated development environment (IDE) for Qt 
p   qtcreator-dbg                                       - debugging symbols for Qt Creator IDE                        
i   qtcreator-doc                                       - documentation for Qt Creator IDE                            
13:08:39 shirish@deb-home: ~$ aptitude show qtcreator
Package: qtcreator                      
State: installed
Automatically installed: no
Version: 2.2.1-1
Priority: optional
Section: devel
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Uncompressed Size: 42.5 M
Depends: libqt4-help (>= 4:4.7.1), libqt4-sql-sqlite, libc6 (>= 2.2.5), libgcc1 (>= 1:4.1.1), libqt4-declarative (>=
         4:4.7.1), libqt4-designer (>= 4:4.7.1), libqt4-network (>= 4:4.7.1), libqt4-script (>= 4:4.7.1), libqt4-sql
         (>= 4:4.7.1), libqt4-svg (>= 4:4.7.1), libqt4-xml (>= 4:4.7.1), libqtcore4 (>= 4:4.7.1), libqtgui4 (>=
         4:4.7.1), libqtwebkit4, libstdc++6 (>= 4.4.0)
Recommends: gdb, make, qt4-demos, qt4-dev-tools, qt4-doc, qtcreator-doc, xterm | x-terminal-emulator
Suggests: cmake, git-core, kdelibs5-data, subversion
Description: lightweight integrated development environment (IDE) for Qt
 Qt Creator is a new, lightweight, cross-platform integrated development environment (IDE) designed to make development
 with the Qt application framework even faster and easier.
 
 It includes:
 * An advanced C++ code editor
 * Integrated GUI layout and forms designer
 * Project and build management tools
 * Integrated, context-sensitive help system
 * Visual debugger
 * Rapid code navigation tools
 * Supports multiple platforms
Homepage: http://www.qtsoftware.com/developer/qt-creator

Tags: devel::debugger, devel::ide, implemented-in::c++, interface::x11, role::program, uitoolkit::qt, x11::application

$ apt-show-versions -a qtcreator
qtcreator 2.2.1-1 install ok installed
qtcreator 1.3.1-3 stable       ftp.au.debian.org
qtcreator 1.3.1-3 testing      ftp.au.debian.org
qtcreator 2.2.1-1 unstable     ftp.au.debian.org
qtcreator 2.4.0-1 experimental ftp.au.debian.org
qtcreator/unstable uptodate 2.2.1-1

I do know that there is a command such as :-

setenv QMAKESPEC=/usr/share/qt4/mkspecs/linux-g++ OR

export QMAKESPEC=/usr/share/qt4/mkspecs/linux-g++

but IIRC it sets the environment only for this instance. This should be permanent.

 

Wednesday, January 4, 2012 - 01:52

Did the above and I still get the same error as before :-

Running build steps for project qrpgedit...

Starting: "/usr/bin/qmake-qt4" /home/shirish/games/orange-engine/qrpgedit/qrpgedit.pro -r CONFIG+=debug -spec /usr/lib64/qt4/mkspecs/linux-g++

Failure to read QMAKESPEC conf file /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf.

Error processing project file: /home/shirish/games/orange-engine/qrpgedit/qrpgedit.pro

The process "/usr/bin/qmake-qt4" exited with code 3.

Error while building project qrpgedit (target: Desktop)

When executing build step 'qmake'

One of the things I forgot to share was there are quite a few directories in /usr/share/qt4/mkspecs/ and all of them have qmake.conf.

cd /usr/share/qt4/mkspecs/linux-
linux-cxx/       linux-g++-32/    linux-icc/       linux-kcc/       linux-pgcc/     
linux-ecc-64/    linux-g++-64/    linux-icc-32/    linux-llvm/     
linux-g++/       linux-g++-maemo/ linux-icc-64/    linux-lsb-g++/  

Seems the only option is perhaps a clean checkout, lemme know if that would help ?

Wednesday, January 4, 2012 - 01:43

there is/are pro.user both in qrpgedit and qrpgengine.

~/games/orange-engine/qrpgengine$ ls qrpgengine.
qrpgengine.cpp               qrpgengine.pro               qrpgengine.pro.user.2.1pre1 
qrpgengine.o                 qrpgengine.pro.user         

$ ls qrpgedit.pro
qrpgedit.pro               qrpgedit.pro.user          qrpgedit.pro.user.2.1pre1 

removed both the pro.user* files. 

Wednesday, January 4, 2012 - 01:42

Well, what to say, if I do reset --hard then both the projects have 'Makefile' as well as .pro. user.2.1pre1 files which I had deleted come back :(

If you feel it may help I'm willing to do a clean checkout to see if this problem goes away.

 

 

Tuesday, January 3, 2012 - 23:43

Also didn't know that Makefiles are not just in the folders/directories qrpgedit and qrpgengine but ALSO qrpgedit-build-desktop and qrpgengine-build-desktop as well.

One more question, how do I switch to master branch ?

 

Tuesday, January 3, 2012 - 23:38

I removed the 'Makefile' from qrpgedit and got the same issue as before. Couldn't you edit the qrpgedit.pro so it finds correct library paths.

This is what it says when I try to run it again :-

Running build steps for project qrpgedit...

Starting: "/usr/bin/qmake-qt4" /home/shirish/games/orange-engine/qrpgedit/qrpgedit.pro -r CONFIG+=debug -spec /usr/lib64/qt4/mkspecs/linux-g++

Failure to read QMAKESPEC conf file /usr/lib64/qt4/mkspecs/linux-g++/qmake.conf.

Error processing project file: /home/shirish/games/orange-engine/qrpgedit/qrpgedit.pro

The process "/usr/bin/qmake-qt4" exited with code 3.

Error while building project qrpgedit (target: Desktop)

When executing build step 'qmake'

I dunno about other distributions but in debian especially on 64-bit distro you have two library paths, /lib and /lib32 . Also the qmakespec conf file which it wants to have is in

/usr/share/qt4/mkspecs/linux-g++$ ls
qmake.conf  qplatformdefs.h

There is possibility that ubuntu guys also might be following the same pattern (although dunno).

It would be nice to know if I'm correct or incorrect in my assesment .

Tuesday, January 3, 2012 - 22:07

bart,

I did as adviced. First, I  opened both the projects and said clean all.Clean all is the fourth option in the Build Menu.

Now when I tried (again)  to build the projects individually, with qrpgedit I again got the dreaded message, I guess I first to have to build them using qmake (within qtcreator) and then do it.

Running build steps for project qrpgedit...

Configuration unchanged, skipping qmake step.

Starting: "/usr/bin/make" -w

make: Entering directory `/home/shirish/games/orange-engine/qrpgedit-build-desktop'

make: *** No rule to make target `/usr/lib64/qt4/mkspecs/linux-g++/qmake.conf', needed by `Makefile'. Stop.

make: Leaving directory `/home/shirish/games/orange-engine/qrpgedit-build-desktop'

The process "/usr/bin/make" exited with code 2.

Error while building project qrpgedit (target: Desktop)

When executing build step 'Make'

This is the console output from QTCreator.

When I right-click on either of the projects a menu appears . It goes something like this :-

a. Set as startup project

b. Build project 'qrpgedit'

c. Rebuild project 'qrpedit'

d. Deploy project 'qrpgedit' (understandably it is greyed out)

e. Clean project 'qrpgedit'

f. Run qmake

Also is there any sequence in which both of these have to be done, maybe qrpgengine the first and then qrpgedit or anyway is good ?

Looking forward for answers.

 

Tuesday, January 3, 2012 - 18:39

something which explains more than simutrains paksets page does or attempts . http://simutrans.com/paksets.htm

Tuesday, January 3, 2012 - 13:05

then please do it so at least I can ask my queries for it there.

Pages