Thank you !

I did as suggested:
1) transformed the project from a generic Default Device into "Telescope"
2) added the functions from the Telescope Simulator which are related to "GoTo"
3) corrected some wrong function categorization (private, public, protected...)

Compiled ... with errors !! The errors is related to "missing libnova" library.

I don't know if this is the right forum where to ask for advice, if not you may point me to the right one or advice me ... please !

My development environment is Ubuntu 16.04 LTS
I installed the indi library from mutlaqja repository with this command:
sudo apt install indi-full kstars-bleeding

The libnova library version I have is 0.14.0-2.1 (both the library and the development ... all the .h files)
I downloaded the full source code of Indi (version 1.2).

As IDE I am using QT. GCC can find all the Indi Libraries (as libnova is included within telescope.h) but no way to find libnova...

I did modify the orginal MakeFile.txt of ardust4 into this, to include libnova directory:

########### Tutorial one ##############
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif(COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()


include_directories("/usr/include/libindi/")
include_directories("/usr/include/libnova/")
add_executable(indi_ardust4 ardust4.cpp ardust4driver.cpp)

target_link_libraries(indi_ardust4 indidriver)


After that I got a different output which let me think about libraries incompatibility such as versions mismatch:

:-1: error: CMakeFiles/indi_ardust4.dir/ardust4.o: undefined reference to symbol 'ln_get_julian_from_sys'

Can you suggest me which is the best development environment you suggest ? Or if you already got this issue ... how to solve it !

Cheers
Francesco

Read More...