![]() |
2009-12-15
, 10:47
|
Posts: 66 |
Thanked: 44 times |
Joined on Nov 2009
|
#31
|
![]() |
2009-12-15
, 15:35
|
|
Posts: 41 |
Thanked: 8 times |
Joined on Nov 2009
@ Zürich, Switzerland
|
#32
|
![]() |
2009-12-15
, 15:43
|
|
Posts: 1,217 |
Thanked: 446 times |
Joined on Oct 2009
@ Bedfordshire, UK
|
#33
|
From my perspective I'd say use python. yes c++ *can* be faster, but only if you can actually get it to work. in my experience unless you are trying to push the limits of the device, the difference in app performance will be hidden completely by bad programming.
By which I mean you'll waste so much time trying to make c++ work at all, or do anything, that the theoretical performance difference isn't worth much.
of course if you already know c/c++ and are a super clever guy, then go for it. But for me, coming from a java background, I tried C, and it took me ages to get not very far, and I gave up trying to debug my segfaults. I just wasn't prepared to sink my time into getting good enough at C to make it worth while.
Python is *way* faster to develop and get on with for anyone that doesn't start with serious c experience.
In real terms I think I stand a better chance of writing performant Python than I do in C, just because I have a better understanding of what is going on. But maybe that's just me.
![]() |
2009-12-15
, 15:44
|
|
Posts: 1,217 |
Thanked: 446 times |
Joined on Oct 2009
@ Bedfordshire, UK
|
#34
|
I tend to agree, but one performance hurdle of python difficult to overcome is slow startup speed. Once your app is loaded users are hard pressed to tell a difference espescially if your app relies heavily on fumctionality provided by a relatively fast toolkit like qt or gtk.
![]() |
2009-12-15
, 19:20
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#35
|
![]() |
2009-12-15
, 19:39
|
Posts: 402 |
Thanked: 229 times |
Joined on Nov 2009
@ Missouri, USA
|
#36
|
![]() |
2009-12-15
, 19:46
|
|
Posts: 41 |
Thanked: 8 times |
Joined on Nov 2009
@ Zürich, Switzerland
|
#37
|
![]() |
2009-12-15
, 19:49
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#38
|
Yeah, there is a lot of jargon, although most tutorial sites I've seen try to not use too much. The problem is that one has to assume at least some things, or a single tutorial would have to be huge, including every possible explanation. This glossary may be helpful to you: http://www.swpearl.com/eng/scripts/dictionary/
A few things. I'm not sure which page you're referring to, but you don't have to install Qt the hard way. If you're not familiar with Package Management, read up on it on the UbuntuCat site. It's a system that allows for a modular OS and applications, central distribution and updates for everything, and also tracks all of your system files. Linux very closely follows the philosophy of "a place for everything, and everything in its place", and package management allows for that to work by tracking all installed files in a database. The standalone installer you downloaded is an example of the "last resort" option, because often such things leave untracked files floating around on your system, which kind of defeats the point of tracking them (all personal files should go in your home directory unless you have a reeeally good reason not to). That said, kudos for working out the permissions issue. The reason for that is simply security - when you download a file, it is by default not executable, so that downloading random e-mail attachments (in theory) isn't going trash your system without your say-so. Because most normal users are going to use only the package manager, it's not usually an issue, but I've seen newbies get hung up on that problem for a while. :P
Anyhow, to get to the point, if you want to use Qt on the VM OS (Ubuntu variant), then you install it with synaptic in the GUI, or apt-get in the shell. However, that won't install it into the actual SDK. When you run /scratchbox/login, it puts you into a special shell that can run ARM applications, and can be used for building and debugging. The "home directory" in that shell is actually located in /scratchbox/users/maemo/home/maemo , and you should be able to open a file manager to there and either drop files into it, or open files from it in a graphical editor if you wish. Note I say should - if it doesn't work, let me know. You may need to use the sbox shell to actually do the compiling, although I seem to remember hearing that it comes with a plugin for whatever IDE it ships with that allows to do it in the IDE... don't quote me on that. If you want to install Qt in the SDK environment, you have two choices: Qt 4.5 (stable, but not a full Maemo port, and not going to be supported by Nokia), which is in extras, and is called libqt4-dev (technically that's a lie, but it's split into modules, and that should install them all for you in a more simple way than otherwise), or Qt 4.6 (potentially unstable, but almost fully integrated, and will be supported soon), which is in extras-devel.
So yeah, to summarize the first bit: check the repositories for your program first, then look to see if there is a standalone installer or other less desirable method, and only then worry about compiling if you need to. Package management is great, but the problem is that most distros do it a bit differently from each other, so you can't just take, say, a program distributed by Fedora, and install it on Ubuntu. It's kind of a "blessing and curse" situation - if programs are available (and most big distros have many thousands of apps and libraries), they're (IMO) simpler to find and install than in Windows, but on the other side, at least with Windows any old download will work.
![]() |
2009-12-15
, 19:50
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#39
|
@noobmonkey: did you get the helloworld example working? Still getting this error message when I try to build the application...
![]() |
2009-12-15
, 19:58
|
|
Posts: 41 |
Thanked: 8 times |
Joined on Nov 2009
@ Zürich, Switzerland
|
#40
|
The Following User Says Thank You to pixelgeek For This Useful Post: | ||