×

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

Bi-monthly release with minor bug fixes and improvements

DEV question: Compiling custom drivers against INDI 1.4

  • Posts: 456
  • Thank you received: 76
Sorry a CMake Noob question.....
Wondering if someone could help me please?
I'm trying to compile my custom driver which did compile fine about a month ago.
Now I get this error 'Could NOT find INDI (missing: INDI_LIBRARIES)'
See full output below.
-- 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
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find INDI (missing: INDI_LIBRARIES)
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/dokeeffe/code/github/auxremote/ext/indi-driver/build/CMakeFiles/CMakeOutput.log".
make: *** No rule to make target 'install'.  Stop.

Here is the contents of my CmakeLists.txt
PROJECT(indi_auxremote CXX C)
cmake_minimum_required(VERSION 2.4.7)
 
include(GNUInstallDirs)
 
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/")
 
set (VERSION_MAJOR 0)
set (VERSION_MINOR 2)
 
find_package(INDI REQUIRED)
find_package(Nova REQUIRED)
find_package(ZLIB REQUIRED)
 
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${INDI_INCLUDE_DIR})
include_directories(${NOVA_INCLUDE_DIR})
include_directories( ${EV_INCLUDE_DIR})
 
################ AuxRemote ################
set(auxremote_SRCS
      ${CMAKE_CURRENT_SOURCE_DIR}/auxremotedriver.cpp
      ${CMAKE_CURRENT_SOURCE_DIR}/gason.cpp
   )
 
add_executable(indi_auxremote ${auxremote_SRCS})
target_link_libraries(indi_auxremote ${INDI_DRIVER_LIBRARIES} ${NOVA_LIBRARIES} curl)
install(TARGETS indi_auxremote RUNTIME DESTINATION bin )
install(FILES indi_auxremote.xml DESTINATION ${INDI_DATA_DIR})
7 years 3 weeks ago #14924

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

Use the updated FindINDI.cmake in INDI 1.4
The following user(s) said Thank You: Derek
7 years 3 weeks ago #14926

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

Time to create page: 0.232 seconds