×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Unable to compile astroberry-piface

  • Posts: 18
  • Thank you received: 2
Got my PiFace Relay+ installed on a RPi 3B with ubuntu-mate xenial. I already have Kstars/Ekos/Indi running on the device. The "libindi1" package was up to date and I installed "libindi-dev".

I then ran the suggested build steps:

<code>git clone github.com/rkaczorek/astroberry-piface.git
cd astroberry-piface
mkdir build
cd build
cmake ..
make
make install</code>

The errors started on the "make install" step which gave the following trace:

<code>Performing update step for 'libmcp23s17'
Current branch master is up to date.
No stash found.
No stash found.
No stash found.
CMake Error at /home/edward/Tilion/astroberry-piface/build/libmcp23s17/tmp/libmcp23s17-gitupdate.cmake:136 (message):

Failed to unstash changes in:
'/home/edward/Tilion/astroberry-piface/libs/libmcp23s17/'.

You will have to resolve the conflicts manually

CMakeFiles/libmcp23s17.dir/build.make:94: recipe for target 'libmcp23s17/src/libmcp23s17-stamp/libmcp23s17-update' failed
make[2]: *** [libmcp23s17/src/libmcp23s17-stamp/libmcp23s17-update] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/libmcp23s17.dir/all' failed
make[1]: *** [CMakeFiles/libmcp23s17.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2</code>

Deleted the directory and repeated with same results. Is the build process doing local stashes? I made no explicit source changes or any git actions.
5 years 2 months ago #34190

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
I bet that your system time is way behind ;-) If it is, you will not be able to establish SSL session to github while cloning the sources for libmcp23s17.
You can check it by cloning the library manually: git clone github.com/piface/libmcp23s17.git
In summary: set your RPi time before doing anything else. Otherwise it's a "back to the past journey"
5 years 2 months ago #34226

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 2
Thank you for the suggestion. Unfortunately, not the issue. Below, I run "date" and then perform the git clone operation with no issues

Here is the full trace the the build process. Is there anything else that looks wrong before the "make install step"

For grins, I also checked git stash status in the directory listed above. Git is not reporting any stashes around
5 years 1 month ago #34235

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
It compiles properly this time. All the binaries are in the build directory: indi_piface_relay, indi_piface_focuser
The problem is only at "sudo make install". For some reason it tries to clone the lib again whereas it is already there in /home/edward/Tilion/astroberry-piface/libs/libmcp23s17
There are two options:
- remove /home/edward/Tilion/astroberry-piface/libs/libmcp23s17 after the first make and rerun sudo make install
OR
- manually copy indi_piface_relay, indi_piface_focuser to /usr/bin/ and indi_piface_relay.xml, indi_piface_focuser.xml to /usr/share/indi/
5 years 1 month ago #34248

Please Log in or Create an account to join the conversation.

  • Posts: 18
  • Thank you received: 2
