Richo said:I would really love to see a tutorial on how to get set up with an IDE, like code::blocks or similar, and link all the libraries (if that is how it's done). Then maybe a simple hello world program for the pandora.
I'm still not certain that you type people understand what you're asking for. If you do then please explain it to me with as much detail as you can.bja said:Richo said:I would really love to see a tutorial on how to get set up with an IDE, like code::blocks or similar, and link all the libraries (if that is how it's done). Then maybe a simple hello world program for the pandora.
Me too! I have been looking for something like this, but all I found was a few links on how to learn programming sdl. Wouldn't it be cool if you could just download a pre-packaged pandora sdk from let's say developer.openpandora.org?
I might write this when I get my Pandora, I'm not all that interested in C++ programming right away but I'll eventually be wanting to write C++ programs...Richo said:I would really love to see a tutorial on how to get set up with an IDE, like code::blocks or similar, and link all the libraries (if that is how it's done). Then maybe a simple hello world program for the pandora.
WizardStan said:I don't use Mac or Windows if I can help it, so someone else will have to find a suitable cross compiler for that. But when you do, it's easy to set in pretty much any IDE. In Dev-CPP, Tools->Compiler Options->Programs, and set them there. That's it!
WizardStan said:I'm still not certain that you type people understand what you're asking for. If you do then please explain it to me with as much detail as you can.
$> wget http://developer.pandora.org/sdk/pandora-devkit-2010.3.tar.bz2
$> tar xjf pandora-devkit-2010.3.tar.bz2
$> ls -l pandora-devkit-2010.3
drwxr-xr-x 5 bja bja 4096 2010-02-19 21:20 arm-pandora-gcc
drwxr-xr-x 5 bja bja 4096 2010-02-19 21:20 bin
drwxr-xr-x 5 bja bja 4096 2010-02-19 21:20 docs
drwxr-xr-x 5 bja bja 4096 2010-02-19 21:20 examples
drwxr-xr-x 5 bja bja 4096 2010-02-19 21:20 lib
drwxr-xr-x 5 bja bja 4096 2010-02-19 21:20 include
drwxr-xr-x 5 bja bja 4096 2010-02-19 21:20 whatever
-rw-r--r-- 1 bja bja 4896 2010-02-16 21:28 README
-rw-r--r-- 1 bja bja 34143 2010-02-16 21:28 Makefile
total 7
$> cd pandora-devkit-2010.3/examples/SDL/helloloworld/
$> make target=i686-gnu-linux
$> ./helloloworld
$> make target=arm-pandora-linux
$> make pnd?
WizardStan said:There is no Pandora "SDK", there will never be an SDK, there is no need for an SDK. You can use any library you want that compiles to ARM. Any SDK you try to create will either be so huge for all the possible libraries it contains, or it will contain such a small subset as to be useless for anything but the most simplistic programs. Do you include GTK or QT? Irrlicht or Ogre? Or none? Or all?
WizardStan said:There isn't a "Desktop SDK". If you can write a program for a PC, you can write a program for the Pandora. The only difference is the compiler, and I have yet to encounter an IDE that didn't allow you to specify the compiler to use. That is the only catch: where do you get an ARM cross compiler? For Linux, it's easy: CodeSorucery is a dedicated cross compiler, and gcc has the ability to cross compile arm, apparently (though I've not tried it). Just replace "GCC=gcc" (etc) in your Makefile with the appropriate command and VOILA! Pandora compatible application. You may need to download the ARM compatible library you want to use, but it's installation will basically be the exact same as the PC version would be.
I don't use Mac or Windows if I can help it, so someone else will have to find a suitable cross compiler for that. But when you do, it's easy to set in pretty much any IDE. In Dev-CPP, Tools->Compiler Options->Programs, and set them there. That's it!
Who's been saying it won't have GCC on board? It is, in fact, only a few hundred K, so even more reason it shouldn't not be included.torpor said:With a C/C++ compiler onboard it also makes *PORTS* a lot easier to get started .. look, its just 100% sensible to do this, and there is no good reason not to do it - the compiler is only a 15 megs extra! Just do it!
Who's been saying it won't have GCC on board?
Resistance from the board, perhaps, and that thread was more a "crosscompiling on desktop is easy and faster" rather than "compiling on the Pandora is a bad idea". Technically valid, since the Pandora would be noticeably slow for sufficiently large projects, but I don't think I remember anyone saying "don't compile on the Pandora ever"torpor said:The last time we had a thread about whats going to be included in the PandoraOS, there was a lot of resistance to the idea .. if that has now changed, I'm very happy because I will use it a lot.
WizardStan said:Resistance from the board, perhaps, and that thread was more a "crosscompiling on desktop is easy and faster" rather than "compiling on the Pandora is a bad idea". Technically valid, since the Pandora would be noticeably slow for sufficiently large projects, but I don't think I remember anyone saying "don't compile on the Pandora ever"torpor said:The last time we had a thread about whats going to be included in the PandoraOS, there was a lot of resistance to the idea .. if that has now changed, I'm very happy because I will use it a lot.
If you've already got a desktop, why not just setup the cross compiler and build on your desktop?torpor said:Wear of the SD Cards? Well, playing a game will also wear down your SD cards. As for eyes and joints - I think the idea would be that you'd ssh to your Pandora to do builds from your desktop, where hopefully you've already got a big screen and nice keyboard and comfy mouse and so on ..
WizardStan said:If you've already got a desktop, why not just setup the cross compiler and build on your desktop?torpor said:Wear of the SD Cards? Well, playing a game will also wear down your SD cards. As for eyes and joints - I think the idea would be that you'd ssh to your Pandora to do builds from your desktop, where hopefully you've already got a big screen and nice keyboard and comfy mouse and so on ..