Reply
Thread Tools
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#1
Hey all ... well until last night everything was working fine .. My Qt Creator was able to communicate with my N900, and I was able to run my apps on my N900 .. But then last night I installed some apps on my N900, and now my main computer can no longer ping my N900 (but other computers on my network can!), and my N900 cannot ping any computer on my network except for the router ... Right now I'm uninstalling everything I installed last night in the hope that this fixes my issue ..

But until then I was thinking of using the Qt Maemo simulator for testing my apps .. Right now I see the Qt Simulator target option, but when I select it and run my project, nothing shows up on the virtual N900 screen .. !?! Any clues on what is causing this ?

I think I have to setup the Qt Simulator is the list of Maemo Devices, which I dont know how to .. Any guides on this ?
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#2
Qt Creator:

1. Select Projects (tab on left of the Qt Creator).
2. Press + and add Qt Simulator target.
3. Select Qt Simulator target from left if not selected.
4. Press run.
 
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#3
^^ I am doing this but thats what I mean ... When the simulator fires up it does not show my program running .. it just has a blank screen when 'Simulator' written right at the top ..
 
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#4
Originally Posted by ahmadka View Post
^^ I am doing this but thats what I mean ... When the simulator fires up it does not show my program running .. it just has a blank screen when 'Simulator' written right at the top ..
The simulator is buggy, I had it lockup my computer several times,
when the actual app runs perfect on the N900.
Also if you have dbus or something similar that only runs on linux,
it won't run on the simulator.
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |
 
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#5
I dont think I'm running anything complex .. Even if I create a new blank project with nothing in it and then run that on this emulator, still nothing shows up ... im sure there's some configuration error ..
 
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#6
Originally Posted by ahmadka View Post
I dont think I'm running anything complex .. Even if I create a new blank project with nothing in it and then run that on this emulator, still nothing shows up ... im sure there's some configuration error ..
Ok, I am not expert when it comes to the simulator so it's hard for me to tell you exactly where to check, but in order to just fix the situation:

1. Uninstall everything (Nokia Qt SDK that is)
2. Download the latest release if you don't have it
3. Install to default location "c:\nokiaqtsdk", and make sure you select the proper stuff on the installation.
4. Create mobile application project and tests again, should work.

What OS are you using?
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |
 
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#7
Originally Posted by eitama View Post
Ok, I am not expert when it comes to the simulator so it's hard for me to tell you exactly where to check, but in order to just fix the situation:

1. Uninstall everything (Nokia Qt SDK that is)
2. Download the latest release if you don't have it
3. Install to default location "c:\nokiaqtsdk", and make sure you select the proper stuff on the installation.
4. Create mobile application project and tests again, should work.

What OS are you using?
Ok based on what you just said, I figured out what the problem was .. The project I was trying to run on the Qt Simulator was of 'Qt Gui Application' type, while the application you mentioned that I use is 'Mobile Qt Application' .. I just created a new dummy Qt Mobile Project and ran that and it runs on the Qt Simulator ...

Can I convert my existing project to a 'Mobile Qt Application' type as well ?
 
eitama's Avatar
Posts: 702 | Thanked: 334 times | Joined on Feb 2010 @ Israel.
#8
Originally Posted by ahmadka View Post
Ok based on what you just said, I figured out what the problem was .. The project I was trying to run on the Qt Simulator was of 'Qt Gui Application' type, while the application you mentioned that I use is 'Mobile Qt Application' .. I just created a new dummy Qt Mobile Project and ran that and it runs on the Qt Simulator ...

Can I convert my existing project to a 'Mobile Qt Application' type as well ?
Haha, 1st I am happy I was able to help.

Well, again, I am not very deep into Qt yet to tell you the differences between desktop and mobile.
You should :
1. Create a new "Qt GUI Application" - leave it empty, save it and close it.
2. Create a new "Mobile Application" - save it and close it.
3. Close Qt Creator.
4. Using your favorite text editor, (if windows, I suggest PSPad or Notepad++), check for differences in the qtmain.cpp file, project.pro file and mainwindow.cpp/h files. Try to find what makes it "Mobile" and make the proper adaptations.
5. Also you could just copy what you have written so far to a new project.
__________________
| Developer of Horizontal-Call - Call your contacts, fast! |
| Reverse SSH - access your N900 from anywhere, anytime |
| Using Samsung Galaxy S GT-i9000 and Nokia N900 |
| DonateMe - If you feel I helped you in a very good way, feel free to donate |
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:55.