amyznikov / QIndigoFocuser

Qt-based INDIGO client application for AstroGadget FocusDreamPro focuser driver
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

How do you build this for use with INDI ? #1

Open stayAtHomeAstronaut opened 1 year ago

stayAtHomeAstronaut commented 1 year ago

How do you build this for use with INDI? (indi-server)

amyznikov commented 1 year ago

Hello,

Excuse me please for late replay, I just saw this message.

I link this app with indigo libs directly, with no using indigo server, because I run both indigo and my apps on single laptop host .

If you look into CMakelists.txt then you will see the link commands :

set(APP_LIBRARIES 
  Qt${QT_VERSION}::Core
  Qt${QT_VERSION}::Gui
  Qt${QT_VERSION}::Widgets
  indigo)  <----- cmake adds actual "-lindigo" here 

blah blah blah ...

target_link_libraries(${PROJECT_NAME}
    ${APP_LIBRARIES}) 

For the building the indigo libs itself I followed instructions on theirs github project page https://github.com/indigo-astronomy/indigo :

git clone https://github.com/indigo-astronomy/indigo.git
cd indigo
make all
sudo make install

After the above is successfully done the cmake is able to locate indgo headers and libs in standard include and library path.

To run the app the indigo server not need to be started, the app uses indigo libs directly and ignores any server instances.