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

Windows GUI for trunk building

  • 771 Replies
  • 304700 Views
*

Offline 3ddd

  • *
  • 11
Re: Windows GUI for trunk building
« Reply #650 on: 09 / April / 2012, 11:21:57 »
Advertisements
Today I started using CHDK-Shell 3.4.3 for the first time.
Using Trunk 1794 I ran into this problem already reported earlier:
http://chdk.setepontos.com/index.php?topic=845.msg81344#msg81344

It is the "Line 2745 Error: Array variable ..." Problem.

I deleted all the old cameras in /platform for a thinner environment.

As soon as the A610 is gone I see the above Error.

Even in a fully populated /platform you get the error by renaming A610 to A611 for example.

Hope this helps a bit to fix the problem.

Regards
Paul
SDM, A3200IS, A810, A720

Re: Windows GUI for trunk building
« Reply #651 on: 12 / April / 2012, 01:39:51 »
thank you for CHDK Shell i am using the Version 3.2.6. i thank you because without your excellent shell i would never have compiled my own version. or to apply patches so generously provided by Mweerden and Philimoz and Reyalp and other gurus on this site.

THANK YOU.


*

Offline kosy

  • *
  • 28
Re: Windows GUI for trunk building
« Reply #652 on: 21 / May / 2012, 01:21:18 »
CHDK-Shell is a really nice way of building customized versions of CHDK -- I like it!

However, I am having a problem, probably user error but I'm too green and ignorant to solve it. What I'm trying to do is build an exact reproduction of a version of CHDK that has been posted on the A3300IS build thread. That way I know I am starting with a working set of tools, and the fool at the keyboard understands the process well enough to be able to use it productively.

I would like to know if there is a simple way of determining which version of CHDK-Shell was originally used? What I see on my camera is
  CHDK 1.0.0_1.0temp
  Feb 9 2012
  02:03:38
  a3300
  100d
  GCC 4.5.1

The posted CHDK build can be found at http://chdk.setepontos.com/index.php?topic=6972.msg81188#msg81188

The author, MK11174, has very generously provided me with the source code for that build (it differs from the archive by using the "Face" button to select the ALT mode), but when I build it with CHDK-Shell (which is what he said he used) with GCC 4.5.1 selected, I get a different binary for DISKBOOT.BIN -- it's 72 bytes shorter and has lots of binary differences.

So I thought perhaps it is due to changes that have been made to CHDK-Shell itself, but I haven't found a way of determining what version was used in building the posted file. I've tried several different versions but that hasn't been easy, because the directory structure has changed over time and I wind up spinning my wheels resolving issues like "ptpCamGui_Obfuscated.au3 not found". Fortunately, the solutions to these problems have appeared in the fora, but these side trips really slow things down.

So the simple question is how do I determine what version of CHDK-Shell was used?

Thanks!

*

Offline kosy

  • *
  • 28
Re: Windows GUI for trunk building
« Reply #653 on: 21 / May / 2012, 01:34:36 »
One more bit of info -- MK11174 provided the full source for the core CHDK as well, so even though I do not know which stable release version he used, I don't need to search for it because I have the full source. So I think all I need is the same compilers, options, and scripts in order to exactly replicate what he did.

Thanks for your help!

Re: Windows GUI for trunk building
« Reply #654 on: 21 / May / 2012, 02:04:03 »
One more bit of info -- MK11174 provided the full source for the core CHDK as well, so even though I do not know which stable release version he used, I don't need to search for it because I have the full source. So I think all I need is the same compilers, options, and scripts in order to exactly replicate what he did.
For what its worth,  this seems like a waste of time.  If you can compile a version for your camera without errors and it installs and runs,  does it matter that its not byte-for-byte the same as a version compiled some time ago with an unknown combination of compilers, switches and sources.  Who can say if mk11174's setup was "right" ?

That being said,  its your time.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14125
Re: Windows GUI for trunk building
« Reply #655 on: 22 / May / 2012, 01:49:39 »
I get a different binary for DISKBOOT.BIN -- it's 72 bytes shorter and has lots of binary differences.
You should not expect it to be byte for byte identical. At a minimum, the time and date of the build are included in the binary.
Don't forget what the H stands for.

*

Offline kosy

  • *
  • 28
Re: Windows GUI for trunk building
« Reply #656 on: 22 / May / 2012, 02:09:15 »
For what its worth,  this seems like a waste of time.  If you can compile a version for your camera without errors and it installs and runs,  does it matter that its not byte-for-byte the same as a version compiled some time ago with an unknown combination of compilers, switches and sources.  Who can say if mk11174's setup was "right" ?

I wanted to exactly replicate his compilation for the following reasons:
1. Multiple people have downloaded his compilation and have been happy with it. They probably exercised it more than I would my own compilation, thus I have more confidence that his works.

2. I have read that some compiler (especially optimization) options  create code that doesn't really work. I'm sorry, but I don't know all the options and how to select the ones that produce the best code. Again, his selection seems to generate results that work, all the more reason to follow his choices unless and until I can make rational choices.

As for "compiled ... with an unknown combination of compilers, switches and sources," much of the information is available. We do know that he used GCC 4.5.1, and from buildconf.txt we know what items he chose to include. I was hoping that other info, such as the compiler options and version of CHDK-Shell would also be documented in similar files, thus allowing others, including me, to exactly replicate his build.

My intention was to demonstrate that the source I have works, and then submit the patch to update the svn server. But there's no point in submitting a patch until I/we are confident that it it works at least as well as what is already on the server.

*

Offline kosy

  • *
  • 28
Re: Windows GUI for trunk building
« Reply #657 on: 22 / May / 2012, 02:16:18 »
You should not expect it to be byte for byte identical. At a minimum, the time and date of the build are included in the binary.

Yes, I am aware of the fact that the compiler version, date and time, and other info is also buried in the file. But the date and time string is a constant length, and is only a few bytes -- I am getting many more differences than that. I haven't actually counted how many bytes differ, but when looking at the binary files with vbindiff I see at least several bytes per windowfull, and sometimes a whole block of differences. Much more than I would expect if I were using the same source, compiler, and options.

*

Offline reyalp

  • ******
  • 14125
Re: Windows GUI for trunk building
« Reply #658 on: 23 / May / 2012, 00:54:12 »
Yes, I am aware of the fact that the compiler version, date and time, and other info is also buried in the file.
Continued in a new thread since this is really OT and doesn't belong in a sticky thread: http://chdk.setepontos.com/index.php?topic=8142.msg85705#msg85705
Don't forget what the H stands for.

*

Offline dvip

  • ****
  • 451
Re: Windows GUI for trunk building
« Reply #659 on: 12 / June / 2012, 13:09:08 »
CHDK-Shell ( v. 3.43) won't download the latest trunk (1900-1907). Is the server working? Any ideas?

 

Related Topics


SimplePortal © 2008-2014, SimplePortal