View Full Version : Can't find qmake in ARMEL target
rjcooke
03-01-2010, 12:04 AM
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.
codeMonkey
03-01-2010, 01:10 AM
There's a copy in libqt4-dev. Have you installed that in the armel target yet?
rjcooke
03-01-2010, 09:44 AM
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
03-01-2010, 11:10 AM
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.
Talvis
03-01-2010, 11:13 AM
. 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
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 :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.