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.

Beginners > Devkitpro - Win 98 - Environmrnt Variables

#115988 - Funky Gibbon - Sat Jan 20, 2007 11:06 pm

Sorry if this question has been posted before.

How to set environment variables for DevKitPro in win98?
I cannot use XP on this puter and have tried setting it up for DKP but as yet am still having problems with paths and building source code.

any help would be greatly apreciated

#115990 - gmiller - Sat Jan 20, 2007 11:27 pm

You need to make sure that the path name to the devKitPro tools has no folders with spaces in them. Then you need to add a few things to your PATH environment variable (not sure on WIN98 where that is). If you put devKitPro in "c:\devkitPro" then your path needs:

c:\devkitPro\msys\bin

You will also need a DEVKITPRO environment variable (assuming it is installed where I said):

/c/devkitPro

Some of the included makefile also assume the the DEVKITARM and DEVKITARMBIN are defined. Again assuming you installed as I said:

DEVKITARM - /c/devkitPro

DEVKITARMBIN - /c/devkitPro/bin


This should be all that is needed for ARM development. There are more that "could" be defined but this is the minimum.

#116039 - wintermute - Sun Jan 21, 2007 10:31 am

You need to edit your AUTOEXEC.BAT file

see http://www.computerhope.com/ac.htm

add c:\devkitPro\msys\bin to the path variable in there and add the two variables DEVKITPRO and DEVKITARM.

Code:

SET PATH=c:\devkitPro\msys\bin;C:\WINDOWS;C:\
SET DEVKITPRO=/c/devkitPro
SET DEVKITARM=/c/devkitPro/devkitARM


These assume that you used the installer & installed in the default location, replace c:\devkitPro and /c/devkitPro in the paths above as appropriate if you used a different path.

Note: DEVKITPRO & DEVKITARM contain unix style paths


You'll need to reboot your PC after editing AUTOEXEC.BAT
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#116040 - wintermute - Sun Jan 21, 2007 10:33 am

gmiller wrote:


DEVKITARMBIN - /c/devkitPro/bin



Not quite sure where you got this one from, it's not defined or used by any of the devkitARM examples.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog


Last edited by wintermute on Mon Jan 22, 2007 11:15 am; edited 1 time in total

#116061 - gmiller - Sun Jan 21, 2007 3:27 pm

wintermute wrote:
gmiller wrote:


DEVKITARMBIN - /c/devkitPro/bin



Not quite sure where you got this one from, it's not defined or used by and of the devkitARM examples.


I was surprised to see it there as well but I did not want to kill some other part of the install. It may have been added by some application I just installed (CodeBlocks::) or I might have used in a makefile some time in the past and not cleaned it up. I will remove it and see what breaks. Sorry for the miss-information in this case.

#116062 - Funky Gibbon - Sun Jan 21, 2007 4:00 pm

Thanks for the replies, all help is apreciated

Ok, added comments to autoexec.bat
this is what i got.

> "make"
Makefile:10: /c/devkitPro/devkitARM: Permission denied
Makefile:10: /gba_rules: No such file or directory
"make": *** No rule to make target `/gba_rules'. Stop.

This is Line 10 of the makefile include $(DEVKITARM)/gba_rules

gba_rules is where it should be, my puter is just blind, should have gone to specsavers

this laptop is 233mmx and used only for dev'ing, MPLab and stuf, i did put XP on here and devkit worked first time but it was like following a tractor down a narrow lane, slow and frustrating, so thats why it needs to run on WIN98.

anyhow, i'll keep at it

#116064 - Funky Gibbon - Sun Jan 21, 2007 4:38 pm

OK, i forgot to say, yes i did use the installer "as is"
your surgestions have helped but i still get this error with gba_rules, to see if it was just the file i built a project for NDS and Make came up with the same error except for DS_rules instead
If that makes any sense

#116065 - gmiller - Sun Jan 21, 2007 4:57 pm

If the install completed correctly then in the DEVKITARM folder you will find the missing "files". Are you using make from the command prompt or in some IDE? If you are using the command prompt are you doing this from the MSYS command prompt or the Windows (cmd or command) prompt?

#116068 - Funky Gibbon - Sun Jan 21, 2007 5:29 pm

yes, the files are in devkitARM directory, was running make fron the IDE, same error comes up when i run make from msdos prompt,
it must be something simple im just not seeing it

#116071 - gmiller - Sun Jan 21, 2007 6:15 pm

I assume that there are no spaces in the path to your devkitPro pieces or the location where you are doing your development. The utilities assume unix style folder and file names so no spaces allowed. I have always done the make from the "msys" command prompt not the windows command prompt so I don't know if this will make a difference. I just tried it from the command prompts on XP and it works for me.

#116073 - gmiller - Sun Jan 21, 2007 6:16 pm

the other thing I just though of is if there is another "make" that is being found in your path before the make in the DEVKITARM is found...

#116081 - Funky Gibbon - Sun Jan 21, 2007 7:40 pm

Somethings happened, i copied the autoexec surgestion earier, it hekped with some paths but not all, so i have a look at the environment variables on my XP machine and copied the relavent ones to laptop and now DKP compiles

seems to work ok now
SET PATH=c:\devkitPro\msys\bin
SET DEVKITPRO=/c/devkitPro
SET DEVKITARM=/c/devkitPro/devkitARM

Thanks to all for your help