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

Windows GUI for trunk building

  • 771 Replies
  • 309594 Views
*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Windows GUI for trunk building
« Reply #540 on: 16 / May / 2011, 13:54:54 »
Advertisements
CHDK-Shell-v323 (update version)

  • fixed:      Hope I caught most of the graphical bugs introduced with v 3.22 ;)
                  Some labels did not always display as they should, and GUI position
                  sometimes showed unwanted jumps.  Also, "GUI.." dialog will now
                  automatically detect and adapt the maximum size offered by the
                  'Quick' size buttons. Thanks for reporting, gehtnix.

  • Security: Clean according to Jotti. Checksums (FileAlyzer) are:
                  CHDK-Shell-v323-sfx.exe
                  CRC-32:  1B1F804E
                  MD5:      8C360A314BFFB6E97D48BA6AC0387004
                  SHA1:     78BE2C2A9AE4FDF3324134602DBAF251DDE02768
                  CHDK-Shell_Updater.7z
                  CRC-32:  907B62B7
                  MD5:      5A5CB819E50DAEE8F69D8903FB207784
                  SHA1:     3B06B0E96F13D3AB44C2D12492C41817772AEB73

cheers,

wim

[ Have 7z & a recent*) version ? Save bandwidth, use CHDK-Shell-updater.7z  ]

*) recent = same minor version, so currently 3.2.0 and higher

*

Offline ultimA

  • ***
  • 137
Re: Windows GUI for trunk building
« Reply #541 on: 21 / May / 2011, 01:16:49 »
I'm seeing something strange with the CHDK-Shell releases on a particular machine.

I figured that since some relases, probably to save download size, the common files for the different gcc versions come in the _base folder, and on first start this gets copied to the gcc folders an then deleted.

On a computer I was installing CHDK-Shell last day, the copying fails. It is a Windows 7 (eng) computer. The copy is unsuccessfull, but CHDK-Shell does not detect this error and thinks it was made, and then it deletes the _base folder. The result is that I get all sorts of errors about wget, tee, etc missing.

But this is not the worst part. After this happens, I cannot focus ANY application anymore, and I need to logout using ctlr-alt-del or restart the computer to get the machine usable again. Technically, the applications do get the focus when I click on them, but then they immediatley lose it, so I have no chance of executing any other operation. It's as if there was an invisible modal window somewhere else. This is reproducible and happens every time when I get the error from CHDK-Shell that I mentioned above.

The easy solution for me was to copy the _base folder manually to all three gcc folders. After that it works like a charm.
I also tried starting CHDK-Shell as Administrator, but this didn't help either, so permissions are not the problem.

So there are two questions: Why is the _base folder copy failing? And why does CHDK-Shell in that case ruin the focusability of all other applications?

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Windows GUI for trunk building
« Reply #542 on: 21 / May / 2011, 06:51:24 »
Hi ultimA,

Thanks for the detailed report - I'm pretty surprised though, I currently develop on a Win 7 machine, and I did test
the 3.20 full release ... I do need to add more error checking though, deleting _base before checking success of
copying is stupid.

- Why is the _base folder copy failing?
As I said, no idea ATM - if it isn't permissions, maybe I should force file/folders read-only attribute off, in case
this somehow gets inherited from parent folders on the target machine

wim

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Windows GUI for trunk building
« Reply #543 on: 21 / May / 2011, 16:20:49 »
CHDK-Shell-v324 (update version)

  • fixed:      Code for preparing the DevKits (after a full install) now has its
                  own GUI, providing step by step feedback on progress and success.
                  Additionally, the program should now gracefully bow out if anything
                  went wrong. Thanks for reporting, ultimA !

  • fixed:      Option to not show the release notes after a program update
                  (in Program Options -> Updates) was not properly read back from
                  the ini file.

  • added:     A text file with compile options is added to each zip with compiled
                   binaries (buildconf.txt, a copy of localbuildconf.inc)

  • Security: Clean according to Jotti. Checksums (FileAlyzer) are:
                  CHDK-Shell-v324-sfx.exe
                  CRC-32:  B35661B3
                  MD5:      5CBDBF51B655077BF26CCD3ED8552C97
                  SHA1:     7C4BCD19B8FA2655D0C1D603D27D35151C37C1B2
                  CHDK-Shell_Updater.7z
                  CRC-32:  4ACB59EA
                  MD5:      D370DF61E749D31A797DB3C5C0BDDF3D
                  SHA1:     2167A95F82207D0D5ADAE1CC37B05A079B41DE61

cheers,

wim

[ Have 7z & a recent*) version ? Save bandwidth, use CHDK-Shell-updater.7z  ]

*) recent = same minor version, so currently 3.2.0 and higher

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Windows GUI for trunk building
« Reply #544 on: 24 / May / 2011, 16:52:37 »
CHDK-Shell-v325 (update version)

  • fixed:      All dialogs now resize fully, following main GUI resizing settings;
                  when sizing the GUI below 100%, the dialogs are kept at 100% to
                  improve readability, unless dialog size makes this impossible.
                  (this is currently the case for 'Compile Options')

  • changed: Size of the font for the firmware checkboxes can now be manually
                  set ('Cam Panel ..') as % of the font used for the camera buttons.

  • Security: Clean according to Jotti. Checksums (FileAlyzer) are:
                  CHDK-Shell-v325-sfx.exe
                  CRC-32:  6844AA2B
                  MD5:      094A1B76F329915F4CE2D4DE0F16FB1F
                  SHA1:     0ED6B5102A504CF8EEA9AE3EEBB0ED41ED1AE1F9
                  CHDK-Shell_Updater.7z
                  CRC-32:  4072C083
                  MD5:      4BD2D852FF65CEA5097C0DA473E84A01
                  SHA1:     2269261B7A05101B80FE4371FDA7F044DB7073F2

cheers,

wim

[ Have 7z & a recent*) version ? Save bandwidth, use CHDK-Shell-updater.7z  ]

*) recent = same minor version, so currently 3.2.0 and higher
« Last Edit: 24 / May / 2011, 17:19:34 by whim »

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Windows GUI for trunk building
« Reply #545 on: 28 / May / 2011, 08:13:00 »
CHDK-Shell-v326 (update version)

  • fixed:      'Splash Messages' setting was properly read back from inifile, but
                  then almost immediately overwritten ... thanks, gehtnix

  • Security: Clean according to Jotti. Checksums (FileAlyzer) are:
                  CHDK-Shell-v326-sfx.exe
                  CRC-32:  861C8E45
                  MD5:      769C5FE47034FF8977ACBC01F6DEC9B8
                  SHA1:     FE0B64C8D0335AB502DB0FB9FF87C23038FA2383
                  CHDK-Shell_Updater.7z
                  CRC-32:  3A7E3E10
                  MD5:      61502D1A64772F6E49892ED5D29DA0E9
                  SHA1:     CB6BD49A0F0F69A18460F769142F77F833A6A778

cheers,

wim

[ Have 7z & a recent*) version ? Save bandwidth, use CHDK-Shell-updater.7z  ]

*) recent = same minor version, so currently 3.2.0 and higher

*

Offline reyalp

  • ******
  • 14128
Re: Windows GUI for trunk building
« Reply #546 on: 11 / June / 2011, 22:31:15 »
Win 7 / 64, chdkshell v326 - If I try to compile with the gcc45 toolchain, I get an error dialog, titled "as.exe - System error" which says "The program can't start because libintl-8.dll is missing form your computer. Try reinstalling the program to fix this problem"

Also, related to:
http://chdk.setepontos.com/index.php?topic=650.msg68160#msg68160
For people who want to contribute to development (either with commit access or via patches), it would be very useful to be able to just point CHDK shell to an SVN working copy, with the user being responsible for what version is in that working copy. I looked around the options a bit and didn't see an obvious way to do this, but I could easily be missing it. This would also make trying a bunch of different versions to find where a bug was introduced much quicker, because you can use svn switch rather than downloading an entire zip of each tree.


Thanks for all your hard work on this tool :)
Don't forget what the H stands for.

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Windows GUI for trunk building
« Reply #547 on: 12 / June / 2011, 07:23:29 »
Hi reyalp
Quote
Win 7 / 64, chdkshell v326 - If I try to compile with the gcc45 toolchain, I get an error dialog, titled "as.exe - System error" which says "The program can't start because libintl-8.dll is missing form your computer. Try reinstalling the program to fix this problem"
Can't reproduce this - I suspect this means a rogue as.exe is called instead of /gcc451/bin/as.exe.
'as --version' on the command line gives me:
Quote
GNU assembler (GNU Binutils) 2.18.50.20080109
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `mingw32'.

Quote
... it would be very useful to be able to just point CHDK shell to an SVN working copy, with the user being responsible for what version is in that working copy ...
The command line interface (between Compile buttons) will allow you to do that AFAIK ...


wim 

Re: Windows GUI for trunk building
« Reply #548 on: 12 / June / 2011, 09:22:36 »
The command line interface (between Compile buttons) will allow you to do that AFAIK ...
That works nicely.  Once you are in the DOS box, use cd to get to your SVN trunk  (i.e.  ..\svn\chdk\trunk ) and then run
 
Code: [Select]
gmake PLATFORM=a620 PLATFORMSUB=100f firzipsubcompletejust like it says in the initial prompt. 
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14128
Re: Windows GUI for trunk building
« Reply #549 on: 12 / June / 2011, 16:00:22 »
Hi reyalp
Quote
Win 7 / 64, chdkshell v326 - If I try to compile with the gcc45 toolchain, I get an error dialog, titled "as.exe - System error" which says "The program can't start because libintl-8.dll is missing form your computer. Try reinstalling the program to fix this problem"
Can't reproduce this - I suspect this means a rogue as.exe is called instead of /gcc451/bin/as.exe.
This seems likely, but in the command prompt the chdkshell binaries are at the front of the path:
Code: [Select]
>path
PATH=D:\chdk\chdkshell\gcc451\bin;C:\Windows\system32;...
>as --version
GNU assembler (GNU Binutils) 2.18.50.20080109
OK on further inspection, GCC is picking up a different mingw as.exe, even though that isn't on the system path anywhere. /mingw is in the compiled in search path of the included gcc build:
Code: [Select]
>gcc -print-prog-name=as
/mingw/lib/gcc/mingw32/../../../mingw32/bin/as.exe
>gcc -print-search-dirs
install: /mingw/lib/gcc/mingw32/3.4.5/
programs: =D:/chdk/chdkshell/gcc451/bin/../libexec/gcc/mingw32/3.4.5/;D:/chdk/chdkshell/gcc451/bin/../libexec/gcc/;/mingw/libexec/gcc/mingw32/3.4.5/;/mingw/libexec/gcc/mingw32/3.4.5/;/mingw/libexec/gcc/mingw32/;/mingw/lib/gcc/mingw32/3.4.5/;/mingw/lib/gcc/mingw32/;/usr/libexec/gcc/mingw32/3.4.5/;/usr/libexec/gcc/mingw32/;/usr/lib/gcc/mingw32/3.4.5/;/usr/lib/gcc/mingw32/;D:/chdk/chdkshell/gcc451/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/bin/mingw32/3.4.5/;D:/chdk/chdkshell/gcc451/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/bin/;/mingw/lib/gcc/mingw32/../../../mingw32/bin/mingw32/3.4.5/;/mingw/lib/gcc/mingw32/../../../mingw32/bin/
libraries: =D:/chdk/chdkshell/gcc451/bin/../lib/gcc/mingw32/3.4.5/;D:/chdk/chdkshell/gcc451/bin/../lib/gcc/;/mingw/lib/gcc/mingw32/3.4.5/;/usr/lib/gcc/mingw32/3.4.5/;D:/chdk/chdkshell/gcc451/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/lib/mingw32/3.4.5/;D:/chdk/chdkshell/gcc451/bin/../lib/gcc/mingw32/3.4.5/../../../../mingw32/lib/;/mingw/lib/gcc/mingw32/../../../mingw32/lib/mingw32/3.4.5/;/mingw/lib/gcc/mingw32/../../../mingw32/lib/;/mingw/lib/mingw32/3.4.5/;/mingw/lib/;D:/chdk/chdkshell/gcc451/bin/../lib/gcc/mingw32/3.4.5/../../../mingw32/3.4.5/;D:/chdk/chdkshell/gcc451/bin/../lib/gcc/mingw32/3.4.5/../../../;/mingw/lib/gcc/mingw32/../../mingw32/3.4.5/;/mingw/lib/gcc/mingw32/../../;/lib/mingw32/3.4.5/;/lib/;/usr/lib/mingw32/3.4.5/;/usr/lib/
Something to watch out for if you are using a regular mingw/msys install as well. There's probably a way to override this on the command line, I'll have a look around.
Quote
The command line interface (between Compile buttons) will allow you to do that AFAIK ...
Of course :) I was thinking from the gui, but any who's doing actual coding should be able to use make from the command prompt.

---
edit:
Adding -BC:/path/to/chdkshell/gcc451/bin to HOSTCFLAGS in makefile.inc seems to take care of the path problem (see http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Directory-Options.html#Directory-Options ).

The GCC_EXEC_PREFIX environment variable (see http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Environment-Variables.html#Environment-Variables ) seems like it should be the better way (since CHDK shell could set it rather than modifying makefiles), but gcc modifies this and tacks stuff on the end in such a way that I couldn't get it to point to the correct place.

FWIW this only affects the host compiler, not the arm-elf compiler. So perhaps I should just use my local mingw as the host compiler and set it to use chdkshells arm-elf. The host compiler is 3.4.x even if you are using the 4.x arm toolchain.

edit 2:
Using mingw as the host compiler works, all I had to do is put the gcc451/bin path after the normal mingw path, and it picks up the arm-elf* stuff fine while using it's own compiler for the host.
« Last Edit: 12 / June / 2011, 21:23:44 by reyalp »
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal