Recent

Author Topic: QT5 LNet installation error: Forward declaration not solved  (Read 613 times)

alanphys

  • New Member
  • *
  • Posts: 44
QT5 LNet installation error: Forward declaration not solved
« 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][+][-]
  1. {$ifdef LCLQT5}
  2. {$i lclgtkeventer.inc} // identical code
  3. {$endif}
  4.  

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
Alanphys
Fedora 30 + KDE/QT5, Tinycore 8, Windows XP-10
https://github.com/alanphys

 

TinyPortal © 2005-2018