You can install the OpenXDK libraries in three ways (in order of preference):
Note that my development environment is Windows 2000 using the Cygwin development kit. It worked with MingW on Windows some time ago, but I haven't tested it recently. I have been endeavouring to give better support for Linux users, also.
i386-mingw32
cross compiler. I installed the RPMs from here and everything just worked fine.
This is the easiest of the three options (as long as you are a Win32 user). Just download the latest binary file from Source Forge.
It will usually be called something like OpenXDK_0_05_bin.zip
(depending on the version). Decide what directory you want the libraries installed in (I personally install it into /usr/local/openxdk
, but you can
put it wherever you want), and unzip it into that directory. That's it!
You will need to make note of the directory you install it in so that you can set the PATHs correctly when you are developing your own applications.
Note that the ZIP file already contains the leading openxdk
directory, so if you want the binaries to be installed into /usr/local/openxdk
, you need
to unzip it into /usr/local
.
Download the latest source file from Source Forge.
It will usually be called something like OpenXDK_0_05_src.tgz
(depending on the version). Decide what directory you want the source to be installed in. I
normally use /home/craig/openxdk
, but you can put it wherever you like.
You then need to decide where you want the OpenXDK libraries to be installed. I personally put them into /usr/local/openxdk
, but you can put them wherever suits.
The following instructions assume that you untarred the source into /usr/home/openxdk
and you want to install into /usr/local/openxdk
. From a BASH
shell, execute the following commands:
Cygwin
cd /usr/home/openxdk ./autogen.sh ./configure --prefix=/usr/local/openxdk make all installLinux
cd /usr/home/openxdk export WANT_AUTOCONF=2.5 export WANT_AUTOMAKE=1.6 ./autogen.sh ./configure --prefix=/usr/local/openxdk --host=i386-mingw32 make all installTo check that the installation worked correctly (in both cases), run
ls -las /usr/local/openxdk/lib
, and you should see something like (file sizes will vary between releases):
bash-2.05b$ ls -las /usr/local/openxdk/lib total 720 4 drwxrwxrwx+ 2 edwardsc None 4096 Sep 8 08:16 . 0 drwxrwxrwx+ 6 edwardsc None 0 Sep 8 08:15 .. 255 -rw-rw-rw- 1 edwardsc None 261086 Sep 8 08:16 libSDL.a 63 -rw-rw-rw- 1 edwardsc None 64490 Sep 8 08:15 libhal.a 32 -rw-rw-rw- 1 edwardsc None 32200 Sep 8 08:15 libopenxdk.a 100 -rw-rw-rw- 1 edwardsc None 102348 Sep 8 08:16 libusb.a 266 -rw-rw-rw- 1 edwardsc None 271764 Sep 8 08:02 libxboxkrnl.a
This procedure is almost the same as the Packaged Source installation, except that you are using the latest copy of the code, instead of the packaged release. Use CVS to download the HEAD from SourceForge into your source directory, and the follow the instructions in the Packaged Source section.
cxbe
will be creating in the bin
directory of wherever you installed OpenXDK.
This directory needs to be in your path (or fully qualified in your application makefile). See developing applications for more information.