Posts: 53 | Thanked: 51 times | Joined on Feb 2010
#1
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.
 
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#2
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:
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 ....
 
Posts: 53 | Thanked: 51 times | Joined on Feb 2010
#3
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!!
 
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#4
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.
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#5
Originally Posted by TheAccountant View Post
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
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 05:14.