I am trying to compile the pigpio library, as per the instructions: https://abyz.me.uk/rpi/pigpio/download.html
I have downloaded the zip file and extracted it to pigpio-master.
The output for $ sudo make install
All I can find in '/user/lib' is pigpio-1.78-py3.10.egg
After - make clean - make and $ sudo make install '/usr/local/lib' contains:
libpigpio.so
libpigpio.so.1
libpigpiod_if.so
libpigpiod_if.so.1
libpigpiod_if2.so
libpigpiod_if2.so.1
The results returned by the following commands are:
sudo: ./x_pigpio: command not found
sudo pigpiod
pigpiod: error while loading shared libraries: libpigpio.so.1: cannot open shared object file: No such file or directory
OK! That's real progress.
- sudo ./x_pigpio passes all appropriate tests and sudo pigpiod appears to start the demon without errors.
My problem now is that I have both your pigpiod2.pbi and servo.pb in the same /home/user/purebasic600/Code directory and with the IDE running as either root or user attempting to run servo.pb returns:
[COMPILER] Line 1: File not found (/home/user/purebasic600/Code/pigpiod2.pbi).
Tried absolute path: IncludeFile "/home/user/purebasic600/Code/pigpiod2.pbi"
I have double, triple and quadruple checked the accuracy of my spelling and recreated pigpiod2.pbi from the 'PIGPIO' forum thread.
I think it might be time for me to "throw the towel in" and stop wasting any more of your time. I am really not enjoying the PI, because there seem to be endless complications in many aspects of the system, not just this one issue.
Obviously with Linux, case was the very first thing I checked when performing multiple spelling cross checks.
Even some of my own programs that work perfectly on an x64 platform throw up similar missing file errors with PB on Manjaro.
While Raspian OS is almost unusable for me and I am not a big fan of Ubuntu, it looks like I am going to have to go with one of those if I want to use the Pi's GPIO. Pity, because in every other way Manjaro provided all the features I wanted.
Maybe you should take a closer look at Raspberry Pi OS (64-bit).
The base is debian and there is a lot of software and extensions for Arm32 and Arm64 processors.
I have already tried Ubuntu for Arm. But was a bit disappointed, because this only gave with initial problems with the graphics synchronization. Was apparently ready fixed.
I already have an MSD card with a recent Raspberry PI OS 64bit image. I am going out later to pickup a wired USB keyboard and mouse, in the hope that this will resolve/reduce the major usability issues I had with the Raspberry PI OS and several different wireless USB keyboard/mouse combinations.
One of the main reasons I wanted to use Manjaro was the fact that it is an up-to-date rolling release with recent releases of most major applications, but if I can resolve this GPIO issue using the Raspberry PI OS I will just have to live with what I consider to be the Debian shortcomings.
Wow! I am getting giddy going around and around in ever decreasing circles.
The wired USB keyboard/mouse have mad the Raspberry PI OS physically usable.
Installed the GPIO software from the repository.
- sudo pigpiod doesn't produce any error
- sudo ./x_pigpio # check C I/F returns command not found
Extracted PB to /home/user/purbasic600
- ./launch.sh opens the PB IDE with the terminal error:
** (purebasic:7797): CRITICAL **: 09:55:11.457: clearlooks_style_draw_focus: assertion 'height >= -1' failed
The OS cripples any attempt to create an executable 'purbasic600.desktop' file, in that it dictates that it is a text file and it MUST ONLY be opened with a text editor.
The Raspberry PI OS is definitely not for me.
Will take a stab at Ubuntu.
Well Ubuntu didn't work out any better for me.
Based on an idea put to me by someone in the Manjaro forums, I grabbed an image of Manjaro ARM64 with xfce DE.
By following through on the pointers mk-soft had previously given, my Raspberry PI 4B now has a fully functional PB IDE/compiler (complete with taskbar icons ), which can access the installed pigpio library.
I hope that at some time I might have the opportunity to repay mk-soft for the valuable & patient assistance.
Dave