Welcome, Guest
Username: Password: Remember me
25 Jul 2018
Glad to announce of release of INDI Library v1.7.4 on 2018-07-25. A few drivers were added in this release as we continue to improve & stabilize existing drivers.
Read More...
  • Page:
  • 1
  • 2

TOPIC: Installing Astroberry or PiFace INDI drivers

Installing Astroberry or PiFace INDI drivers 10 months 1 day ago #21093

  • Gina
  • Gina's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 1
  • Thank you received: 6
Having got Ubuntu Mate working on my RPi 3 and cured a camera problem, I want to continue to install other drivers to control GPIO pins including a DIY focuser. I tried to install the Astroberry Focuser and Astroberry Board and had errors compiling so realising the Astroberry project had be superseded by PiFace, I decided to try installing that instead. I know how to modify the code to achieve what I want so need to use the source code compilation route. Before trying code changes I thought I would try the standard version. However, I'm getting an error at the cmake stage. I have been following the instructions on the https://github.com/rkaczorek/astroberry-pifaceGitHub PiFace page. I would much appreciate any help.
Scanning dependencies of target indi_piface_relay
[ 75%] Building CXX object CMakeFiles/indi_piface_relay.dir/piface_relay.o
/home/gina/astroberry-piface/piface_relay.cpp: In member function ‘virtual void IndiPiFaceRelay::TimerHit()’:
/home/gina/astroberry-piface/piface_relay.cpp:197:41: error: ‘strcmp’ was not declared in this scope
    if (!strcmp(SysInfoT[0].text, "sun8i"))
                                         ^
/home/gina/astroberry-piface/piface_relay.cpp: In member function ‘virtual bool IndiPiFaceRelay::ISNewSwitch(const char*, const char*, ISState*, char**, int)’:
/home/gina/astroberry-piface/piface_relay.cpp:359:37: error: ‘strcmp’ was not declared in this scope
     if (!strcmp(dev, getDeviceName()))
                                     ^
