Recent

Author Topic: Compile LCL issue / error  (Read 6043 times)

billbrach

  • Newbie
  • Posts: 2
Compile LCL issue / error
« on: July 12, 2015, 12:32:19 pm »
Hello,

New to Lazurus but have many, many hours of Borland Pascal 7 coding.

When I try to recompile the LCL on my Win XP system, I get this error:

win32int.pp(33,3) Fatal: Cannot find Translations used by Win32Int, incompatible ppu=C:\lazarus\lcl\units\i386-win32\translations.ppu, package LCLBase

Also, this message, when I try to compile "Transmisson Remote GUI":

Compile Project, Target: units\transgui.exe: Exit code 1, Errors: 1, Warnings: 1
Warning: Recompiling Translations, checksum changed for jsonparser
win32int.pp(33,3) Fatal: Cannot find Translations used by Win32Int, incompatible ppu=C:\lazarus\lcl\units\i386-win32\translations.ppu, package LCLBase

Seems like this is all related to the same error ??

Any ideas ??

Thanks,

Bill Brach
Gainesville, FL, USA
« Last Edit: July 12, 2015, 12:59:45 pm by billbrach »

Bart

  • Hero Member
  • *****
  • Posts: 5649
    • Bart en Mariska's Webstek
Re: Compile LCL issue / error
« Reply #1 on: July 12, 2015, 01:57:37 pm »
I would suspect that "Transmisson Remote GUI" application has the path to the transaltions unit source in one of it's project paths.
Remove that.
Also clean the output directory of you app to get rid of leftover ppu's.

To have acces to translations unit, your project needs a dependency on LCL (or LCLBase?).
(A newly created GUI app (in Lazarus) should have this already.)

To get more info on what goes wrong, you can build with -vut flags.

Bart

billbrach

  • Newbie
  • Posts: 2
Re: Compile LCL issue / error
« Reply #2 on: July 12, 2015, 02:30:36 pm »
Hi Bart,

Thanks for the info. 

I get the first error when I'm just recompiling the LCL:

win32int.pp(33,3) Fatal: Cannot find Translations used by Win32Int, incompatible ppu=C:\lazarus\lcl\units\i386-win32\translations.ppu, package LCLBase

But, I'm not sure that it isn't related to the fact that I tried to compile "Transmission Remote GUI" before that, even tho' I did a "Close All" before trying the LCL Build.  Lazarus seems to "hold over" stuff from the previous project that was loaded.

Will try your suggestions shortly.

Thanks again...

Bill

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4652
  • I like bugs.
Re: Compile LCL issue / error
« Reply #3 on: July 12, 2015, 05:06:19 pm »
But, I'm not sure that it isn't related to the fact that I tried to compile "Transmission Remote GUI" before that, even tho' I did a "Close All" before trying the LCL Build.  Lazarus seems to "hold over" stuff from the previous project that was loaded.

No, File -> "Close All" does not close the project. It only closes files. That's why it is in Files menu. You still have the same project open.
The current project is closed when you open another project or create a new one. You can also do Project -> "Close Project" but then the IDE is not usable. That is because the session info is part of a project.

Having a project open always is a common complaint from new users. I believe you will complain about the same thing. :)
However it is a non-issue because the project can be a "virtual" project which is not saved anywhere. You can even run a virtual project, then it is automatically saved in a temp dir.

See the Project menu for project related actions, especially look at the project options.
« Last Edit: July 12, 2015, 05:09:18 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

foxmulder

  • Newbie
  • Posts: 2
Re: Compile LCL issue / error
« Reply #4 on: September 28, 2015, 02:20:41 pm »
@Bart
There is nothing in project paths about translation unit source  %)
(http://i.imgur.com/qHEcRvN.png)

Adding LCL and LCLBase to Project Inspector's required package still resulting the same error.

Source code (transgui-5.0.1-src.zip) available here if you want to try (please) : http://sourceforge.net/projects/transgui/files/5.0.1/
« Last Edit: September 28, 2015, 02:31:58 pm by foxmulder »

foxmulder

  • Newbie
  • Posts: 2
Re: Compile LCL issue / error
« Reply #5 on: September 28, 2015, 05:10:52 pm »
Looks like a transgui using old json unit, in order to fix it
Rename :
Code: [Select]
json\fpjson.pp as json\xfpjson.pp
json\jsonparser.pp as json\xjsonparser.pp
json\jsonscanner.pp as json\xjsonscanner.pp

Open :
Code: [Select]
json\xjsonscanner.pp ;rename unit jsonscanner into xjsonscanner

Find all occurrences of (using find & replace in files, match whole words only):
Code: [Select]
TJSONParser rename into XTJSONParser
FPJSON rename into XFPJSON

Credit and thanks goes to hinst @ lazarus-ide/freenode
« Last Edit: September 28, 2015, 05:13:12 pm by foxmulder »

 

TinyPortal © 2005-2018