Recent

Author Topic: Where are the project options kept? (-RIntel)  (Read 268 times)

pik33

  • Jr. Member
  • **
  • Posts: 63
Where are the project options kept? (-RIntel)
« on: June 30, 2019, 04:46:06 pm »
I copied my project from PC to RPi and it cannot compile because of -RIntel option (no intel asm in project but the option remained) and I have no way to remove it and compile the project. Where is this kept?

lucamar

  • Hero Member
  • *****
  • Posts: 1942
Re: Where are the project options kept? (-RIntel)
« Reply #1 on: June 30, 2019, 06:58:17 pm »
Look in project.lpi (the most likely candidate) or project.lps.

Or you could just try editing the genera "Tools -> Options" and/or "Project -> Project options" in Lazarus (wit the project open, of course).

You should also check that there are actually no "intel" assembler blocks in the source; some people just set that swicth on general principles but others wouldn't touch that with a ten-feet pole unless strictly needed. If it's the second case you're probably S.O.L.D.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.2/2.0.4  - FPC 3.0.4 on:
(K|L)Ubuntu 12..16, Windows XP SP3, various DOSes.

pik33

  • Jr. Member
  • **
  • Posts: 63
Re: Where are the project options kept? (-RIntel)
« Reply #2 on: June 30, 2019, 08:08:32 pm »
The problem is: I cannot find it in lps and lpi and there is no option in RPi IDE. That why I have this question. Maybe the option is there under a different name, which I simply don't know.

There is a workaround: switch off Intel syntax in the project while in Windows, before copying the project files.

I can also simply start a new project and copy the units.



marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7297
Re: Where are the project options kept? (-RIntel)
« Reply #3 on: June 30, 2019, 08:28:15 pm »
If you aren't 100% sure it is an parameter, it might also be an {$asmmode intel} somewhere in the sources

engkin

  • Hero Member
  • *****
  • Posts: 2513
Re: Where are the project options kept? (-RIntel)
« Reply #4 on: June 30, 2019, 08:30:55 pm »
project lpi file:
<CONFIG>
  <CompilerOptions>
    <Parsing>
      <Style Value="2"/>

0 Default, 1 Intel, 2 AT&T

lucamar

  • Hero Member
  • *****
  • Posts: 1942
Re: Where are the project options kept? (-RIntel)
« Reply #5 on: June 30, 2019, 09:12:32 pm »
[...] there is no option in RPi IDE.

Yes, of course. For target processors other than Intel/AMD this option makes no sense, so it doesn't even appear. I hadn't realized this, sorry. :-[

To do it on the RPi you can temporarily change the target processor to Intel, change the parsing option back to "Default", save the project, set the processor back to "Default" (or Arm or whatever it was) and save the project again.

It is easier, though, to just edit the .lpi with any text editor and simply delete that "<Parsing>" section (or just the <Style value="1"> value if there is anything more in there).
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.2/2.0.4  - FPC 3.0.4 on:
(K|L)Ubuntu 12..16, Windows XP SP3, various DOSes.