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 > Need help getting started (CreateProcess in Windows Vista)

#134475 - Snaeng - Fri Jul 13, 2007 10:10 am

Hello.

First of all, I'm totally new to this, so don't kick me if I do something pretty dumb. :)

I'm interested in coding for the Nintendo DS, I also already have soem knowledge in a couple of coding languages, including C++.

I followed a couple of tutorials, but all are the same: Download devkitpro, install it, go to an example and run make.
But here is already my problem:

Quote:
C:\devkitPro\examples\nds\Graphics\2D\hello_world>make
main.cpp
arm-eabi-g++ -MMD -MP -MF /c/devkitPro/examples/nds/Graphics/2D/hello_world/buil
d/main.d -g -Wall -O2 -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer -ffast
-math -mthumb -mthumb-interwork -I/c/devkitPro/examples/nds/Graphics/2D/hello_wo
rld/include -I/c/devkitPro/examples/nds/Graphics/2D/hello_world/build -I/c/devki
tPro/libnds/include -I/c/devkitPro/libnds/include -I/c/devkitPro/examples/nds/Gr
aphics/2D/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /c/devkitPro/exa
mples/nds/Graphics/2D/hello_world/source/main.cpp -o main.o
arm-eabi-g++.exe: CreateProcess: No such file or directory
make[1]: *** [main.o] Error 1
make: *** [build] Error 2


As you can see, it tells me no such fiel or directory. The examples are installed properly, and there is also no space in the filename. So why is this happening? I didn't change anything, so shouldn't it work right after installation?
I'm using Windows Vista 32 Ultimate, could it be a issue with my operating system?


I hope you can (and will) help me. :)


Snaeng

[Subject Fairy was here]

#134478 - simonjhall - Fri Jul 13, 2007 10:59 am

Snaeng wrote:
I'm using Windows Vista 32 Ultimate, could it be a issue with my operating system?
Yes, Vista doesn't function proper-like with recent versions of gcc (and also some binutils).
You're either gonna have to source some other operating system (eg XP) or roll with Linux inside VMWare or something until the problem is fixed.
Btw this problem seems to affect not only the ARM versions of the toolchains but for other (non-DKP) targets too...
_________________
Big thanks to everyone who donated for Quake2

#134483 - Snaeng - Fri Jul 13, 2007 11:14 am

Thanks for the answer, but I made it already working! :)
I just had to add additional paths to my PATH-var. Now it works and I was able to compile the examples. :)

#134485 - simonjhall - Fri Jul 13, 2007 11:24 am

Haha, well it looks like you're one of the lucky ones! Welcome to DS programming :-)
Either way, Vista/gcc/bintutils problems should be fixed soon...
_________________
Big thanks to everyone who donated for Quake2

#134489 - Snaeng - Fri Jul 13, 2007 11:40 am

Thanks. :)

But I'm having one more little problem, maybe you can help me.

With the exampel makefile, the cpp files have to be in one of these directories: gfx source data
But usually in Visual Studio the cpp files are in the project dir. For example the project is called "Fubar", then the cpp files are in:
..projects/Fubar/Fubar/
I want to edit the makefile to use the files from that directory. But how?
I tried
SOURCES := gfx source data $(CURDIR)
SOURCES := gfx source data $(CURDIR)/
SOURCES := gfx source data $(shell basename $(CURDIR))

Each doesn't work. When I copy the test cpp file into the subdir "source", then it works.

Do you maybe know what I have to write there?

#136857 - jello62 - Sun Aug 05, 2007 11:26 pm

Snaeng, could you please post which directories you had to add to your path in order to get rid of the CreateProcess error during makes. I am getting the same error on Vista and am going crazy trying to fix it.

Any help would be greatly appreciated.

Thanks!

#136875 - calcprogrammer1 - Mon Aug 06, 2007 2:04 am

For all of you saying Linux is better than Windows for development, I think the opposite. I've had great success using Visual C++ 2005 Express + the PAlib App Wizard (which would work with libnds, just change the includes from PAlib to libnds), in Windows XP. It has the compiler and stuff set up for you, and you can add an option to test it in an emulator (or multiple emulators) and copy it to your media to test on real hardware.

I use Linux for everything BUT development it seems (and Wiimote use) because there seems to be no decent development environment for it.
_________________
DS Firmware 1, Datel Games n' Music card / Chism's FW hacked GBA MP v2 CF

There's no place like 127.0.0.1.

#136887 - jello62 - Mon Aug 06, 2007 3:58 am

Setting my PATH environment variable to PATH=C:\devkitPro\devkitARM\bin;C:\devkitPro\devkitARM\arm-eabi\bin;C:\devkitPro\devkitARM\libexec\gcc\arm-eabi\4.1.1;%PATH% has allowed me to compile with devkitPro.

So far, so good.

#136926 - wintermute - Mon Aug 06, 2007 4:03 pm

Not really.

Having your path set this way will break your toolchain when release 21 is availalable.

Make a note:

"When I update devkitARM, fix the PATH"
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog