Recent

Author Topic: Missing unit in lazbuild.lpr  (Read 2151 times)

EMartin

  • Newbie
  • Posts: 6
Missing unit in lazbuild.lpr
« on: July 25, 2018, 09:54:52 pm »
Hi, I trying to use Laz/FPC, building with FPCUpDeluxe I have the following errors:

1. In LazBuild.lpr the missing unit LazStringUtils.pas in uses clause raise error: "identifier LineBreaksToSystemLineBreaks not found" (more or less), I attach a patch.
2. I can't solve this error:

D:\fpcupdeluxe\lazarus\lcl\interfaces\.\win32\win32winapi.inc(1314,51) Error: (4025) Incompatible type for arg no. 3: Got "<procedure variable type of function(var ENUMLOGFONTEXA;var NEWTEXTMETRICEXA;LongInt;Int64):LongInt;StdCall>", expected "<procedure variable type of function(var ENUMLOGFONTEXW;var NEWTEXTMETRICEXW;LongInt;Int64):LongInt;StdCall>"


and I can't continue.

Thanks.

Esteban

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Missing unit in lazbuild.lpr
« Reply #1 on: July 26, 2018, 09:07:02 am »
Hi, I trying to use Laz/FPC, building with FPCUpDeluxe I have the following errors:

1. In LazBuild.lpr the missing unit LazStringUtils.pas in uses clause raise error: "identifier LineBreaksToSystemLineBreaks not found" (more or less), I attach a patch.
It is fixed now.

Quote
2. I can't solve this error:

D:\fpcupdeluxe\lazarus\lcl\interfaces\.\win32\win32winapi.inc(1314,51) Error: (4025) Incompatible type for arg no. 3: Got "<procedure variable type of function(var ENUMLOGFONTEXA;var NEWTEXTMETRICEXA;LongInt;Int64):LongInt;StdCall>", expected "<procedure variable type of function(var ENUMLOGFONTEXW;var NEWTEXTMETRICEXW;LongInt;Int64):LongInt;StdCall>"

It was already reported:
 https://bugs.freepascal.org/view.php?id=34022
Please check existing reports before opening a new one.

Quote
and I can't continue.
Do you really need latest trunk versions of both FPC and Lazarus?
For example I use and modify Lazarus trunk but compile with a released FPC. Somebody interested in latest FPC development may use a released Lazarus version.
Did you really need LazBuild during those hours it was broken?
When using any trunk (latest development version), you must learn to move back to a revision that works. Hickups happen, using the trunk of both FPC and Lazarus increases the chance for such hickups.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

EMartin

  • Newbie
  • Posts: 6
Re: Missing unit in lazbuild.lpr
« Reply #2 on: July 26, 2018, 02:29:07 pm »
Thanks @JuhaManninen for your reply and sorry because I did look before in bugtracker. And yes, I need the latest due I use mORMot framework (http://synopse.info) and the same works fine with FPC 3.1.1 or NewPascal (http://newpascal.org) and have some problems with FPC 3.0.4 (stable), I want start to use FPC I want start with the latest.

Thanks again.

Best regards.

Esteban.

PD: sorry for my "spanglish"

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: Missing unit in lazbuild.lpr
« Reply #3 on: July 26, 2018, 10:49:51 pm »
Quote
2. I can't solve this error:

D:\fpcupdeluxe\lazarus\lcl\interfaces\.\win32\win32winapi.inc(1314,51) Error: (4025) Incompatible type for arg no. 3: Got "<procedure variable type of function(var ENUMLOGFONTEXA;var NEWTEXTMETRICEXA;LongInt;Int64):LongInt;StdCall>", expected "<procedure variable type of function(var ENUMLOGFONTEXW;var NEWTEXTMETRICEXW;LongInt;Int64):LongInt;StdCall>"

It was already reported:
 https://bugs.freepascal.org/view.php?id=34022

Fixed in r58639.

Bart

EMartin

  • Newbie
  • Posts: 6
Re: Missing unit in lazbuild.lpr
« Reply #4 on: July 27, 2018, 03:24:53 pm »
Thank you very much.  :D

Esteban

 

TinyPortal © 2005-2018