CHDK Forum

CHDK Development => General Discussion and Assistance => Topic started by: vine on 11 / May / 2008, 10:13:11

Title: Error compiling using gcc_env_for_hdk-3.4.6
Post by: vine on 11 / May / 2008, 10:13:11
I am trying to compile CHDK for the first time on my own. I followed this guide: Compiling CHDK under Windows - CHDK Wiki (http://chdk.wikia.com/wiki/Compiling_CHDK_under_Windows)
However I get the following error:

Code: [Select]
Z:\CHDK\trunk>gmake fir
**** Build: 51
>> Entering to tools
/usr/bin/sh: -c: line 1: syntax error near unexpected token `;'
/usr/bin/sh: -c: line 1: `for i in ; do  echo \>\> Entering to tools/$i;  z:/CHD
K/gcc/bin/gmake.exe -C $i FOLDER="tools/$i/" || exit 1;  echo \<\< Leaving tools
/$i;  done'
z:\CHDK\gcc\bin\gmake.exe[1]: *** [all-recursive] Error 258
gmake: *** [all-recursive] Error 1
Title: Re: Error compiling using gcc_env_for_hdk-3.4.6
Post by: vine on 11 / May / 2008, 15:36:13
I'm running Windows XP 32bit and followed steps on the linked wiki page. It should work shouldn't it?
Title: Re: Error compiling using gcc_env_for_hdk-3.4.6
Post by: whim on 12 / May / 2008, 03:11:10
Yes, I've had it working on XP SP2 32-bits (if that was your question)
check the following:
Did your path environment change 'take' ?
  - in a cmd box, change to the path that contains your source 'Makefile'
  - type set <Enter>
  - check the PATH
  - if Ok, try 'gmake fir' again; if not you might have to reboot first.

Other possible 'spoil-sports': any compilers that use the make system and have their path before your 'gcc\bin' in PATH

You could also try my Windows shell for trunk building here: zSHARE - chdk-shell-v125.zip (http://www.zshare.net/download/104761354c4028ad/)

wim


Title: Re: Error compiling using gcc_env_for_hdk-3.4.6
Post by: vine on 12 / May / 2008, 03:20:31
Other possible 'spoil-sports': any compilers that use the make system and have their path before your 'gcc\bin' in PATH
Thanks, that was the problem, the path for WinAVR was interfering. Now it works flawlessly. Thanks again.
Title: Re: Error compiling using gcc_env_for_hdk-3.4.6
Post by: zeno on 12 / May / 2008, 04:18:14
posted to wrong topic - sorry!