Page 1 of 1

Problem building project in Windows 7 (nds)

Posted: Fri Apr 15, 2011 4:17 pm
by Baro
When running make, it tries to run a file named "[", which of course doesn't exist. It also creates a folder named -p.
The makefile I'm using is the one for the nitroFS example, which doesn't compile either. Anyway, in my old computer the code used to compile, so the problem must have to do with my current configuration.

Code: Select all

process_begin: CreateProcess(NULL, basename D:/Dropbox/Project2BJ/hw, ...) failed.
"[" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
Ya existe el subdirectorio o el archivo build.
Error mientras se procesaba: build.
make: *** [build] Error 1
My guess is that it isn't understanding correctly these lines:

Code: Select all

$(BUILD):
	@[ -d $@ ] || mkdir -p $@
	@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
I have the GNUWin32 make.exe version 3.81 (Although my system is 64 bits, but that shouldn't affect the case), and devkitpro is upgraded.

Any ideas on getting this to work? Thanks in advance!

Re: Problem building project in Windows 7 (nds)

Posted: Sat Apr 16, 2011 4:38 pm
by WinterMute
Remove GnuWin32 make and ensure you have msys installed, the gnuwin tools aren't compatible.

Re: Problem building project in Windows 7 (nds)

Posted: Sun Apr 17, 2011 12:43 pm
by Baro
I noticed while trying to reinstall from the downloaded files that there was something wrong with the msys file (couldn't open as archive), so I downloaded the devkitpro files and installed again, and everything works fine. Thanks!