Gina Davis replied to the topic 'Getting started in driver development' in the forum. 1 year ago

I've found the tutorials now having searched the directory structure and the instructions in the Developer Manual rather than the Tutorials from the INDI main menu. I'll follow the READ.ME in the examples directory.

Read More...

Gina Davis replied to the topic 'Getting started in driver development' in the forum. 1 year ago

Thank you for replying, here is the problem :-

gina@asc:~$ indiserver -v examples/tutorial_one/tutorial_one 2017-11-25T09:08:02: startup: indiserver -v examples/tutorial_one/tutorial_one 2017-11-25T09:08:02: Driver examples/tutorial_one/tutorial_one: pid=2307 rfd=3 wfd=6 efd=7 2017-11-25T09:08:02: listening to port 7624 on fd 4 2017-11-25T09:08:02: Driver examples/tutorial_one/tutorial_one: 2017-11-25T09:08:02: Driver examples/tutorial_one/tutorial_one: execlp: No such file or directory[/code I followed these instructions :-[quote]Building INDI Tutorials INDI Library currently ships with seven tutorials in the examples subdirectory. To build the tutorials, first install some pre-requisties on Ubuntu: sudo apt-get install cdbs libcfitsio-dev libnova-dev libusb-1.0-0-dev libjpeg-dev libusb-dev libtiff5-dev libftdi-dev fxload libkrb5-dev libcurl4-gnutls-dev libraw-dev libgphoto2-dev libgsl0-dev dkms libboost-regex-dev libgps-dev libdc1394-22-dev Then checkout INDI Library code from Github and build it: mkdir ~/Projects cd ~/Projects git clone https://github.com/indilib/indi.git mkdir -p build/libindi cd build/libindi cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi/libindi sudo make install To run tutorial one for example, simply run: indiserver -v examples/tutorial_one/tutorial_one [/quote] From [url=http://indilib.org/develop/tutorials.html]Tutorial[/url][code]gina@asc:~$ indiserver -v examples/tutorial_one/tutorial_one
2017-11-25T09:08:02: startup: indiserver -v examples/tutorial_one/tutorial_one
2017-11-25T09:08:02: Driver examples/tutorial_one/tutorial_one: pid=2307 rfd=3 wfd=6 efd=7
2017-11-25T09:08:02: listening to port 7624 on fd 4
2017-11-25T09:08:02: Driver examples/tutorial_one/tutorial_one: 2017-11-25T09:08:02: Driver examples/tutorial_one/tutorial_one: execlp: No such file or directory[/code

I followed these instructions :-

Building INDI Tutorials

INDI Library currently ships with seven tutorials in the examples subdirectory. To build the tutorials, first install some pre-requisties on Ubuntu:

sudo apt-get install cdbs libcfitsio-dev libnova-dev libusb-1.0-0-dev libjpeg-dev libusb-dev libtiff5-dev libftdi-dev fxload libkrb5-dev libcurl4-gnutls-dev libraw-dev libgphoto2-dev libgsl0-dev dkms libboost-regex-dev libgps-dev libdc1394-22-dev

Then checkout INDI Library code from Github and build it:

mkdir ~/Projects
cd ~/Projects
git clone github.com/indilib/indi.git
mkdir -p build/libindi
cd build/libindi
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi/libindi
sudo make install

To run tutorial one for example, simply run:

indiserver -v examples/tutorial_one/tutorial_one

From Tutorial

Read More...

Gina Davis created a new topic ' Getting started in driver development' in the forum. 1 year ago

I want to create my own drivers to control electronic devices that aren't covered by any of the standard drivers. I started from the Tutorial section and entered all the command lines to build the tutorials. I though I would test the "Simple Device" then edit the code as shown to operate an on/off device like a door or dome shutter continuing on to increase the switch function to cover 4 or 5 options. However, the "Simple Device" did not work when calling indiserver. It compiled alright.

I thought I would look at the .cpp file to edit it to add the switches but couldn't find it. I guess I'm missing something and would appreciate some help, please.

Meanwhile, I have been editing the code for the Astroberry Board but getting strange labels on some of the buttons so I really want to get to grips with the whole driver development. I have read the INDI paper and the Developer Manual and think I understand most of it.

Read More...

Gina Davis replied to the topic 'Installing Astroberry or PiFace INDI drivers' in the forum. 1 year ago

Very many thanks, Radek - that works :)

Read More...

Gina Davis replied to the topic 'Installing Astroberry or PiFace INDI drivers' in the forum. 1 year ago

I've tried sending a message to Radek but don't know if it worked.

Read More...

Gina Davis replied to the topic 'Installing Astroberry or PiFace INDI drivers' in the forum. 1 year ago

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".


Read More...

Gina Davis replied to the topic 'Installing Astroberry or PiFace INDI drivers' in the forum. 1 year ago

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.

Read More...

Gina Davis replied to the topic 'Installing Astroberry or PiFace INDI drivers' in the forum. 1 year ago

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.

Read More...

Gina Davis replied to the topic 'Installing Astroberry or PiFace INDI drivers' in the forum. 1 year ago

ls -a doesn't show it.

Read More...

Gina Davis replied to the topic 'Installing Astroberry or PiFace INDI drivers' in the forum. 1 year ago

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?

Read More...

Gina Davis replied to the topic 'Installing Astroberry or PiFace INDI drivers' in the forum. 1 year ago

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 is considered as within scope?

Read More...

Gina Davis replied to the topic 'Installing Astroberry or PiFace INDI drivers' in the forum. 1 year ago

Exactly the same result - same error "‘strcmp’ was not declared in this scope"

Read More...