CMakeFiles/indi_piface_relay.dir/build.make:62: recipe for target 'CMakeFiles/indi_piface_relay.dir/piface_relay.o' failed
make[2]: *** [CMakeFiles/indi_piface_relay.dir/piface_relay.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/indi_piface_relay.dir/all' failed
make[1]: *** [CMakeFiles/indi_piface_relay.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

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

Last Edit: by Gina.

Installing Astroberry or PiFace INDI drivers 10 months 1 day ago #21105

  • Gina
  • Gina's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 1
  • Thank you received: 6
Trying again - from scratch on a new card. Have installed Ubuntu Mate and now running the AstroPi3 script.

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

Last Edit: by Gina.

Installing Astroberry or PiFace INDI drivers 10 months 1 day ago #21108

Radek could probably help you with that:

www.indilib.org/support/community/2294-radek/profile.html
The following user(s) said Thank You: Gina

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

Installing Astroberry or PiFace INDI drivers 10 months 1 day ago #21112

  • Gina
  • Gina's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 1
  • Thank you received: 6
Exactly the same result - same error "‘strcmp’ was not declared in this scope"

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

Installing Astroberry or PiFace INDI drivers 10 months 1 day ago #21120

  • Gina
  • Gina's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 1
  • Thank you received: 6
It would seem that the problem is that there is no #include <string> in the file /home/gina/astroberry-piface/piface_relay.cpp but it is in /home/gina/astroberry-piface/piface_relay.h which itself is included in the cpp file. I thought #includes in the .h which is #included in the .cpp file are considered as within scope of the cpp file?

There is another "funny" which I don't understand (in spite of many years of using Linux), the astroberry-piface directory definitely exists off /home/gina yet I can't see it in the GUI! I think this proves it's existance :-
gina@Mint-Desktop ~/astroberry-piface/build $ cat /home/gina/astroberry-piface/piface_relay.h
/*******************************************************************************
  Copyright(c) 2014 Radek Kaczorek  <rkaczorek AT gmail DOT com>
I've checked permissions and it's not that.

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

Last Edit: by Gina.

Installing Astroberry or PiFace INDI drivers 10 months 1 day ago #21123

  • Gina
  • Gina's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 1
  • Thank you received: 6
Took the card out of the RPi and put it in the microSD slot on my Mint desktop and the directory doesn't show there either. This is what I've done in the past to edit code when running the RPi headless. Could someone please explain how a directory can be seen in the Terminal but not in the GUI?

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

Installing Astroberry or PiFace INDI drivers 10 months 1 day ago #21125

is it a hidden folder?

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

Installing Astroberry or PiFace INDI drivers 10 months 1 day ago #21127

  • Gina
  • Gina's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 1
  • Thank you received: 6
It's there now. I think I've got confused. But it does seem that the cpp file needs #include <string> Recompiling brings up stash errors so I think it needs a restart - again

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

Last Edit: by Gina.

Installing Astroberry or PiFace INDI drivers 10 months 22 hours ago #21159

  • Gina
  • Gina's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 1
  • Thank you received: 6
A new day etc... The missing directory was my fault - got confused which machine I was controlling from the Terminal in my Linux Mint machine. Sorry about that. The #include <string> problem is strange. AFAIK <string> is standard in C++, #includes are indeed inherited from .h to .cpp files. From searching other examples I have confirmed this. I can see nothing wrong with the code as I expected since the code evidently works for other people.

I am at a loss to see what I am doing wrong. All I think I can do now is start again and re-flash the card with Ubuntu Mate, apply instructions and script from AstroPi3 and then compile/install PiFace. There seems to be some overlap between AstroPi3 and the PiFace instructions but that only results in nothing to do with some of the commands.

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

Installing Astroberry or PiFace INDI drivers 10 months 21 hours ago #21161

  • Gina
  • Gina's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 1
  • Thank you received: 6
Having had many years programming in various languages I feel I should be able to sort this out myself though age is not on my side. I think I need to think this through a bit more before sending Radek a specific message. For one thing, I'm currently successfully using some of the Astroberry project code in my astro projects but with Raspbian rather than Ubuntu Mate though I don't this should make any difference as the Astroberry project refers to both. Raspbian does seem to cause problems if the wrong version is used which is another reason for using UM. The Astroberry code, with slight modifications, does what I want successfully. It is also simpler than PiFace which is quite different in many ways and doesn't fit my requirements.

The reason for wanting to change things is that I want to add extra features to my astro projects and therefore will want to edit and re-compile code. That doesn't seem to work on my present system.

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

Last Edit: by Gina.

Installing Astroberry or PiFace INDI drivers 10 months 11 hours ago #21193

  • Gina
  • Gina's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 1
  • Thank you received: 6
I have installed Ubuntu Mate and followed instructions in AstroPi3 plus run the script. Then I installed the code to make the GPIO pins available followed by the Astroberry INDI driver get, compile and install commands. The Astroberry compilation failed at the cmake stage with an error implying that the INDI library was the wrong version.
gina@asc:~/indi-astroberry$ cmake -DCMAKE_INSTALL_PREFIX=/usr ../astroberry-svn
-- The CXX compiler identification is GNU 5.4.0
-- The C compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'libindi'
--   Found libindi, version 1.6.0
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find INDI (missing: INDI_LIBRARIES) (found version "1.6.0")
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake_modules/FindINDI.cmake:66 (find_package_handle_standard_args)
  CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/gina/indi-astroberry/CMakeFiles/CMakeOutput.log".

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

Installing Astroberry or PiFace INDI drivers 10 months 10 hours ago #21208

  • Gina
  • Gina's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 54
  • Karma: 1
  • Thank you received: 6
I've tried sending a message to Radek but don't know if it worked.

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

  • Page:
  • 1
  • 2
Time to create page: 0.562 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica