weirdfox wrote:
If yes, as devkitARM don't use autoconf, the part with autoconf's "configure" script won't work.
You will need to write the custom makefiles to compile the library as compiling for linux is different than compiling for devkit's ARM target.
Take the makefiles from the templates (in the examples) and customize them to fit the library. But usualy, some patching will be required on the lib.
This is incorrect, there is no reason why autoconf won't work with devkitARM.
Depending on the library you want to cross compile, the configure step can be as simple as
Code: Select all
PATH=$DEVKITARM/bin:$PATH
./configure --host=arm-eabi --prefix=$DEVKITPRO/portlibs/arm
make && make install
To make use of the newly installed library you need to add $DEVKTPRO/portlibs/arm to the LIBDIRS variable in the template makefiles then use the headers and libs as normal. I've chosen this directory since many libraries could be used for all targets supported by devkitARM where there is no hardware specific code. For a library which needs to be tailored directly to the DS I would use $DEVKITPRO/libnds for the prefix.