Excellent. I will move the libraries manually. Thank you for telling me where they needed to go.
5 years 1 month ago #34257

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
I have astroberry server on pi3b+. I am trying to set the piface motor extra as my focuser but the driver crashes as soon as its started. The relay part is working. The indi log shows only the driver crashed with stderr EOF. At diagnostic messages - there is error: could not claim pin18 gpio reserved by pps api. Are the drivers outdated or have to be compiled?
5 years 1 month ago #34319

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
GPIO18 is PWM, which might be used as input for GPS PPS signal BUT also it is SPI1 CE0 pin which is used by PiFace HAT.
Please check your /boot/config.txt and make sure that GPIO18 is not reserved for PPS i.e. the line should be commented out like so #dtoverlay=pps-gpio,gpiopin=18
Last edit: 5 years 1 month ago by Radek Kaczorek.
5 years 1 month ago #34329

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
ok this error disappeared. But the driver still crash- nothing in the dmesg. just some brcfmac highlighted nonsense.
The Indi log looks like this:
[2019-01-30T19:34:34.234 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: startup: /usr/bin/indiserver -v -p 7624 -f /tmp/indififob2133101 "
[2019-01-30T19:34:34.235 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: listening to port 7624 on fd 3"
[2019-01-30T19:34:34.235 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "FIFO: start indi_simulator_ccd"
[2019-01-30T19:34:34.236 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "FIFO: Starting driver indi_simulator_ccd"
[2019-01-30T19:34:34.236 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_simulator_ccd: pid=1560 rfd=4 wfd=7 efd=8"
[2019-01-30T19:34:34.236 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "FIFO: start indi_piface_focuser -n \"PiFace Focuser\""
[2019-01-30T19:34:34.236 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "With name: PiFace Focuser"
[2019-01-30T19:34:34.237 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "FIFO: Starting driver indi_piface_focuser"
[2019-01-30T19:34:34.237 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: pid=1561 rfd=5 wfd=10 efd=11"
[2019-01-30T19:34:34.237 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Client 6: new arrival from 127.0.0.1:39844 - welcome!"
[2019-01-30T19:34:34.237 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_simulator_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD"
[2019-01-30T19:34:34.237 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_simulator_ccd: snooping on Telescope Simulator.TELESCOPE_INFO"
[2019-01-30T19:34:34.237 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_simulator_ccd: snooping on Telescope Simulator.GEOGRAPHIC_COORD"
[2019-01-30T19:34:34.238 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_simulator_ccd: snooping on Focuser Simulator.ABS_ROTATOR_ANGLE"
[2019-01-30T19:34:34.238 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_simulator_ccd: snooping on CCD Simulator.FILTER_SLOT"
[2019-01-30T19:34:34.238 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_simulator_ccd: snooping on CCD Simulator.FILTER_NAME"
[2019-01-30T19:34:34.238 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_simulator_ccd: snooping on SQM.SKY_QUALITY"
[2019-01-30T19:34:34.238 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_simulator_ccd: snooping on Focuser Simulator.FWHM"
[2019-01-30T19:34:34.238 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 1561 died"
[2019-01-30T19:34:34.239 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: stderr EOF"
[2019-01-30T19:34:34.239 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: restart #1"
[2019-01-30T19:34:34.239 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: pid=1563 rfd=5 wfd=11 efd=12"
[2019-01-30T19:34:34.239 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 1563 died"
[2019-01-30T19:34:34.239 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: stderr EOF"
[2019-01-30T19:34:34.240 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: restart #2"
[2019-01-30T19:34:34.240 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: pid=1564 rfd=5 wfd=11 efd=12"
[2019-01-30T19:34:34.240 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2019-01-30T19:34:34.241 GMT CRIT ][ org.kde.kstars.indi] - INDI driver "indi_piface_focuser" crashed!
[2019-01-30T19:34:34.283 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 1564 died"
[2019-01-30T19:34:34.283 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: stderr EOF"
[2019-01-30T19:34:34.283 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: restart #3"
[2019-01-30T19:34:34.284 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: pid=1565 rfd=5 wfd=11 efd=12"
[2019-01-30T19:34:34.284 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 1565 died"
[2019-01-30T19:34:34.284 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: stderr EOF"
[2019-01-30T19:34:34.284 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: restart #4"
[2019-01-30T19:34:34.284 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: pid=1566 rfd=5 wfd=11 efd=12"
[2019-01-30T19:34:34.284 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2019-01-30T19:34:34.288 GMT DEBG ][ org.kde.kstars.indi] - INDIListener: New device PiFace Focuser
[2019-01-30T19:34:34.309 GMT DEBG ][ org.kde.kstars.indi] - < PiFace Focuser >: < CONNECTION >
[2019-01-30T19:34:34.489 GMT DEBG ][ org.kde.kstars.indi] - < PiFace Focuser >: < DRIVER_INFO >
[2019-01-30T19:34:34.760 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 1566 died"
[2019-01-30T19:34:34.760 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: stderr EOF"
[2019-01-30T19:34:34.761 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: restart #5"
[2019-01-30T19:34:34.761 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: pid=1567 rfd=5 wfd=11 efd=12"
[2019-01-30T19:34:34.761 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: stderr EOF"
[2019-01-30T19:34:34.762 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: restart #6"
[2019-01-30T19:34:34.762 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: pid=1568 rfd=5 wfd=11 efd=12"
[2019-01-30T19:34:34.763 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 1567 died"
[2019-01-30T19:34:34.763 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: stderr EOF"
[2019-01-30T19:34:34.763 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: restart #7"
[2019-01-30T19:34:34.764 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: pid=1569 rfd=5 wfd=11 efd=12"
[2019-01-30T19:34:34.764 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 1568 died"
[2019-01-30T19:34:34.764 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: stderr EOF"
[2019-01-30T19:34:34.765 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: restart #8"
[2019-01-30T19:34:34.765 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: pid=1570 rfd=5 wfd=11 efd=12"
[2019-01-30T19:34:34.765 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 1569 died"
[2019-01-30T19:34:34.766 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: stderr EOF"
[2019-01-30T19:34:34.766 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: restart #9"
[2019-01-30T19:34:34.766 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: pid=1571 rfd=5 wfd=11 efd=12"
[2019-01-30T19:34:34.766 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 1570 died"
[2019-01-30T19:34:34.767 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: stderr EOF"
[2019-01-30T19:34:34.767 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: restart #10"
[2019-01-30T19:34:34.767 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: pid=1572 rfd=5 wfd=11 efd=12"
[2019-01-30T19:34:34.768 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 1571 died"
[2019-01-30T19:34:34.768 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: stderr EOF"
[2019-01-30T19:34:34.768 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "2019-01-30T19:34:34: Driver indi_piface_focuser: Terminated after #10 restarts."
[2019-01-30T19:34:34.769 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: "Child process 1572 died"
[2019-01-30T19:34:34.769 GMT DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2019-01-30T19:34:34.825 GMT DEBG ][ org.kde.kstars.indi] - < PiFace Focuser >: < DEBUG >
[2019-01-30T19:34:34.857 GMT DEBG ][ org.kde.kstars.indi] - < PiFace Focuser >: < POLLING_PERIOD >
[2019-01-30T19:34:34.880 GMT DEBG ][ org.kde.kstars.indi] - < PiFace Focuser >: < CONFIG_PROCESS >
[2019-01-30T19:34:34.916 GMT DEBG ][ org.kde.kstars.indi] - < PiFace Focuser >: < CONNECTION_MODE >
[2019-01-30T19:34:34.920 GMT DEBG ][ org.kde.kstars.indi] - < PiFace Focuser >: < DEVICE_PORT >
[2019-01-30T19:34:34.928 GMT DEBG ][ org.kde.kstars.indi] - < PiFace Focuser >: < DEVICE_BAUD_RATE >
[2019-01-30T19:34:34.934 GMT DEBG ][ org.kde.kstars.indi] - < PiFace Focuser >: < DEVICE_AUTO_SEARCH >
[2019-01-30T19:34:34.939 GMT DEBG ][ org.kde.kstars.indi] - < PiFace Focuser >: < DEVICE_PORT_SCAN >
5 years 1 month ago #34334

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
Are you using version distributed with latest Astroberry Server? It might be the case that libindi was updated in the meantime. Seems that recompilation is required.
Grab the just-recompiled binary and install it:
wget https://github.com/rkaczorek/astroberry-piface/raw/master/binaries/astroberry-piface_2.0.2-4_armhf.deb
sudo dpkg -i astroberry-piface_2.0.2-4_armhf.deb
5 years 1 month ago #34346

Please Log in or Create an account to join the conversation.

  • Posts: 19
  • Thank you received: 0
Yes it was the latest Astroberry server. Now is working without a glitch! Thank you!
5 years 1 month ago #34353

Please Log in or Create an account to join the conversation.

Moderators: Radek Kaczorek
Time to create page: 0.625 seconds