Recent

Author Topic: installation versions for PascalIO library  (Read 1418 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 261
installation versions for PascalIO library
« on: July 11, 2024, 09:24:11 pm »
https://github.com/SAmeis/pascalio

Does anybody have a version for freepascal and for lazarus to successfully compile and install the pascalio library ?

Greets, PascalByThree
« Last Edit: July 11, 2024, 09:31:06 pm by pascalbythree »

TRon

  • Hero Member
  • *****
  • Posts: 3283
Re: installation versions for PascalIO library
« Reply #1 on: July 12, 2024, 07:43:10 am »
Hi pascalbythree

It would be more productive to answer the question why the instructions as listed on that github repo do not work for you and show some error output.

Right now this is wasting my/our time doing the work for you with the conclusion that it seems that the packages compile out of the box.

A simple test:
Code: Bash  [Select][+][-]
  1. wget https://github.com/SAmeis/pascalio/archive/master.zip
  2. unzip master.zip
  3. cd pascalio-master
  4. fpc -Mobjfpc -B -Fusrc pascalio.pas
  5.  

which resulted in
Code: [Select]
Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling pascalio.pas
Compiling ./src/fpspi.pas
Compiling ./src/spidev.pas
fpspi.pas(158,5) Note: Call to subroutine "procedure TSPILinuxDevice.DoIoCtlError(Ndx:QWord);" marked as inline is not inlined
fpspi.pas(169,5) Note: Call to subroutine "procedure TSPILinuxDevice.DoIoCtlError(Ndx:QWord);" marked as inline is not inlined
fpspi.pas(175,5) Note: Call to subroutine "procedure TSPILinuxDevice.DoIoCtlError(Ndx:QWord);" marked as inline is not inlined
fpspi.pas(181,5) Note: Call to subroutine "procedure TSPILinuxDevice.DoIoCtlError(Ndx:QWord);" marked as inline is not inlined
fpspi.pas(187,5) Note: Call to subroutine "procedure TSPILinuxDevice.DoIoCtlError(Ndx:QWord);" marked as inline is not inlined
fpspi.pas(199,5) Note: Call to subroutine "procedure TSPILinuxDevice.DoIoCtlError(Ndx:QWord);" marked as inline is not inlined
fpspi.pas(205,5) Note: Call to subroutine "procedure TSPILinuxDevice.DoIoCtlError(Ndx:QWord);" marked as inline is not inlined
fpspi.pas(211,5) Note: Call to subroutine "procedure TSPILinuxDevice.DoIoCtlError(Ndx:QWord);" marked as inline is not inlined
fpspi.pas(244,14) Note: Call to subroutine "function FpOpen(const path:RawByteString;flags:LongInt):LongInt;" marked as inline is not inlined
fpspi.pas(257,13) Note: Call to subroutine "function FpRead(fd:LongInt;var buf:<Formal type>;nbytes:QWord):Int64;" marked as inline is not inlined
fpspi.pas(262,13) Note: Call to subroutine "function FpWrite(fd:LongInt;const buf:<Formal type>;nbytes:QWord):Int64;" marked as inline is not inlined
Writing Resource String Table file: fpspi.rsj
Compiling ./src/fpspilib.pas
Compiling ./src/fpadc.pas
fpadc.pas(88,23) Warning: Function result does not seem to be set
Writing Resource String Table file: fpadc.rsj
Compiling ./src/fpgpio.pas
fpgpio.pas(129,10) Warning: Constructor should be public
fpgpio.pas(149,10) Warning: Constructor should be public
Compiling ./src/fpsysfs.pas
fpsysfs.pas(92,9) Note: Call to subroutine "function FpOpen(const path:RawByteString;flags:LongInt):LongInt;" marked as inline is not inlined
fpsysfs.pas(95,16) Note: Call to subroutine "function FpRead(fd:LongInt;var buf:<Formal type>;nbytes:QWord):Int64;" marked as inline is not inlined
fpsysfs.pas(116,9) Note: Call to subroutine "function FpOpen(const path:RawByteString;flags:LongInt):LongInt;" marked as inline is not inlined
fpsysfs.pas(119,3) Note: Call to subroutine "function FpWrite(fd:LongInt;const buf:<Formal type>;nbytes:QWord):Int64;" marked as inline is not inlined
Writing Resource String Table file: fpsysfs.rsj
fpgpio.pas(570,9) Note: Call to subroutine "function FpOpen(const path:RawByteString;flags:LongInt):LongInt;" marked as inline is not inlined
fpgpio.pas(576,5) Note: Call to subroutine "function FpRead(fd:LongInt;var buf:<Formal type>;nbytes:QWord):Int64;" marked as inline is not inlined
fpgpio.pas(611,19) Warning: Function result does not seem to be set
fpgpio.pas(653,3) Note: Local variable "ValueIndex" is assigned but never used
Writing Resource String Table file: fpgpio.rsj
Compiling ./src/fpi2c.pas
Compiling ./src/i2c_dev.pas
Compiling ./src/flqueue.pas
fpi2c.pas(503,26) Warning: Function result variable does not seem to be initialized
fpi2c.pas(718,14) Note: Call to subroutine "function FpOpen(const path:RawByteString;flags:LongInt):LongInt;" marked as inline is not inlined
Writing Resource String Table file: fpi2c.rsj
Compiling ./src/gpioexp.pas
Compiling ./src/mcp23017.pas
mcp23017.pas(82,5) Warning: Constructor should be public
Writing Resource String Table file: mcp23017.rsj
Compiling ./src/bitmanip.pas
gpioexp.pas(389,19) Warning: function result variable of a managed type does not seem to be initialized
gpioexp.pas(419,19) Warning: function result variable of a managed type does not seem to be initialized
gpioexp.pas(447,19) Warning: function result variable of a managed type does not seem to be initialized
Compiling ./src/pca9685.pas
Compiling ./src/fppwm.pas
4910 lines compiled, 0.2 sec
9 warning(s) issued
19 note(s) issued

Which tells us that all necessary units compiled without compilation error. I have no reason to doubt that building the GUI component would fail.
« Last Edit: July 12, 2024, 07:45:30 am by TRon »
This tagline is powered by AI

gidesa

  • Full Member
  • ***
  • Posts: 116
Re: installation versions for PascalIO library
« Reply #2 on: July 12, 2024, 01:30:12 pm »
Hello,
I successfully installed PascalIo using fpcDeluxe on Lazarus 2.2.6/Fpc 3.2.2, O.S. Win 11 64 bit.
But indeed note that the associate package PascalIoGui doesn't compile.

[Edit]
I use it to cross compile to Arm for Armbian OS.
« Last Edit: July 12, 2024, 05:51:46 pm by gidesa »

TRon

  • Hero Member
  • *****
  • Posts: 3283
Re: installation versions for PascalIO library
« Reply #3 on: July 13, 2024, 11:18:31 am »
But indeed note that the associate package PascalIoGui doesn't compile.
Noted but exactly how many of the example projects uses that component ?

(which btw is besides the fact that the 'error' can be fixed fairly easy and even besides that here is the wrong place to ask here since it is about a github project and chances that the repo owner also lurks around here is probably next to none) :shrugs:

fwiw: TS did not respond whatsoever so that leaves us to find whatever the issue is TS is running into or doesn't grasp. My crystal balls are all shattered into oblivion ages ago and I simply lack to the time.
« Last Edit: July 13, 2024, 11:26:11 am by TRon »
This tagline is powered by AI

Thaddy

  • Hero Member
  • *****
  • Posts: 15722
  • Censorship about opinions does not belong here.
Re: installation versions for PascalIO library
« Reply #4 on: July 14, 2024, 12:17:23 pm »
Yes, the GUI component is also more than 10 years old, so no wonder it does not compile anymore. Anyway, you don't need it.
The rest of pascalio simply compiles - it is written in freepascal - but also note not everything is actually implemented and some units are incomplete or otherwise need attention.
« Last Edit: July 14, 2024, 12:20:11 pm by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

 

TinyPortal © 2005-2018