compilation of LuaMacros

Report application bugs here
Post Reply
Josick
Posts: 6
Joined: 19 Feb 2021, 21:07
Location: Britanny
Contact:

compilation of LuaMacros

Post by Josick » 18 Apr 2021, 16:54

Hello,
Installing Lazarus http://www.lazarus-ide.org/ ver. 2.0.12 ,
importing the code https://github.com/me2d13/luamacros ,
installing the missing packages LNet (InetBase), ExtraSyn (ExtraHighlighters), UniqueInstance & LazSerial

The two side programs compile.

Eight errors with the compilation of LuaMacros

Here, all the error :

Messages - Avertissements : 3
Warning: un autre chemin des sources du paquet "lnetbase 0.6.6" contient le répertoire "..\lib" qui est déjà dans le chemin de recherche de l'unité.
Warning: Duplicate file "synedit.inc" in "SynEdit 1.0", path="C:\lazarus\components\synedit\synedit.inc"
Warning: Duplicate file "synedit.inc" in "ExtraHighlighters 1.0", path="C:\Users\josic\AppData\Local\lazarus\onlinepackagemanager\packages\extrasyn\SyneditHighlighters\synedit.inc"
Compilation du projet - Cible : C:\Users\josic\OneDrive\Documents\luamacros-master\out\LuaMacros.exe : Code de sortie 1 - Erreurs : 8 - Avertissements : 5
udxdeviceservice.pas(42,18) Warning: An inherited method is hidden by "destructor Destroy;"
ucomdeviceservice.pas(21,18) Warning: An inherited method is hidden by "destructor Destroy;"
ukbddeviceservice.pas(22,18) Warning: An inherited method is hidden by "destructor Destroy;"
udeviceservice.pas(23,18) Warning: An inherited method is hidden by "destructor Destroy;"
uhookservice.pas(26,18) Warning: An inherited method is hidden by "destructor Destroy;"
ukeylogservice.pas(56,25) Error: function header doesn't match any method of this class "AddRaw(PRAWINPUT):^TKeyStroke;"
ukeylogservice.pas(31,16) Error: Found declaration: AddRaw(PRAWINPUT):^TKeyStroke;
ukeylogservice.pas(58,18) Error: identifier idents no member "keyboard"
ukeylogservice.pas(59,15) Error: Constant and CASE types do not match
ukeylogservice.pas(59,30) Error: Constant and CASE types do not match
ukeylogservice.pas(60,13) Error: Constant and CASE types do not match
ukeylogservice.pas(60,26) Error: Constant and CASE types do not match
ukeylogservice.pas(64,46) Error: identifier idents no member "keyboard"

What mistake did I make? Thanks !

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: compilation of LuaMacros

Post by admin » 19 Apr 2021, 07:55

Did you follow https://github.com/me2d13/luamacros/blo ... evGuide.md?
What's your free pascal version, 32 or 64 bit?
Also you may try the most recent branch which was FSXX poc, it's for 64bit FPC compiler https://github.com/me2d13/luamacros/tree/64bit
Petr Medek
LUAmacros author

Josick
Posts: 6
Joined: 19 Feb 2021, 21:07
Location: Britanny
Contact:

Re: compilation of LuaMacros

Post by Josick » 19 Apr 2021, 21:23

Thanks for the echo.
I followed https://github.com/me2d13/luamacros/com ... befd5eda88
I installed the 64 bits version
Try it with https://github.com/me2d13/luamacros/tree/64bit
The three projects compile
Running the luamacros.exe produced in administrator mode: nothing happens.
Running from the code: The LuaMacros project raised an exception class "External:SIGSEGV" at address 100031A0F
0000000100031A0F 4883781800 cmpq $0x0,0x18(%rax)
I then recompiled the project without error, success
Launching in administrator mode, nothing happens.
But I noticed that if WinHook.dll is present, no lua52-64.dll that I import by hand.
LuaMacros runs then with quickstart.lua, bravo!!!

Thanks for the help and many thanks for designing this program.

Post Reply