Page 1 of 1

Cannot compile Examples

Posted: Wed May 14, 2025 10:15 pm
by pepposole

Trying to compile NDS example on WSL, windows 11. Got all the stuff installed.

Code: Select all

/opt/devkitpro/examples/nds$ sudo dkp-pacman -Q
calico 1.1.0-1
devkitARM r66-1
devkitarm-crtls 1.2.6-1
devkitarm-rules 1.6.0-4
devkitpro-keyring 20241017-2
general-tools 1.4.4-1
grit 0.9.2-1
libnds 2.0.1-1
nds-examples 20241110-1
ndstool 2.3.1-1
pacman 6.0.2-6

but when i try to compile....

Code: Select all

/opt/devkitpro/examples/nds$ sudo DEVKITARM=/opt/devkitpro/devkitARM/ DEVKITPRO=/opt/devkitpro/ make
make[1]: Entering directory '/opt/devkitpro/examples/nds/Graphics'
make[2]: Entering directory '/opt/devkitpro/examples/nds/Graphics/3D'
make[3]: Entering directory '/opt/devkitpro/examples/nds/Graphics/3D/3D_Both_Screens'
template.c
linking 3D_Both_Screens.elf
Nintendo DS rom tool 2.3.1 - Jan  8 2024
by Rafael Vuijk, Dave Murphy, Alexei Karpenko
failed to open input file: '/opt/devkitpro//calico/bin/ds7_maine.elf'
make[4]: *** [/opt/devkitpro/devkitARM//ds_rules:39: /opt/devkitpro/examples/nds/Graphics/3D/3D_Both_Screens/3D_Both_Screens.nds] Error 1

thoughts?


Re: Cannot compile Examples

Posted: Thu May 15, 2025 6:24 am
by WinterMute

/opt/devkitpro is not user writable. If you want to compile the examples copy them somewhere that's writable.


Re: Cannot compile Examples

Posted: Thu May 15, 2025 1:10 pm
by pepposole
WinterMute wrote: Thu May 15, 2025 6:24 am

/opt/devkitpro is not user writable. If you want to compile the examples copy them somewhere that's writable.

I've also moved out the sources from /opt/devkitpro with no success.
The problem is that file /opt/devkitpro/calico/bin/ds7_maine.elf is missing and i don't know how to produce it/retrieve it

Any ideas?


Re: Cannot compile Examples

Posted: Fri May 16, 2025 10:04 pm
by WinterMute

Don't redefine the DEVKITPRO & DEVKITARM variables when compiling. These should be set in your environment already.

Run the following command to ensure your devkit install is up to date and all required components are installed.

Code: Select all

sudo dkp-pacman -S nds-dev --needed