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 > How do I set up DevKitPro with Programmers Notepad?

#121026 - TheAvenger - Thu Mar 08, 2007 8:10 am

OK this is a bit of a newbish question but I just can't seem to get it figured out, I've tried following the tutorial on the DevKitPro website but when I press make this comes up.

> "make" make C:\Documents and Settings\My Username\My Documents\R4DS\My DS Development\Tutorials\arm9\source\

> Failed to create process: The system cannot find the file specified.

The makefile's in the same directory as the .pnproj file that I'm using with the template, and I've also put one into the 'source' directory, is there something stupid I'm missing?

Thanks

#121028 - simonjhall - Thu Mar 08, 2007 8:36 am

Do you have 'make' in your path? Sounds like it can't run the program...
_________________
Big thanks to everyone who donated for Quake2

#121032 - TheAvenger - Thu Mar 08, 2007 8:44 am

huh? No there is no 'make' in my path, but this is how the tutorial at devkitpro.org tells you to do it. Can anyone enlighten me on the correct way to do this?

#121041 - OOPMan - Thu Mar 08, 2007 11:42 am

devkitPro and, by extension, devkitARM don't place nicely with long filenames. Neither does MSys.

Install DKP in a directory like C:\development and ensure you don't use any spaced filenames, since you will have problems...

Also, make sure that the windows path settings contain an entry for the binary directories used by devkitARM and MSys...
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI

You can find my NDS homebrew projects here...

#121052 - wintermute - Thu Mar 08, 2007 2:14 pm

OOPMan wrote:
devkitPro and, by extension, devkitARM don't place nicely with long filenames. Neither does MSys.


They play fine with long filenames, just not ones with spaces.

It's probably best to just use the installer on windows - all the awkward stuff is done for you then.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#121061 - OOPMan - Thu Mar 08, 2007 4:31 pm

Crap, that's what I meant :-(

Doh!!!
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI

You can find my NDS homebrew projects here...

#121073 - TheAvenger - Thu Mar 08, 2007 5:51 pm

I did use the windows installer, and all the compiler stuff is in C:\DevKitPro it's just the file that's not, do I need to have the file in the same directory as the "make" program (msys).

#121085 - Cearn - Thu Mar 08, 2007 7:38 pm

TheAvenger wrote:
I did use the windows installer, and all the compiler stuff is in C:\DevKitPro it's just the file that's not, do I need to have the file in the same directory as the "make" program (msys).

No; like tepples said, it just needs to be in a directory without spaces in its path.

For example in
Code:
make C:\Documents and Settings\My Username\My Documents\R4DS\My DS Development\Tutorials\arm9\source\

will try to use the directory 'C:\Documents', because as far as it's concerned the path ends at the next space. I believe it's possible to avoid this by putting quotes around the path, but the normal advice is to just use a path that doesn't have spaces in it.

#121086 - TheAvenger - Thu Mar 08, 2007 7:47 pm

aha, thanks I'll try that and get back to you.

#121110 - simonjhall - Fri Mar 09, 2007 1:28 am

The problem really sounds like it can't find make, not that it can't find the makefile. Open a dos box and type make. If you get an error about it not being recognised as a valid command then you know that your paths aren't set up right.

If that's the case, do a find for make.exe and add the directory it's in to your PATH variable.

You know when you've got it right as you'll be able to open a fresh command prompt (not an existing one) and type make and you'll get an error like
Code:
make: *** No targets specified and no makefile found.  Stop.
instead.
_________________
Big thanks to everyone who donated for Quake2

#121114 - Mchart - Fri Mar 09, 2007 2:42 am

If you use the automated windows installer, you don't even have to worry about this.

#121128 - TheAvenger - Fri Mar 09, 2007 8:09 am

Gah, I honestly thought that would work, but I've associated that and it doesn't work anymore either. I'm going to reinstall it and see what happens.

#121129 - TheAvenger - Fri Mar 09, 2007 8:11 am

Ah, it seems to have forgotten the path I assigned, I shall reinstall it.

#121418 - TheAvenger - Mon Mar 12, 2007 8:10 am

I added the path and everything but I was stilll getting some problems so I decided to reinstall it and this is now what I'm getting, can anyone tell me how to fix this?

Code:
> "make"
basename: too many arguments
Try `basename --help' for more information.
"make": make: Command not found
"make": *** [build] Error 127

> Process Exit Code: 2
> Time Taken: 00:02

#121472 - TheAvenger - Mon Mar 12, 2007 5:26 pm

Anyone? I tried googling it with no reward.

#121476 - wintermute - Mon Mar 12, 2007 6:16 pm

Put the toolchain and your project in a path with no spaces.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#121478 - TheAvenger - Mon Mar 12, 2007 6:22 pm

Is there any other way to do this? I will try and put it in a path with no spaces but I'm not using it on an administrator account so it might be hard. If there's no other way I'm sure I could figure something out.

#121483 - tepples - Mon Mar 12, 2007 6:47 pm

If your system administrator permits the use of devkitARM software on the computer, then your system administrator can create the folder "C:\devkitPro" and give you write access.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#121490 - TheAvenger - Mon Mar 12, 2007 7:05 pm

OK, I've got it all set up and working on an administrator account, how do I give my normal account write access. Thanks for all your help by the way.

#121500 - tepples - Mon Mar 12, 2007 7:23 pm

Start by right-clicking the the "devkitPro" folder icon > Properties > Security
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#121579 - TheAvenger - Tue Mar 13, 2007 8:10 am

Well it's all sorted now, many thanks for your help, I'm sure I'll be back here when I need more help or have made a game, thanks.