I'm trying to get devkitPro toolchains working off of a flash drive so I can make a Wii program as a school project (my teacher has spare computers that aren't restricted, so I have admin permissions), but even after setting the environment variables to what they were on my personal computer:
Code: Select all
DEVKITARM=/opt/devkitPro/devkitARM
DEVKITPPC=/opt/devkitPro/devkitPPC
DEVKITPRO=/opt/devkitPro
Path=F:\devkitPro\msys2\usr\bin (I changed the drive letter to match what it appeared as on the school computer)
but it either says that there is no such directory, it can't find wii_rules (even if the Makefile changed so that the path to wii_rules is hardcoded), or it can't find the file specified.
I found this topic from 14 years ago that had a bat script that supposedly sets the environment variables so that devkitPro could work portably, but even after pasting it into a .bat file and running it, it just results in Programmers Notepad saying that it can't find a rules file for [path to template.c].
Any help would be appreciated, I'd rather avoid rerunning the installer since not only does it take the better part of an hour to finish (longer than the entire class period), but my school's wifi network blocks a lot of sites, which I think includes whatever site the installer accesses for the non-msys2 directories.
Update: I gave in and ran the installer on the school computer, but I'm still getting the error
Code: Select all
> "make"
make[1]: *** No rule to make target 'F:/wii-examples-20190201/template/source/template.c', needed by 'template.o'. Stop.
make: *** [Makefile:101: build] Error 2
Process Exit Code: 2
Time Taken: 00:02
any ideas?
Update 2: It worked! I have no idea what I did to make it work but it works! I moved the "template" folder to the root of my C: drive and it worked, then I copied it to the root of my flash drive and it worked there too. I don't see why that wouldn't have worked before since the previous path didn't contain any spaces but whatever