2007-04-25

Libnds and VC++ Express

Assuming that PALib won’t be active again for a while, I decided to look into setting up VC++ for libnds. It turned out to be fairly simple. These are the steps needed to set the IDE up (as long as you’ve already got devkitPro, PALib and the PALib VC++ app wizard installed properly):

  • Create a new “Makefile” project
  • When the wizard appears, click “Next”
  • In the box labelled “Build command line, enter:

    make -r 2>&1 | sed -e ’s/\(.[a-zA-Z]\+\):\([0-9]\+\):/\1(\2):/’

  • In the box labelled “Clean commands”, enter:

    make clean

  • In the box labelled “Rebuild command line” enter:

    make -r rebuild 2>&1 | sed -e ’s/\(.[a-zA-Z]\+\):\([0-9]\+\):/\1(\2):/’

  • In the box labelled “Output (for debugging)”, enter:

    $(ConfigurationName)\$(ProjectName).nds

  • In the box labelled “Include search path”, enter:

    ”$(DKP_HOME)\libnds\include”; “$(DKP_HOME)\libnds\include\nds”; “$(DKP_HOME)\libnds\include\nds\arm7”; “$(DKP_HOME)\libnds\include\nds\arm9”; “$(DKP_HOME)\libnds\include\netinet”; “$(DKP_HOME)\libnds\include\sys”

  • Click “Finish”

That should do it, I think. Now just copy a makefile from one of the libnds examples into your new project and you’re good to go.

Comments

ant.simianzombie.com » Blog Archive » Libnds and VC++ Express #2 on 2007-07-06 at 20:45 said:

[…] on from my earlier post about setting up Visual C++ 2005 Express for Libnds, here’s a few things I […]

ant.simianzombie.com » Libnds and VC++ Express #2 on 2009-10-07 at 11:39 said:

[...] on from my earlier post about setting up Visual C++ 2005 Express for Libnds, here’s a few things I [...]

Libnds and VC++ Express #2 | simianzombie.com on 2011-11-18 at 19:06 said:

[…] on from my earlier post about setting up Visual C++ 2005 Express for Libnds, here’s a few things I […]