Unfathomable Depths
sláinte
DISCLAIMER
This guide was written by a total Linux noob for other Linux noobs and the solution was arrived at by trial, error, luck and flaw. If I've missed anything out or I'm doing something stupid or unnecessary please feel free to correct me
It will show you, step-by-step, how I set up a cross-compiler in Ubuntu 10.04 (Lucid Lynx) using Code::Blocks 8.02. It will probably work for other versions of Ubuntu and Code::Blocks but I've really no idea.
STEP 1
Download and install Cpasjustes cross-compiler tool chain following the instructions on THIS thread.
STEP 2
Install Code::Blocks. I used the Ubuntu Software Centre to install this. In Ubuntu goto Applications/Ubuntu Software Centre. Search for code::blocks and hit install.
STEP 3
Run Code::Blocks.
In Code::Blocks goto settings/compiler and debugger. Make a copy of the default compiler by hitting copy and renaming it Pandora.
Now select the Pandora compiler[sup]1[/sup] and click the 'Linker Settings' tab and, using the ADD button[sup]2[/sup] add the following libraries one by one (case sensitive):
SDL
SDL_mixer
SDL_image
libts-1.0
Next, in the 'Search Directories' tab, select the 'Compiler' tab and add the following lines:
/usr/local/pandora/arm-2009q3/arm-none-linux-gnueabi/include
/usr/local/pandora/arm-2009q3/usr/include
Still in the 'Search Directories' tab select the 'Linker' tab and add the following lines:
/usr/local/pandora/arm-2009q3/lib
/usr/local/pandora/arm-2009q3/usr/lib
Now, in the 'Toolchain Executables' tab (you might have to use the right scroll arrow[sup]1[/sup] to reveal this tab) press the '...' button to the right of the box below where it says 'Compilers installation directory'[sup]2[/sup] and navigate to /usr/local/pandora/arm-2009q3 and click open.
One by one, add in the 'Program Files' tab under each entry by navigating to /usr/local/pandora/arm-2009q3/bin as follows
C compiler : arm-none-linux-gnueabi-gcc
C++ compiler : arm-none-linux-gnueabi-g++
Linker for dynamic libs : arm-none-linux-gnueabi-g++
Linker for static libs : arm-none-linux-gnueabi-ar
Debugger : arm-none-linux-gnueabi-gdb
That's it!
You should now be able to create Pandora executables
This guide was written by a total Linux noob for other Linux noobs and the solution was arrived at by trial, error, luck and flaw. If I've missed anything out or I'm doing something stupid or unnecessary please feel free to correct me
It will show you, step-by-step, how I set up a cross-compiler in Ubuntu 10.04 (Lucid Lynx) using Code::Blocks 8.02. It will probably work for other versions of Ubuntu and Code::Blocks but I've really no idea.
STEP 1
Download and install Cpasjustes cross-compiler tool chain following the instructions on THIS thread.
STEP 2
Install Code::Blocks. I used the Ubuntu Software Centre to install this. In Ubuntu goto Applications/Ubuntu Software Centre. Search for code::blocks and hit install.
STEP 3
Run Code::Blocks.
In Code::Blocks goto settings/compiler and debugger. Make a copy of the default compiler by hitting copy and renaming it Pandora.
Now select the Pandora compiler[sup]1[/sup] and click the 'Linker Settings' tab and, using the ADD button[sup]2[/sup] add the following libraries one by one (case sensitive):
SDL
SDL_mixer
SDL_image
libts-1.0
Next, in the 'Search Directories' tab, select the 'Compiler' tab and add the following lines:
/usr/local/pandora/arm-2009q3/arm-none-linux-gnueabi/include
/usr/local/pandora/arm-2009q3/usr/include
Still in the 'Search Directories' tab select the 'Linker' tab and add the following lines:
/usr/local/pandora/arm-2009q3/lib
/usr/local/pandora/arm-2009q3/usr/lib
Now, in the 'Toolchain Executables' tab (you might have to use the right scroll arrow[sup]1[/sup] to reveal this tab) press the '...' button to the right of the box below where it says 'Compilers installation directory'[sup]2[/sup] and navigate to /usr/local/pandora/arm-2009q3 and click open.
One by one, add in the 'Program Files' tab under each entry by navigating to /usr/local/pandora/arm-2009q3/bin as follows
C compiler : arm-none-linux-gnueabi-gcc
C++ compiler : arm-none-linux-gnueabi-g++
Linker for dynamic libs : arm-none-linux-gnueabi-g++
Linker for static libs : arm-none-linux-gnueabi-ar
Debugger : arm-none-linux-gnueabi-gdb
That's it!
You should now be able to create Pandora executables
Last edited by a moderator: