Compiled for S3 IS and got BIG UI - General Discussion and Assistance - CHDK Forum

Compiled for S3 IS and got BIG UI

  • 8 Replies
  • 5098 Views
Compiled for S3 IS and got BIG UI
« on: 31 / October / 2010, 06:01:54 »
Advertisements
Hi!
I compiled revision 964 for S3 IS using binutils-2.20.1 and gcc-4.5.1, see the attached script.
The firmware loads but everything it outputs on a screen is BIG and doesn't fit into a screen. Big splash screen, big menu, bit letters. Looks like it is a scale problem.
The precompiled revision 964 from autobuild works fine.
What gives?

Files compiled by myself are a bit smaller, but it is probably because of newer GCC.
My files:
DISKBOOT.BIN      257312 bytes
PS.FIR                  258060 bytes

Autobuild files:
DISKBOOT.BIN      262000 bytes
PS.FIR                  262748 bytes

Re: Compiled for S3 IS and got BIG UI
« Reply #1 on: 02 / November / 2010, 04:49:51 »
See the attached photo of the problem.
Any suggestions?

Re: Compiled for S3 IS and got BIG UI
« Reply #2 on: 10 / November / 2010, 09:55:43 »
Me too, built the latest trunk so I could play with the new PTP stuff, now the gfx & menu look to be running at the wrong scale or something. My platform sub lib.c looks good, don't know what to do now.


SX1 200h
binutils-2.18
gcc-4.3.3


Re: Compiled for S3 IS and got BIG UI
« Reply #3 on: 10 / November / 2010, 10:47:29 »
Don't know why autobuild looks fine...
Try adding the following code into include\camera.h in section for your camera:

Code: [Select]
#undef ASPECT_XCORRECTION
#define ASPECT_XCORRECTION(x) (x)

Check if this will resolve the issue.


Re: Compiled for S3 IS and got BIG UI
« Reply #4 on: 10 / November / 2010, 11:18:46 »
That works here, thanks for the help, cheers.

« Last Edit: 10 / November / 2010, 11:50:02 by tasty »

Re: Compiled for S3 IS and got BIG UI
« Reply #5 on: 11 / November / 2010, 16:20:18 »
It works for my S3 too.
Why isn't this in svn?

*

Offline reyalp

  • ******
  • 14118
Re: Compiled for S3 IS and got BIG UI
« Reply #6 on: 11 / November / 2010, 23:31:35 »
It works for my S3 too.
Why isn't this in svn?
The autobuild uses SVN...

S3 shouldn't need any aspect correction.
Don't forget what the H stands for.

Re: Compiled for S3 IS and got BIG UI
« Reply #7 on: 12 / November / 2010, 05:50:44 »
In fact code looks fine.
If CAM_USES_ASPECT_CORRECTION is set to zero (and it is), ASPECT_XCORRECTION should not be used at all.
So it's not clear why you have this issue.
I'll try to verify the custom build process...

--- added ---
Don't see this bug...
I've compiled firmware for s3 and have investigated binary code (have no camera to run) - everything looks fine, there is no scaling.
It's probably something wrong with your build environment or build process.
« Last Edit: 12 / November / 2010, 06:36:43 by cppasm »


*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Compiled for S3 IS and got BIG UI
« Reply #8 on: 12 / November / 2010, 06:40:34 »
Such effects may be the result when you don't do a make clean ;)

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal