maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Qt and Scratchbox (https://talk.maemo.org/showthread.php?t=56172)

TheAccountant 2010-06-14 14:18

Qt and Scratchbox
 
Hi.

Just thought id create a seperate thread on this.

I am currently writing my complete guide to development for this fourm, but am currently stuck on Qt and Scratchbox. For example, I can compile on X86 using qmake -project, qmake and then make which is fine.

But is there anyway to use the Qt Creator to compile and then simply run on/in Scratchbox?

Thanks.

gri 2010-06-14 19:17

Re: Qt and Scratchbox
 
You can install QtCreator inside Scratchbox.

To start QtCreator on your main screen instead of the Xephyr running your SDK, you have prefix the DISPLAY environment variable to 0.

For example:
Quote:

DISPLAY=:0 /path/to/qtcreator/qtcreator
QtCreator runs completely in scratchbox. When you start your application with it, first go to your "Projects" tab on the left and look for the environment to start it. Change the "DISPLAY" there to ":2".

PS: I have the issue that QtCreator (and even the installer) don't show a cursor for me when running it like that. But I've never received a solution for that by anyone ....

TheAccountant 2010-06-14 21:54

Re: Qt and Scratchbox
 
Thanks for the reply. Problem is Scratchbox seems to run slow... kinda like my N900. Qt Creator would be soo slow. For example when you click menu its takes about a second or two before it displays. I have tried to change the acceleration mode but to no joy.

Surely there is a way for Qt to compile to X86 and ARM. If i cant get it working, il just have to go with MADDE for my guide.

Very frustrating!!

gri 2010-06-15 05:12

Re: Qt and Scratchbox
 
Only your Maemo Ui in Xephyr is slow! Xephyr is not hardware accelerated. If you run your QtCreator inside scratchbox and tell it to show up on DISPLAY :0, it will run at the same speed as your normal QtCreator on your distro. Scratchbox is not an emulator, so there's no reason it should be slower except in graphics due Xephyr.

danielwilms 2010-06-15 07:40

Re: Qt and Scratchbox
 
Quote:

Originally Posted by TheAccountant (Post 715250)
Surely there is a way for Qt to compile to X86 and ARM. If i cant get it working, il just have to go with MADDE for my guide.

Very frustrating!!

Sorry, maybe I've overseen a thread. But what is your problem with MADDE? The latest technical preview includes the qemu emulator, so that you can run your N900 applications as well your desktop with it. I think if you are developing in Qt the Nokia Qt SDK including MADDE should be your choice.

Daniel


All times are GMT. The time now is 04:54.

vBulletin® Version 3.8.8