Programming => Packages and Libraries => Ported from Delphi/Kylix => Topic started by: KoBraSoft on June 12, 2016, 11:02:03 am

Title: Installing delphimodbus
Post by: KoBraSoft on June 12, 2016, 11:02:03 am
I get errors during installing delphimodbus. (
System: Intel Core2 2.00GHz 4GB Lazarus 1.6+dfsg-1 rDebian package 1.6+dfsg-1 FPC 3.0.0 x86_64-linux-gtk 2
First I have installed indy- without any problems.
Then opened delphimodbuslazarus.lpk and replaced "pl_indycomp" with  "indylaz"
Then compile -> success
After install i get error:
IDE erstellen: Exit code 512, Fehler: 1
delphimodbuslazarus.pas(10,5) Fatal: Kann IdModBusClient nicht finden verwendet von delphimodbuslazarus, incompatible ppu=/usr/lib/lazarus/1.6/components/Modbus/packages/lib/x86_64-linux/IdModbusClient.ppu, Package DelphiModbusLazarus
Code: [Select]
ppudump -VH /usr/lib/lazarus/1.6/components/Modbus/packages/lib/x86_64-linux/IdModbusClient.ppu
Analyzing /usr/lib/lazarus/1.6/components/Modbus/packages/lib/x86_64-linux/IdModbusClient.ppu (v173)

Compiler version        : 3.0.0
Target processor        : x86_64
Target operating system : Linux-x86-64
Unit flags              : static_linked, little_endian, has_debug_info, dwarf_debug_info, local_symtable
FileSize (w/o header)   : 19017
Checksum                : 50A2DECF
Interface Checksum      : 4CD4EE9A
Indirect Checksum       : 50196E55
Definitions stored      : 177
Symbols stored          : 365
What could I do to get this component installed?

Title: Re: Installing delphimodbus
Post by: Cyr on June 12, 2016, 11:40:48 am
Why you don't want to try PascalScada for Modbus implementation? It works fine with Lazarus 1.6.
Title: Re: Installing delphimodbus
Post by: KoBraSoft on June 12, 2016, 01:28:53 pm
I have built an application with Lazarus and delphimodbus in Win7 which works very well.
Now I do migrate from Windows to Linux.

And I like the Idea "write once, compile everywhere".

I already tested ( Installation is not necessary. I was able to compile the sample "mbuquery.lpi" (after replacing synapse with the actual version). But I am to stupid to build a simple application like the code example in the readme file.

I will have a look on PascalScada.
Title: Re: Installing delphimodbus
Post by: KoBraSoft on December 10, 2018, 07:21:12 pm
Finally i fixed it.
The problem was the capital letters in the source code file names. Fpc is looking only for ppu file names in lowercase letters.
After renaming the source files and modifying the lpk file it works.