maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   How to build qt-maemo-example (https://talk.maemo.org/showthread.php?t=60709)

DeargDoom 2010-08-19 23:51

How to build qt-maemo-example
 
I realise this is something I should be able to figure out on my own but I am pretty stumped on how to properly build the qt-maemo-example.

I am trying to build it using Qt Creator on Windows. I open the main project file, leave all the project settings as they are and build the application.

What I get is a .deb file which contains the executable but is missing the icons and desktop files.

The 3 default build steps in Qt Creator are:

1) qmake.exe <dir location>/qt-maemo-example.pro -r -spec default -unix CONFIG+=debug
2) make.exe -w
3) Create Package

Am I going about this in completely the wrong way?

danielwilms 2010-08-20 07:22

Re: How to build qt-maemo-example
 
Quote:

Originally Posted by DeargDoom (Post 792518)
I realise this is something I should be able to figure out on my own but I am pretty stumped on how to properly build the qt-maemo-example.

Which qt-maemo-example do you mean? The one out of extras-devel?

Daniel

DeargDoom 2010-08-20 07:42

Re: How to build qt-maemo-example
 
Quote:

Originally Posted by danielwilms (Post 792727)
Which qt-maemo-example do you mean? The one out of extras-devel?

Daniel

Yes, thats the one.

DeargDoom 2010-08-22 17:35

Re: How to build qt-maemo-example
 
Any pointers as to where Im going wrong here would still be greatly appreciated.

Do other people also use Qt Creator to package their applications or is this not the best practice. I have tried using the dpkg-buildpackage command in MADDE without success also. Knowing what build environment is considered the "correct" one would be very helpful also.

danielwilms 2010-08-23 10:45

Re: How to build qt-maemo-example
 
Hi,

the packaging options in QtCreator are a bit limited at the moment. Your problem seems to be related to this bug. I tried it with the madde command-line tools on linux and it worked as expected. Unpack the tarball and run in the directory:

Code:

mad dpkg-buildpackage -us -uc
Let me know if you have further questions.

Daniel

DeargDoom 2010-08-24 01:34

Re: How to build qt-maemo-example
 
Quote:

Originally Posted by danielwilms (Post 795671)
Hi,

the packaging options in QtCreator are a bit limited at the moment. Your problem seems to be related to this bug. I tried it with the madde command-line tools on linux and it worked as expected. Unpack the tarball and run in the directory:

Code:

mad dpkg-buildpackage -us -uc
Let me know if you have further questions.

Daniel

Thanks a lot for your suggestion. I really needed someone to tell me to stop using QtCreator.

I have the example building now but I am using the madde command line in Windows and the package cannot be built using your instructions. The qmake command which is called from the above instructions creates a Makefile in the main and src directories which hard codes a PREFIX variable to the installation directory of madde, ie

Code:

$(QMAKE) -unix PREFIX=D:/MADDE/0.6.72 -o Makefile ../../src/src.pro
Since this same variable is used for different purposes in the src.pro file the packaging does not work. Manually changing the Makefiles or changing the src.pro file both resolve the issue.

Im not sure whether the correct solution is to
a) not use Windows
b) change the qt-maemo-example
c) somehow change the behaviour of qmake in this enviroment

rontti 2010-08-25 09:40

Re: How to build qt-maemo-example
 
I build qt-maemo-example package by using MADDE 0.7.23 in Windows 7 64bit environment. All went just fine.

DeargDoom 2010-08-25 09:51

Re: How to build qt-maemo-example
 
Quote:

Originally Posted by rontti (Post 797693)
I build qt-maemo-example package by using MADDE 0.7.23 in Windows 7 64bit environment. All went just fine.

I will update my version of MADDE and will try and confirm that this behaviour only exists with 0.6.72.

rontti 2010-08-25 11:45

Re: How to build qt-maemo-example
 
I tried it also with MADDE 0.6.72. No problems here.


All times are GMT. The time now is 00:39.

vBulletin® Version 3.8.8