I need some help to setup my IDE, more specificly Visual C++ Express 2008 SP1 under Vista 64bits SP1, for nds development.
I followed the steps that are at this page : http://www.devkitpro.org/faq/how-do-i-u ... c-express/
But I will sum up what I did :
- Setup devkitpro (default parameter)
- Setup Visual C++ Express 2008 SP1
- Create new project > make file project
- Build command line : make -r 2>&1 | sed -e 's/\(.[a-zA-Z]\+\):\([0-9]\+\):/\1(\2):/’
- Clean commands : make clean
- Output : TutorialNds.ds
- Located at C:\DSProjects
- I've added Makefile from examples\nds in the project and added it to VC++ thanks to Add>Existing Item... menu
- I've created a main.cpp file with the code below
- And I've an error when I build with VC++
main.cpp
Code: Select all
#include <nds.h>
#include <stdio.h>
//---------------------------------------------------------------------------------
int main(void) {
//---------------------------------------------------------------------------------
irqInit();
irqEnable(IRQ_VBLANK);
return 0;
}
Code: Select all
SUBDIRS:= $(shell ls | egrep -v '^(CVS)$$')
DATESTRING := $(shell date +%Y)$(shell date +%m)$(shell date +%d)
#---------------------------------------------------------------------------------
all: examples
#---------------------------------------------------------------------------------
rm -fr bin
mkdir -p bin
find ./ -name *.nds -exec cp -fv {} bin \;
examples:
@for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i || { exit 1;} fi; done;
#---------------------------------------------------------------------------------
clean:
#---------------------------------------------------------------------------------
@rm -fr bin
@rm -f *.bz2
@for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i clean || { exit 1;} fi; done;
#---------------------------------------------------------------------------------
install:
#---------------------------------------------------------------------------------
@for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i install || { exit 1;} fi; done;
#---------------------------------------------------------------------------------
dist: clean
#---------------------------------------------------------------------------------
@rm -fr bin
@tar --exclude=*CVS* -cvjf nds-examples-$(DATESTRING).tar.bz2 *
Code: Select all
1>------ Build started: Project: TutorialNds, Configuration: Debug Win32 ------
1>Performing Makefile project actions
1>rm -fr bin
1>mkdir -p bin
1>find ./ -name *.nds -exec cp -fv {} bin \;
1>Build log was saved at "file://c:\DSProjects\TutorialNds\TutorialNds\Debug\BuildLog.htm"
1>TutorialNds - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Code: Select all
Build Log Build started: Project: TutorialNds, Configuration: Debug|Win32
Command Lines Creating temporary file "C:\Users\Soufiene\AppData\Local\Temp\BAT00000716684324.bat" with contents
[
@echo off
make -r 2>&1 | sed -e 's/\(.[a-zA-Z]\+\):\([0-9]\+\):/\1(\2):/’
if errorlevel 1 goto VCReportError
goto VCEnd
:VCReportError
echo Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
exit 1
:VCEnd
]
Creating command line "C:\Users\Soufiene\AppData\Local\Temp\BAT00000716684324.bat"
Output Window Performing Makefile project actions
rm -fr bin
mkdir -p bin
find ./ -name *.nds -exec cp -fv {} bin \;
Results Build log was saved at "file://c:\DSProjects\TutorialNds\TutorialNds\Debug\BuildLog.htm"
TutorialNds - 0 error(s), 0 warning(s)
If you need anymore details to help me, please notify me.
PS : Sorry for my wrtiting, I don't write pretty well in English, I'm French