![]() |
QtCreator with QEMU? Scratchbox?
Ive got scratchbox/maemo sdk installed and configured.
Currently im using QtCreator with my n900 to compile/player, but its slow to transfer/compile/run and its getting annoyed having to plugin the n900 everytime I want to test some stuff. How can I setup QtCreator to use scratchbox/xephyr to build/run or QEMU or something? I cant really find anything on it, well if I am finding things on it im not sure if I should be using scratchbox or not etc. |
Re: QtCreator with QEMU? Scratchbox?
|
Re: QtCreator with QEMU? Scratchbox?
When I
Code:
/usr/bin/scratchbox -d $PWD make $@ |
Re: QtCreator with QEMU? Scratchbox?
Quote:
|
Re: QtCreator with QEMU? Scratchbox?
I recommend doing it according to theoriginalgri's comments on the blog post linked:
Quote:
|
Re: QtCreator with QEMU? Scratchbox?
After installing qtcreator in scratchbox, I DISPLAY=:0 /home/user/qtcreator-2.1.81 and I just get /home/user/qtcreator-2.1.81/: is a directory
if I export DISPLAY=:0 /home/user/qtcreator-2.1.81 I get "export: `/home/user/qtcreator-2.1.81/': not a valid identifier EDIT:: Nevermind, didnt give it the path to the actual qtcreator binary. If I run it like that, I assume I have Xephyr running and it runs qtcreator in the xephyr window? If I do that, the qt window is really small, making the xephyr window bigger just leaves blank space around the small qtcreator. I also cant find where to edit the start command, nor do I see how I would have qtcreator run the program under :2 Figured out how to resize the qt window. Now its just getting the programs to run. If I build/run in qtcreator in scratchbox, it just brings up a big blank box above everything in the xephyr window. EDIT:: While im here, anyone know why in qtcreator the GUI I make, once running on the n900, is all shrunken? The buttons arent the right size, the labels are cut off, basically all the controls are "off". EDIT:: K, got Qt working in scratchbox. Now theres just the weird GUI problem. EDIT:: This is what I mean: http://img69.imageshack.us/img69/897...0411102132.png Everything is fine if I run it without run-standalone.sh (though not styled), but when its running with run-standalone.sh, it ends up like that. |
Re: QtCreator with QEMU? Scratchbox?
Set the Main form's size to 800x424(480-56: the fremantle master layout guide states the top bar is 56px tall) and try to use Qt's layout managers and the controls will size themselves based on the layouts. The layout buttons are on the top toolbar above the designer window. You can also right click on any widget in the tree on the right and apply a layout.
|
Re: QtCreator with QEMU? Scratchbox?
Thanks, that did it.
|
Re: QtCreator with QEMU? Scratchbox?
Use: run-standalone.sh appbinary
To execute your program. |
Re: QtCreator with QEMU? Scratchbox?
http://talk.maemo.org/showpost.php?p...&postcount=125
Dont supposed anyone would know whats wrong with the deb @first post? Took it from the build folder, installed it but nothing happens when I click the application icon and the path doesnt seem to exist. EDIT:: Fixed |
All times are GMT. The time now is 04:16. |
vBulletin® Version 3.8.8