Hello devkitPro,
I was hoping to get some help with some issues that I have encountered in migrating from a late 1.x libnds to libnds 2.0. Context: My intention is to release a full RTS for the NDS/DSi along with its source code, which hopefully will be able to boast the use of libnds 2.0.
Having used the devkitPro Updater 3.0.3 to update to the latest devkitPro, the compilation of my source code was, well, very unsuccessful.
Errors along the line of "calico could not be found" and "This header file is only for NDS ARM9 or ARM7" were present, immediately stopping the compilation process. After having removed all that was installed (and updated) in the devkitPro folder, and running the devkitPro Updater again, the fresh install at least prevented those errors and the migration could begin. Two further problems exist that complicate the compilation process. My Makefile is mostly still the example template for NDS development.
Compilation of an assembly file for some reason ignores the "-I" arguments, meaning that the include for asminc.h fails. The .c files in that same directory do get passed the appropriate -I arguments, though, so this seems specific to .s files.
Running the command below, which is successful, at least allowed me to continue with the compilation process.Code: Select all
c:\devkitPro\devkitARM\bin\arm-none-eabi-gcc -MMD -MP -MF build/fastCopyOAM.d -x assembler-with-cpp -D__NDS__ -I"c:\devkitpro\libnds\include" -g -march=armv5te -mtune=arm946e-s -mthumb -c source/fastCopyOAM.s -o fastCopyOAM.o
At the rom creation stage, I get the error message below, indicating that a default.elf is missing. Indeed no such file is present in that directory. Am I right in assuming it's attempting to incorporate the default ARM7 binary? Where should that be located?
If it helps, I am happy to upload the entire current migrated source code to a private github repo and provide you (fics? wintermute?) with access for testing.
All best wishes,
Sander