-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QT5 LNet installation error: Forward declaration not solved #7
Comments
Hey, I think the preprocessor ifdefs changed in newer lazarus and need to
be updated. You need to use the QT "lcl" eventer for this tho otherwise it
won't work as the main "event loop" won't connect.
I find it interesting that the gtk one worked for you.
Ales
st 5. 2. 2020 o 3:03 Alan Chamberlain <[email protected]> napísal(a):
… *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
{$ifdef LCLQT5} {$i lclgtkeventer.inc} // identical code ;) {$endif}
before end statement in lclnet.pas
Regards
Alan
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7?email_source=notifications&email_token=AAO4J3W3WQB7JJITZA565Q3RBKFIDA5CNFSM4KQIE6T2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ILE6A5Q>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAO4J3SEKVO2MERKLJ5QGO3RBKFIDANCNFSM4KQIE6TQ>
.
|
Yes, the new version defines LCLQT5. I'm not seeing an lclqteventer.inc. I just copied your existing LCLQT declaration which uses the lclgtkeventer.inc. So far everything seems to be running OK, but I am only using the TLHTTPServer component. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
{$ifdef LCLQT5} {$i lclgtkeventer.inc} // identical code ;) {$endif}
before end statement in lclnet.pas
Regards
Alan
The text was updated successfully, but these errors were encountered: