Recent

Author Topic: Installing delphimodbus  (Read 11502 times)

KoBraSoft

  • New Member
  • *
  • Posts: 20
Installing delphimodbus
« on: June 12, 2016, 11:02:03 am »
Hi,
I get errors during installing delphimodbus. https://sourceforge.net/projects/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-10.2.0.3 without any problems.
Then opened delphimodbuslazarus.lpk and replaced "pl_indycomp" with  "indylaz"
Then compile -> success
After install i get error:
Quote
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
ppudump
Code: [Select]
ppudump -VH /usr/lib/lazarus/1.6/components/Modbus/packages/lib/x86_64-linux/IdModbusClient.ppu
says
Quote
Analyzing /usr/lib/lazarus/1.6/components/Modbus/packages/lib/x86_64-linux/IdModbusClient.ppu (v173)

Header
-------
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?

Konrad

Cyr

  • Newbie
  • Posts: 6
Re: Installing delphimodbus
« Reply #1 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.
https://sourceforge.net/projects/pascalscada/
« Last Edit: June 12, 2016, 11:42:40 am by Cyr »

KoBraSoft

  • New Member
  • *
  • Posts: 20
Re: Installing delphimodbus
« Reply #2 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 http://forum.lazarus.freepascal.org/index.php?topic=11131.0. 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.

KoBraSoft

  • New Member
  • *
  • Posts: 20
Re: Installing delphimodbus
« Reply #3 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.

 

TinyPortal © 2005-2018