Lazarus
Programming => Packages and Libraries => Lazarus Extra Components => Topic started by: alanphys on February 05, 2020, 01:45:56 pm
Title:
QT5 LNet installation error: Forward declaration not solved
Post by:
alanphys
on
February 05, 2020, 01:45:56 pm
Problem
Trying to install lnet in Lazarus from the online package manager and from git gives
lclnet.pas(45,15) Error: Forward declaration not solved "HandleIgnoreError(TLHandle);"
lclnet.pas(46,15) Error: Forward declaration not solved "HandleIgnoreWrite(TLHandle);"
lclnet.pas(47,15) Error: Forward declaration not solved "HandleIgnoreRead(TLHandle);"
lclnet.pas(48,15) Error: Forward declaration not solved "InternalUnplugHandle(TLHandle);"
lclnet.pas(50,15) Error: Forward declaration not solved "HandleEvents(Int64;LongWord);"
lclnet.pas(58,14) Error: Forward declaration not solved "AddHandle(TLHandle):Boolean;"
System
Fedora 30
KDE 5/QT 5.12.4
Lazarus 2.0.6
LNet 0.66
Cause
QT5 not defined in lclnet.pas
Workaround
Add
Code: Pascal
[Select]
[+]
[-]
{$ifdef LCLQT5}
{$i lclgtkeventer.inc}
// identical code
{$endif}
before end statement in lclnet.pas
I have listed this as an issue on the GitHub site: https://github.com/almindor/lnet/issues/7
Regards
Alan
TinyPortal
© 2005-2018