#119109 - darknut101 - Mon Feb 19, 2007 8:15 pm
I'm using visual ham to interface with HAM lib. I'm using the latest versions of both (vham 2.6, ham 2.8) but everytime I try to make a build i get an error that says Quote: |
'make.exe' is not recognized as an internal or external command, operable program or batch file. |
i would have posted this question in the ham forums but they seem fairly inactive. can anyone help me or give me some insight to what I'm doing wrong? any help would greatly be appreciated. thanks,
-AJ
#119110 - tepples - Mon Feb 19, 2007 8:36 pm
- Have you read the "C and C++" section of the FAQ at the top of this forum?
- Do you know what environment variables are?
- Have you put the folder that includes make.exe into your PATH?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#119111 - darknut101 - Mon Feb 19, 2007 8:48 pm
1. yes
2. yes
3. yes
#119125 - gauauu - Mon Feb 19, 2007 11:17 pm
First, type make at a command line to make sure your command line stuff is set correctly.
If it is, it looks like visual Ham is using a different environment than your standard windows one...look for path options within your ham compile settings.
#119167 - KayH - Tue Feb 20, 2007 12:12 pm
Additional to the answers above, you may have luck and Peter read this question in here. He is also very helpfull and active in the ham forum! (But if nobody has a question, there is no need to answer one ;-) ) Some other HAM/HEL developers are also very helpfull at the HAM forum. You should try this out, because it is more specialized. AFAIK there are a config file for the HAM and VHam environment, but I do not have the name handy.
Make also sure there is NO space inside the folder names!
#119199 - gmiller - Tue Feb 20, 2007 7:09 pm
Under the Advanced->Options-Environment have you defined the HAMDIR and PATH symbols correctly? Are you using devKitPro or the tools with Ham? I am using devKitPro so I have the following defined:
Code: |
HAMDIR - c:\devkitPro
PATH - %HAMDIR%;%HAMDIR%\tools\win32;%VHAM_BIN%;%PATH%
|
My System PATH is:
Code: |
(stuff);c:\devkitPro\msys\bin;(more stuff)
|
The error you are getting is telling you that the make utility can not be found using your standard path. Once that can be found then the make can add more things to the PATH during it's execution.
Note: Do not place the tools or your projects in folders that have spaces in them from the root of the drive.
#119317 - darknut101 - Wed Feb 21, 2007 9:23 pm
thanks for all the help. i feel really stupid but it turns out i had the HAMDIR variable set incorrectly. I had it set for a different directory for a previous installation of ham. thanks again.
-aj
#119320 - gmiller - Wed Feb 21, 2007 10:18 pm
Don't worry about it ... things can happen. I have a student in my class this month that can compile any code for the GBA but can not link any of it. The collect2 utility is failing with an "unknown error". I have been looking at the environment variables and everything and I still can't locate the issue. The debugging of the type of problem you had is pretty straight forward once you recognize what the error message is trying to tell you.