1.6 development planning thread - page 2 - General Discussion and Assistance - CHDK Forum  

1.6 development planning thread

  • 14 Replies
  • 371 Views
*

Offline philmoz

  • *****
  • 3196
    • Photos
Re: 1.6 development planning thread
« Reply #10 on: 21 / November / 2020, 17:31:41 »
Advertisements

Thanks for that - can you check if '->' also works on Windows (single quotes around string instead of escaping)?

Sorry for not being clear - the quotes are just to show what is literally shown on screen/in logs.
All the files contain 1 or more lines like "@echo blah \-\> something" (without the quotes).
Suggestion is, to replace these with "@echo blah -\> something" (again, without quotes).
Result: nicer screen/log output, works on all my Windows toolchains.
Not tested on linux (never succeeded compiling CHDK on my manjaro linux box).
Hope that clarifies it a bit - in short I'm just proposing that escaping a minus sign is unnecessary
after an echo command; the greater than/redirection sign still needs escaping.

hope that I understood and answered your question ...
whim


Sorry my question was not clear. Instead of escaping the '>' symbol I'm suggesting putting it all in single quotes so it's treated as a string. To me this makes the meaning clearer. It works on MacOS / Linux; but not sure about Windows.
        "@echo blah '->' something"


Phil.

CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline whim

  • ******
  • 2029
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: 1.6 development planning thread
« Reply #11 on: 22 / November / 2020, 03:11:20 »
@philmoz

Thanks, looks fine that way on Windows GCC 493 and 541 toolchains.

whim

*

Offline srsa_4c

  • ******
  • 4302
Re: 1.6 development planning thread
« Reply #12 on: 22 / November / 2020, 06:33:32 »
Quote
BTW Getting an assembler error on my (Windows) GCC 5.4.1 toolchain compiling for m10 (110f), compiles just fine for all other cams.

Discussed here https://chdk.setepontos.com/index.php?topic=12758.msg144545#msg144545
GCC5 generates slightly different instructions which messes up one of the branch tables. I was leaving this for srsa_4c.
Should be resolved after this commit.

The reason of my above mumbling about OPT_WARNINGS is that I'd like to keep following in host_rules.inc, with or without the # in front of the middle row:
Code: [Select]
ifdef OPT_WARNINGS
    #HOSTCFLAGS+=-Wextra -fdiagnostics-show-option -Wno-missing-field-initializers -Wunused -Wno-unused-param
endif

*

Offline whim

  • ******
  • 2029
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: 1.6 development planning thread
« Reply #13 on: 22 / November / 2020, 07:27:08 »
Quote
Should be resolved after this commit.

Compiles and works fine for me (GCC 541host481 on Win 10 v1909, M10-110f)
Thanks, @srsa_4c and @philmoz !!
whim
« Last Edit: 22 / November / 2020, 07:36:55 by whim »


*

Offline philmoz

  • *****
  • 3196
    • Photos
Re: 1.6 development planning thread
« Reply #14 on: 22 / November / 2020, 15:35:23 »
The reason of my above mumbling about OPT_WARNINGS is that I'd like to keep following in host_rules.inc, with or without the # in front of the middle row:
Code: [Select]
ifdef OPT_WARNINGS
    #HOSTCFLAGS+=-Wextra -fdiagnostics-show-option -Wno-missing-field-initializers -Wunused -Wno-unused-param
endif


I don't have a problem with keeping it; but I would uncomment it.
If it's there may as well use it.


Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

 

Related Topics