×
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
Question Fatal: not found: Controls (library build)
- PizzaProgram (László Szakmári)
-
Topic Author
- Offline
- New Member
-
- Delphi7 programmer since 25 years
Less
More
6 months 3 weeks ago #14950
by PizzaProgram (László Szakmári)
Fatal: not found: Controls (library build) was created by PizzaProgram (László Szakmári)
I've wrote my first nice little program (EXE), that convert a GPS coordinate into a WMF vector-bitmap file.
Now I'm trying to redo it, so it works as a DLL.
But it does not compile!
If I put the unit 'Interfaces' as first >> the compiler stops there.
Is it possible the only Lazarus can handle Forms and Controls in a DLL and Typhoon can not?
wiki.freepascal.org/Form_in_DLL
Now I'm trying to redo it, so it works as a DLL.
But it does not compile!

library gpsqrgen;
{$mode objfpc}{$H+}
uses
Classes, SysUtils, Controls, // Graphics, Interfaces,
ubarcodes, fpvectorial, wmfvectorialwriter,
zint, lbc_render;
If I put the unit 'Interfaces' as first >> the compiler stops there.
Is it possible the only Lazarus can handle Forms and Controls in a DLL and Typhoon can not?
wiki.freepascal.org/Form_in_DLL
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
6 months 3 weeks ago #14951
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic Fatal: not found: Controls (library build)
Sir
give us more info:
-Your CT ver ?
-Your OS ?
-What do you want to do ?
-to put your app in to a library ?
...
give us more info:
-Your CT ver ?
-Your OS ?
-What do you want to do ?
-to put your app in to a library ?
...
PilotLogic Architect and Core Programmer
Please Log in or Create an account to join the conversation.
- PizzaProgram (László Szakmári)
-
Topic Author
- Offline
- New Member
-
- Delphi7 programmer since 25 years
6 months 3 weeks ago - 6 months 3 weeks ago #14952
by PizzaProgram (László Szakmári)
Replied by PizzaProgram (László Szakmári) on topic Fatal: not found: Controls (library build)
Latest version, downloaded 4 days ago:
CT: 7.1 2020-08-04
FPC 3.1.1
Platform: i386-win32-win32/win64 running on Win7-64bit PRO (Hungarian)
I'd like to do the same what the EXE file can do (qride.pas), just as a DLL (gpsqrgen.ppr).
Thank You !
CT: 7.1 2020-08-04
FPC 3.1.1
Platform: i386-win32-win32/win64 running on Win7-64bit PRO (Hungarian)
I'd like to do the same what the EXE file can do (qride.pas), just as a DLL (gpsqrgen.ppr).
Thank You !
Attachments:
Last edit: 6 months 3 weeks ago by PizzaProgram (László Szakmári).
Please Log in or Create an account to join the conversation.
- Sternas Stefanos
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
6 months 3 weeks ago #14953
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic Fatal: not found: Controls (library build)
PilotLogic Architect and Core Programmer
Attachments:
Please Log in or Create an account to join the conversation.
- PizzaProgram (László Szakmári)
-
Topic Author
- Offline
- New Member
-
- Delphi7 programmer since 25 years
6 months 3 weeks ago - 6 months 3 weeks ago #14954
by PizzaProgram (László Szakmári)
Replied by PizzaProgram (László Szakmári) on topic Fatal: not found: Controls (library build)
Thanks for the hint!
It gave me an idea...
1.) I did not add any of those manually.
2.) I just created a "new library prorject" >> and copied PAS code there.
3.) And it did not even show at my Multi-Project-inspector window.
4.) If I tried to open from menu : Package >> Open Package from List >>> it dropped an Access Violation error.
... so my conclusion was: those packag installations were somehow broken.
(I've tried to run CT Center >> Compiler >> "FreePascal Remove and Rebuild ALL". But it did not help.)
So, the solution was >>
- I've opened adFCL and adLCL from menu "Open loaded package" >> rebuilt them >> clicked Install >> CT closed >> reopened it >> all errors gone !
My guess is, that all these bad things happened, because I've installed latest Lazarus (upgraded from 1.6 > to latest)
It seems for me, TP and Lazarus can not coexist on 1 system...

1.) I did not add any of those manually.
2.) I just created a "new library prorject" >> and copied PAS code there.
3.) And it did not even show at my Multi-Project-inspector window.
4.) If I tried to open from menu : Package >> Open Package from List >>> it dropped an Access Violation error.
... so my conclusion was: those packag installations were somehow broken.
(I've tried to run CT Center >> Compiler >> "FreePascal Remove and Rebuild ALL". But it did not help.)
So, the solution was >>
- I've opened adFCL and adLCL from menu "Open loaded package" >> rebuilt them >> clicked Install >> CT closed >> reopened it >> all errors gone !
My guess is, that all these bad things happened, because I've installed latest Lazarus (upgraded from 1.6 > to latest)
It seems for me, TP and Lazarus can not coexist on 1 system...
Last edit: 6 months 3 weeks ago by PizzaProgram (László Szakmári).
Please Log in or Create an account to join the conversation.