Windows GUI for trunk building - page 18 - General Discussion and Assistance - CHDK Forum supplierdeeply

Windows GUI for trunk building

  • 771 Replies
  • 253814 Views
*

Offline silas

  • *
  • 19
Re: Windows GUI for trunk building
« Reply #170 on: 05 / January / 2009, 16:57:08 »
Advertisements
PATH=C:\silas\programs\chdkshell\gcc\bin;C:\watcom-1.3\binnt;C:\watcom-1.3\binw;C:\Program Files\MiKTeX 2.7\mikte
x\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\M
ATLAB\R2008a\bin;C:\Program Files\MATLAB\R2008a\bin\win32;C:\Program Files\Torto
iseSVN\bin

This is the path wo are displayed in the cmd window when in start the compiling (i deleted c:\tmp\gcc432_env_for_chdk\bin, this was an place who i tried to compile chdk whit cygwin)

I dont think that there are any program wo uses cygwin.
« Last Edit: 05 / January / 2009, 16:59:29 by silas »

*

Offline whim

  • ******
  • 2044
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Windows GUI for trunk building
« Reply #171 on: 05 / January / 2009, 17:25:52 »
@silas

it's not wether a program uses Cygwin that matters - Cygwin will automatically restore it's mount points at
every Windows boot through it's registry entries.
Please search for 'Cygnus' keys in regedit and disable them.

wim


*

Offline fe50

  • ******
  • 3139
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Windows GUI for trunk building
« Reply #172 on: 05 / January / 2009, 17:40:13 »
@silas
Have you seen Reply #165, do you have also something like that ?

*

Offline whim

  • ******
  • 2044
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Windows GUI for trunk building
« Reply #173 on: 15 / January / 2009, 09:50:34 »
@silas
@fe50

After over a week of googling around and trial & error on my Vista laptop, i must admit your right, silas. What's worse
is that i haven't been able to find a solution. My findings so far:

1. the 'sh.exe' in both the GCC3 and GCC4 devkit (as found on fe50's drop.io) actually is a renamed 'zsh.exe' , you
     can verify by starting it and typing 'echo $ZSH_VERSION'
2. The CHDK Makefile somehow only works with zsh, any other shell makes it barf (talking XP here)
3. ZSH uses various windows dll's, and one of them in Vista has been made more rigid in it's error checking, which leads
    to the 'can't fork' error ... and even though i found 2 newer versions on the Web, neither of them behaves better than
    'our' well-known sh.exe on Vista.
    Incidentally, it seems that My Crosoft had the clever idea to build it's own cygwin-like Unix emulation layer ("SUA"),
     except a) they don't advertise or activate it out-of-the-box and b) it only works on Vista Ultimate/Enterprise !

So I guess (until some of the above changes) i must give up on making the GCC4 mentioned above Vista compatible.

That leaves Vista owners with 2 options:

1. Create a Virtual Machine hosting Win 2000/XP/Linux and install appropiate devkit on that
2. Use cygwin to compile a 4.3.2 devkit: http://chdk.wikia.com/wiki/User:Geekmug/Compiling_CHDK_under_Windows
    (warning: this took several hours on my netbook !)

I'm currently working on selectable devkit paths in CHDK-Shell, to help making method 2 less painfull.

On a more positive note, i played a bit with the 7-zip to create a selfextracting all in 1 kit; amazingly (due to large portions
of GCC3 and GCC4 devkits being identical) the self-extractor is only 22 Mb, for a payload of ~250 Mb. Expanding this to an
empty folder (with no spaces in the path, as usual !) gives you a ready-to-run CHDK-Shell+GCC3+GCC4+trunk676.
Testing appreciated, it's here: http://drop.io/gcc_for_chdkshell

wim

PS Interesting tidbit: the gmake in the devkit supports a switch for multi-threading ( '-j 2', '-j 4' etc.) I tried this with GCC4
     and got an (estimated) 25% compilation speedup on a single core machine with '-j 2' ...
     edit: speedup only for devkits installed on FAT32 partitions  ???
« Last Edit: 15 / January / 2009, 10:25:29 by whim »


*

Offline whim

  • ******
  • 2044
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Windows GUI for trunk building
« Reply #174 on: 15 / January / 2009, 21:07:41 »
Allright, time for a new release (2 in fact). I finally got the hang of 'drop.io', so now I don't need to bother others
anymore ... the drop is here http://drop.io/gcc_for_chdkshell

chdk-shell-v193_gcc3_gcc4-sfx.exe
  • Self extractor containing CHDK-Shell-v193, GCC 3.4.6, GCC 4.3.2 + trunk679
  • Switchable support for GCC3 / GCC4 (obviously)

chdk-shell-v194-sfx.exe
  • new SFX format: just browse to install folder
  • added support for external PRIMARY_ROOT
  • note: contains no install routines, expects devkits in 'gcc' and 'gcc4'
    install this preferably over v193 above

have fun,

wim

PS Devkits in v193 are MinGW/MSYS based and still DO NOT SUPPORT Vista !
 

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Windows GUI for trunk building
« Reply #175 on: 15 / January / 2009, 21:20:12 »
nice whim, as always :)

btw one thing could be added: patch files :D for users without knowledge of patching/diffing. svn is in the devkit, so it shouldnt be a problem (in theory) applying diffs. like the user selects a diff in a dialog, it gets applied and hopefully it compiles.

on the other hand, you are making it far too easy for newbies now, why should we make it even easier :D

*

Offline whim

  • ******
  • 2044
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Windows GUI for trunk building
« Reply #176 on: 15 / January / 2009, 22:12:50 »
@phox

that's still on the list  :D

wim

BTW allready found a bug: i forgot that gmake will probably not take kindly to 'PRIMARY_ROOT=X:\somewhere' (windows path)
       oh well first get some sleep  :D
« Last Edit: 15 / January / 2009, 22:17:44 by whim »

*

Offline silas

  • *
  • 19
Re: Windows GUI for trunk building
« Reply #177 on: 16 / January / 2009, 10:53:18 »
Is it possible to compile whit linux?
I found this:
http://chdk.wikia.com/wiki/Compiling_CHDK_under_Linux
Is this the only way?
« Last Edit: 16 / January / 2009, 11:03:44 by silas »


*

Offline whim

  • ******
  • 2044
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Windows GUI for trunk building
« Reply #178 on: 16 / January / 2009, 12:01:01 »
@silas

Have never tried that ...

You could try the cygwin method (under Windows Vista) as described here: http://chdk.wikia.com/wiki/User:Geekmug/Compiling_CHDK_under_Windows

Method worked for me under Vista, the resulting compiler system is tied to the machine it's built on, which made me give
up on constructing a portable devkit out of it.

wim

« Last Edit: 16 / January / 2009, 12:06:24 by whim »

*

Offline Hacki

  • ****
  • 359
  • EOS 80D
Re: Windows GUI for trunk building
« Reply #179 on: 16 / January / 2009, 12:18:37 »
I packed up the autobuilds env and gave it to him via IRC. Worked.

(Its compiled under debian etch, he's running ubuntu - no idea who it'll behave on newer systems or redhat / suse)


 

Related Topics