Setting up libraries on Linux

From Wiz Wiki
Jump to: navigation, search

Contents

[edit] Hint

torpor has bundled a pre-built version of the libraries. Get it from the forums.

[edit] Notes

This is not the only way of generating the libraries, I am certainly not an expert, if you find/figure out a better way please replace this page with a detailed description. I only got here first :) although it is quite convenient. I assume you have followed the instructions for installing the toolchain and for convenience that your toolchain is in /opt/openwiz/toolchain/ we are going to be installing into it.

As pointed out in a forum discussion on gp32x.com the arm 920T flag is set. I found my SDL test app would still run, so this may not matter. I couldn't find out what the Wiz has precisely anyway. :s

[edit] Prerequisites

First of all you will need autoconf and libtool. If you are using a Debian based package system, such as in Ubuntu then you can type:

sudo apt-get install autoconf libtool

[edit] Download

Get this archive from here.

And extract it to somewhere in your home folder.

Run

./open2x-libs.sh

if you want to try to create all the various libraries (by now some of them may not download, I ended up changing the version number in the scripts. If you want to jump in immediately and do something with SDL then you can build that first:

./open2x-libs.sh o2x-sdl

There should be no errors. Now I recommend you reward yourself by trying this rather excellent tutorial:

SDL Hello World

Personal tools
View and edit namespaces data
Variants
Actions
Navigation
community
Toolbox