Help to setup Visual C++ Express 2008 + Vista

support for the ARM toolchain
Post Reply
Averroes
Posts: 2
Joined: Sat Sep 27, 2008 6:06 am

Help to setup Visual C++ Express 2008 + Vista

Post by Averroes » Sat Sep 27, 2008 6:41 am

Hello Everyone,

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++
Folder content :
ImageImage

main.cpp

Code: Select all

#include <nds.h>
#include <stdio.h>

//---------------------------------------------------------------------------------
int main(void) {
//---------------------------------------------------------------------------------

	
    irqInit();
	irqEnable(IRQ_VBLANK);
	

	return 0;
}

Makefile :

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 *

Build error

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 ==========
Build log error

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)
  

Thanks for your help.

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

Averroes
Posts: 2
Joined: Sat Sep 27, 2008 6:06 am

Re: Help to setup Visual C++ Express 2008 + Vista

Post by Averroes » Sat Sep 27, 2008 9:51 pm

I`ve found out why it didn't. I've taken the wrong makefile.
The makefile I work with know is the one in template\arm9.

But which one i need in templates folder between arm9, arm9lib, combined or dldi for nds development?

I had to modify the make file in order to use the current directory for source file because VC++ create all the files created with Add Item menu in the project folder.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest