gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Suggestion for the template code!

#39019 - FeaRog - Sun Apr 03, 2005 5:43 am

After being annoyed again and again by having to change the NDSLIBPATH variable in CommonMakefile.in for all the demos around, I got rid of it and made it an environment variable. I'd suggest that we do this to the template available (Joat's isn't it?), and likewise for all the demos available. This removes one more step in getting someone else's code building.

Note that for the build to work in Windows XP the slashes used in the environment variable must be forward slashes instead of your ususal MS backslash (eg: "h:/ndsdev/ndslib" instead of "h:\ndsdev\ndslib").

#39028 - dovoto - Sun Apr 03, 2005 10:14 am

I know joat tried this but it seems as if minsys did not import the environment variables other than PATH. That being said the template needs to be revised a lot and will be soon.
_________________
www.drunkencoders.com

#39037 - FeaRog - Sun Apr 03, 2005 4:55 pm

I commented out this line:
Code:
export NDSLIBPATH   :=   /h/ndsdev/ndslib


Then added a system environment variable (in Start->Settings->Control Panel->System->Advanced->Environment Variables) called NDSLIBPATH, with a value of h:/ndsdev/ndslib

Works a treat :)

It doesn't work if you have the slashes as DOS style backslashes '\' though. It throws build errors about not being able to find NDS/NDS.h etc.