Reply
Thread Tools
Posts: 7 | Thanked: 1 time | Joined on Mar 2010
#1
Hi all,

I completely new to maemo development (just started reading up on it last night) but it seems the best way to go is using MADDE and QtCreator.

Looking at the MADDE wiki there are guides for integrating MADDE with QtCreator on Windows and Mac OS, but not for linux.

Currently I'm running Ubuntu karmic x64 and so I'm looking for a set-up in this environment. I do have Windows 7 lying around but would rather not set up a windows VM/ dual boot for this.

So is it possible to use MADDE with QtCreator in Linux?

Apologies is this is a daft question., but I've had a look around and from what I've read most MADDE questions/answers/guides seem to deal with windows.

Thanks
 
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#2
I don't know if it's possible but you could try it in the same manner as for Mac and Windows. Probably only the USB networking part is done differently on Linux (I don't know how, and you don't need that if you use WLAN) than on Mac/Windows.
__________________
My Maemo5 projects:
mSpede - Speed testing game | Them Bloody Ducks - 2D duck hunting game | Maetronome - A simple metronome app | CuteMPC - MPD client
 
Posts: 225 | Thanked: 64 times | Joined on Feb 2010
#3
I had it in mind that MADDE is essentially a small linux FOR WINDOWS (a bit like the concept of cygwin) so that people with windows could build ARMEL (the chip in the n900) etc binaries

I thought if youre running Linux you can just install qt creator and use it along with all the necessary qt stuff to make the binaries

== if you run linux, you don't need MADDE, because MADDE is like a "windows to linux" conversion for people who run windows

I know that when I open MADDE terminal in windows I get a busybox style shell prompt and can qmake and make aps from it that target the ARM processor in the n900.. but I'm using the linux versions of qmake and make inside the emulator (MADDE) and you don't need the emulator..
 
Posts: 7 | Thanked: 1 time | Joined on Mar 2010
#4
Ok,

Perhaps I've misunderstood MADDE's role as a dev tool (again I'm still in the process of learning about linux/maemo devlopment) but I had thought it was a cross compiler for compiling ARM code? Like scratchbox without the hassle of setting it up (from what I've read).

Also I'd wonder why would linux support be provided at all if it is to be used as a windows tool? Just a thought.

Thanks for the reply and giving me more to think about. I'm currently downloading Qt/QtCreator so will play about with that when it's installed.
 
Posts: 162 | Thanked: 23 times | Joined on Dec 2009
#5
you can use madde on linux using the line command instructions.

what is not yet allowed is the integration woth Qt. butg if you are a linux developper you only have to move to the corresponding folder where the qtcreator proyect is and exevute the mad command with the correct parameters.

Actually I am at the same point than you.
 
Posts: 7 | Thanked: 1 time | Joined on Mar 2010
#6
So if I'm understanding this correctly it can be used as a command line tool for compiling and packaging for code done in QtCreator which then has to be manually copied to the device and installed each time, and it isn't possible to set up a 'one click solution' as it were in QtCreator in linux that MADDE would provide?

If so would it therefore be easier to go the scratchbox route? Or am I missing something and there is a more elegant way for testing on device?

Thanks again
 
Posts: 7 | Thanked: 2 times | Joined on Mar 2010
#7
Yeah, looks like under linux you have to use command line tools to send and test on real device whereas on Win or OSX they have a "Maemo Device Config" option under Qt4 under tools -> options.

I dont have a problem with using the command line tools but it would have been nice to have the config option in QtCreator like the Win or OSX IDEs to make a one-click solution. I dont see why it would have been that hard to do. Unless anyone knows and mod/hack to accomplish this?
 
Posts: 282 | Thanked: 337 times | Joined on Dec 2009 @ Austin, TX, USA
#8
Madde is very helpful on linux. I found this formula to be good:
  • use qmake and make to develop and test on the linux box
  • use mad qmake and mad make to compile for n900, then scp to the n900 and run it on the n900

Just do a make clean between the x86 build and the arm build. You can script the make and scp to make it faster. Also, you can ssh to the n900 and start your app over ssh...it will magically appear on the device when you start it from the ssh connection.
 

The Following User Says Thank You to rmerren For This Useful Post:
Posts: 225 | Thanked: 64 times | Joined on Feb 2010
#9
Originally Posted by Intergalactic Christ View Post
Ok,

Perhaps I've misunderstood MADDE's role as a dev tool (again I'm still in the process of learning about linux/maemo devlopment) but I had thought it was a cross compiler for compiling ARM code? Like scratchbox without the hassle of setting it up (from what I've read).

Also I'd wonder why would linux support be provided at all if it is to be used as a windows tool? Just a thought.

Thanks for the reply and giving me more to think about. I'm currently downloading Qt/QtCreator so will play about with that when it's installed.
Okay, having reviewd my QtC/MADDE install (on windows), I guess I'd say that windows MADDE is a suite of apps, some of which form a linux-shell-on-windows and others that are windows binaries that output programs in ARM binary format.. I.e. my QtC targets madde's qmake.exe (but if you downloaded the linux version of madde it would target an i386 linux qmake)
The qmake creates makefiles for the relevant make (in my system i396 make.exe, on your linux i386 make) that output ARM based binaries

My QtC also outputs windows binaries, using the qmake.exe/make.exe pair that shipped with QtCreator. I'd gotten caught up in the notion that as youre running linux and the n900 is also, that your QtC would just use its shipped q,ake/make to build apps for the n900, forgetting completely that youre using i386 linux and thats what kind of images your QtC/make will make. You'll need MADDE, because the make in MADDE runs on your i386 linux and creates ARM binaries

Sorry for the confusion
 
Posts: 225 | Thanked: 64 times | Joined on Feb 2010
#10
Originally Posted by rmerren View Post
Madde is very helpful on linux. I found this formula to be good:
  • use qmake and make to develop and test on the linux box
  • use mad qmake and mad make to compile for n900, then scp to the n900 and run it on the n900

Just do a make clean between the x86 build and the arm build. You can script the make and scp to make it faster. Also, you can ssh to the n900 and start your app over ssh...it will magically appear on the device when you start it from the ssh connection.
Indeed, on windows the make.exe that shipped with my QtC makes windows binaies. I select windows as my target, clean, qmake and build and run and up pops my Qt app on my windows box.
I switch the terget to the n900, clean, qmake, build, and run and the app appears on my n900

I'd hope the procedure for setting up QtC to work this way is the same on linux and windows, so if anyone has any questions as to how I set mine up.. just ask (though it was more or less following the wiki)
 
Reply


 
Forum Jump


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