Active Topics

 


Reply
Thread Tools
rjcooke's Avatar
Posts: 46 | Thanked: 11 times | Joined on Aug 2009 @ MA, USA
#1
I wrote my first QT-based app for Fremantle using scratchbox in an Ubuntu 9.04 VMware image. I've got an app that works in the X86 target with Xephyr and now I want to try it on the phone. In sb I switched targets to ARMEL and tried to make my app but there is no qmake in /usr/bin. If I just try "make" then it complains of the lack of qmake. I've found lots of great information for working within the X86 target (thanks for the great tutorials and articles) but nothing for building for and trying on the actual device.

I also got USB networking set up and I was able to ssh as root over to the device, so that part is done. I just don't know now to build for the ARMEL target. Any help or links would be appreciated.

Thanks.
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#2
There's a copy in libqt4-dev. Have you installed that in the armel target yet?
 

The Following 3 Users Say Thank You to codeMonkey For This Useful Post:
rjcooke's Avatar
Posts: 46 | Thanked: 11 times | Joined on Aug 2009 @ MA, USA
#3
Son of a gun, I really thought I had done that, but I had not. So now when I want to build for ARMEL target, I should delete all the .o files and the executable and then make? That seems to have worked.

But now the USB networking, which was running correctly last night, is no longer working. So I've now got my ARMEL exe but I've got to figure out the USB or some other roundabout way of getting it to the phone. There has to be a better way.
 
rjcooke's Avatar
Posts: 46 | Thanked: 11 times | Joined on Aug 2009 @ MA, USA
#4
Success! Built, copied to opt using scp and executed via ssh on the n900. I've been writing software for over 20 years for Windows (not to mention DOS, TI99/4a and C64) and I just want to write some apps for my phone. This phone. With the mechanics down I can concentrate on learning Qt and actually writing software. Of course, I will eventually have to figure out .deb packaging, but I'm going to put that off for another day.

How I would love an IDE like Delphi for Maemo.
 
Posts: 12 | Thanked: 7 times | Joined on Sep 2009 @ Finland
#5
Originally Posted by rjcooke View Post
. So now when I want to build for ARMEL target, I should delete all the .o files and the executable and then make?
I think you sometimes need to run qmake when switching target. I run these commands usually when switching:
make clean
qmake
make

Originally Posted by rjcooke View Post
But now the USB networking, which was running correctly last night, is no longer working. So I've now got my ARMEL exe but I've got to figure out the USB or some other roundabout way of getting it to the phone. There has to be a better way.
If I understood this correctly you are looking for a better way to transfer files between your phone and PC. You can do it over network. Take a look at openSSH (you need to install the server on your device).

Public key based ssh is really effortless (and secure), take a look at this good post:
http://talk.maemo.org/showthread.php?t=41547

If you are running windows take a look at this:
http://talk.maemo.org/showthread.php?t=41422

if you are running linux, you could use e.g. filezilla to drag and drop files or even mount your device to the file system using sshfs.. There are probably good tutorials here for these things so the search function is your friend
 

The Following User Says Thank You to Talvis For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 16:01.