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 > LibNDS problem installing

#77005 - Aglet - Mon Mar 27, 2006 11:49 am

Hi fellas.
I've been following mr. Rogers' step-by-step-guide
but now I'm stuck and I can not find any help. I've come to the part where it says
Quote:
Change the first line to SET DEVDIR=C:\ndsdev\devkitarm


but it doesn't seem to work. My Install.bat doesn't look anything like this. It only has two lines in it.

Quote:
make

pause


I've tried both adding the line required as well as exchanging the first line (make) for it.

Has anyone had the same problem? I should also tell you that my CVS (whatever that is) installation doesn't look like the one depicted on the website.
Compare mine to Mr Rogers'. See how I miss the entire ndslib/startup library?

I'd be really glad if you could help me with this. The guide has been really helpful so far.

Thanks

#77020 - melw - Mon Mar 27, 2006 3:07 pm

Use devkitPro, the devkitProUpdater makes the whole install process as simple as possible - whereas the installation guide you're referring to is probably out of date.

#77061 - wintermute - Mon Mar 27, 2006 9:33 pm

That guide is very out of date and should be ignored.

As has been said, you're better off with the devkitPro updater but completely remove everything you've set up using that guide first. Uninstall msys then delete the ndsdev folder you created and set your environment variables back to the way they were before you started.

The latest version of the updater/installer is 1.2.7

http://sourceforge.net/project/showfiles.php?group_id=114505&package_id=160396
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#77169 - Aglet - Tue Mar 28, 2006 9:29 pm

Manually removing things I have no idea how they got there or what they are is not my cup of tea. By the way. I have tried the devKitPro already. It didn't work and that's why I tried to install it this way in the first place. I have gotten used to Visual studio 2003 and thought I could install it so it worked with that. But I'll just have to quit with that.
Is there a way to easily install it with Dev-c++? I tend to like that program as well.

Well thanks anyhow. I'll just go back to genuine C++programming with DirectX. That is working partly as it is :S

#77183 - dovoto - Wed Mar 29, 2006 12:16 am

All the devkitpro installer does is unzip the libs and devkits (that you choose at install time) to the selected directory and then sets up the environment variables for you so that "make" will function as expected. The eviron variables are set unix style as that is what make likes. If you prefer to unzip things yourself and set the variables this is quite simple if a bit more tedius and you dont get the nice little auto update feature from the installer http://www.devkitpro.org/setup.shtml

This makes integration with visual studio very simple: Create a new makefile project; type make and make clean in the build options box of the new project wizard; Copy one of the template projects from the libnds examples to the project dir and you are good to go. http://www.devkitpro.org/visual-c++-express.shtml --this guide is for 2005 express but works with trivial modification for VS 6.0 and 2003, 2005 full versions.

If you need to compile from a dos prompt (or batch file) you will need to set dos style path and variables manualy...path=c:/devkitarm/bin;%path% is all you really need to compile from the command line. It is also helpful to set an environment variable which points to your library.
_________________
www.drunkencoders.com

#77220 - Aglet - Wed Mar 29, 2006 2:28 pm

dovoto wrote:
This makes integration with visual studio very simple: Create a new makefile project; type make and make clean in the build options box of the new project wizard;


I R teh n00b.
Or in proper English: I don't really know what you're talking about. I'm supposed to create a new project? I've never heard of makefiles before.

Thanks.

#77247 - dovoto - Wed Mar 29, 2006 7:31 pm

Aglet wrote:
dovoto wrote:
This makes integration with visual studio very simple: Create a new makefile project; type make and make clean in the build options box of the new project wizard;


I R teh n00b.
Or in proper English: I don't really know what you're talking about. I'm supposed to create a new project? I've never heard of makefiles before.

Thanks.


in 2005:
file->new->project->visual c++->makefile project

in 2003 and VS 6.0
something very similar but i forget the specifics. Pretty sure wntrmutes guide i posted has that sort of detail. Takes a few minutes to figure out but once you do makeing a new project is only slightly more a pain than making a blank project for a win app (takes an extra step of copying a template project--allthough this is also avoidable with a simple to write plugin). Worth figuring out if you have access to visual studio.
_________________
www.drunkencoders.com