Recent

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

pik33

  • Jr. Member
  • **
  • Posts: 76
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: 4219
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/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

pik33

  • Jr. Member
  • **
  • Posts: 76
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

  • Administrator
  • Hero Member
  • *
  • Posts: 11458
  • FPC developer.
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: 3112
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: 4219
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/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018