Compiling issues : 'uname' is not recognized - General Discussion and Assistance - CHDK Forum
supplierdeeply

Compiling issues : 'uname' is not recognized

  • 3 Replies
  • 5226 Views
Compiling issues : 'uname' is not recognized
« on: 11 / June / 2008, 05:34:50 »
Advertisements
Hi all,
  I'm trying to compile CHDK and I'm having some trouble with the steps given in the wiki. I'm at the stage where you first compile the source code. I'm using revision 412 and have it stored in c:\CHDK. So following the instructions I proceed to the directory c:\CHDK\branches\grand\. I then type the command "gmake fir" and get the following error message.

'uname' is not recognized as an internal or external command,
operable program or batch file.
process_begin: CreateProcess(NULL, expr + 1, ...) failed.
"**** Build: "
i was unexpected at this time.
gmake: *** [all-recursive] Error 255

I'm not very familiar with c, I mainly work with java so i'm not sure about the error. If anyone could give any help I'd really appreciate it.

*

Offline fe50

  • ******
  • 3096
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Compiling issues : 'uname' is not recognized
« Reply #1 on: 11 / June / 2008, 06:05:14 »
Hi joey.enfield,
your PATH environment variable is wrong, the gcc bin folder (uname is located here) is not in your PATH...

Go the easy way with a great tool done by whim  8):
- load CHDK Shell here (Thread is here)
- unzip, put gcc in place...or only start CHDK Shell and read the messages
- let CHDK Shell download the latest trunk (Allow Internet)
- check the builds you want to compile

Have fun !

Re: Compiling issues : 'uname' is not recognized
« Reply #2 on: 28 / August / 2011, 06:48:28 »
Hi,

I know this is an old thread, but this is exactly what I experience as well:

I've never compiled CHDK before.
Downloaded and installed Whim's GUI tool (v3.30, updated to v3.34).
Upon compiling I get the exact same error as Joey!

I've set the PATH variable manually as well, but it didn't solve the issue...

When I open the command window using the icon in the CHDK shell, and run gmake from there, I get the same errors.
Running uname from that same command window DOES work! Just doesn't seem to work when gmake tries to run uname... Would gmake use a different PATH variable?


edit:
I had this problem when I compiled the included (old) chdk trunk 300
Whim's tool now downloaded trunk 1305, now I have this very similar issue:
Code: [Select]
C:\Documents\Develop\CHDK\shell\trunk\trunk1305>gmake PLATFORM=a560 PLATFORMSUB=
100a firzipsubcomplete
**** GCC 3.4.6 : BUILDING CHDK-CHDK, #0.9.9-1305 FOR a560-100a
>> Cleaning in tools
which is not recognized as an internal or external command,
operable program or batch file.
i was unexpected at this time.
C:\Documents\Develop\CHDK\shell\gcc\bin\gmake.exe[1]: *** [clean-recursive] Error 255
gmake: *** [clean-recursive] Error 1
C:\Documents\Develop\CHDK\shell\trunk\trunk1305>

So I guess the same PATH issue remains...

(running winXP)

Thanks,
Brecht
« Last Edit: 28 / August / 2011, 08:01:08 by bameije »

*

Offline fe50

  • ******
  • 3096
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Compiling issues : 'uname' is not recognized
« Reply #3 on: 29 / August / 2011, 01:28:15 »
Hello & welcome !

Code: [Select]
C:\Documents\Develop\CHDK\shell\trunk\trunk1305>gmake PLATFORM=a560
Is this the Windows XP default "My Documents" folder, with the real folder name "Documents and Settings" ?

--> Dont use folder names with space characters !!!

Move your CHDK folder,
or better: download a fresh copy of the CHDK-Shell & unpack to a path without spaces (as stated in the CHDK-Shell wikia article).


 

Related Topics