Bi-monthly release with minor bug fixes and improvements
Driver indi_usbrelay2_roof: : symbol lookup error: undefined symbol: _ZN4INDI6Logger5printEPKcjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS2_z
c++filt _ZN4INDI6Logger5printEPKcjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS2_z
INDI::Logger::print(char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, char const*, ...)
undefined reference to `INDI::Logger::print(char const*, unsigned int, std::string const&, int, char const*, ...)
include_directories( ${INDI_INCLUDE_DIR})
include_directories( ${NOVA_INCLUDE_DIR})
include_directories( ${CMAKE_CURRENT_BINARY_DIR})
include_directories( ${CMAKE_SOURCE_DIR}/usbrelay2_roof)
################ USB RELAY2 ##############################
set(usbrelay2_SRCS
${CMAKE_SOURCE_DIR}/usbrelay2_roof/usbrelay2_roof.cpp
${CMAKE_SOURCE_DIR}/usbrelay2_roof/usb_interface.cpp
)
add_executable(indi_usbrelay2_roof ${usbrelay2_SRCS})
target_link_libraries(indi_usbrelay2_roof ${INDI_DRIVER_LIBRARIES} ${USB_RELAY_DEVICE_LIBRARIES})
install(TARGETS indi_usbrelay2_roof RUNTIME DESTINATION bin )
install(FILES ${CMAKE_SOURCE_DIR}/usbrelay2_roof/99-usbrelay2.rules DESTINATION ${UDEVRULES_INSTALL_DIR})
install( FILES ${CMAKE_SOURCE_DIR}/usbrelay2_roof/indi_usbrelay2_roof.xml DESTINATION ${DATA_INSTALL_DIR})
target_link_libraries(indi_usbrelay2_roof ${INDI_LIBRARIES} ${INDI_DRIVER_LIBRARIES} ${USB_RELAY_DEVICE_LIBRARIES})
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
Please Log in or Create an account to join the conversation.
sudo apt-get install libgsl2 libgsl0-dev
sudo apt-add-repository ppa:mutlaqja/ppa
sudo apt-get install kstars-bleeding kstars-bleeding-dbg indi-dbg
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
cmake_minimum_required(VERSION 2.6)
PROJECT(indi_usbrelay2_roof CXX)
cmake_policy(SET CMP0003 NEW)
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
################## Paths ###################################
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")
set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin")
set(UDEVRULES_INSTALL_DIR "/lib/udev/rules.d" CACHE STRING "Base directory for udev rules")
set(DATA_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/indi/")
IF(APPLE)
set(CMAKE_SHARED_LINKER_FLAGS "-undefined dynamic_lookup")
ENDIF(APPLE)
################## Includes ################################
include (MacroLogFeature)
include (MacroBoolTo01)
FIND_PACKAGE(INDI REQUIRED)
#FIND_PACKAGE(INDIDriver REQUIRED)
FIND_PACKAGE(Nova REQUIRED)
FIND_PACKAGE(USBRelayDevice REQUIRED)
macro_bool_to_01(INDI_DRIVER_LIBRARIES HAVE_INDIDRIVER_LIB)
macro_bool_to_01(NOVA_FOUND HAVE_NOVA_H)
macro_log_feature(NOVA_FOUND "libnova" "A general purpose, double precision, Celestial Mechanics, Astrometry and Astrodynamics library" "http://libnova.sourceforge.net" FALSE "0.12.1" "Provides INDI with astrodynamics library.")
macro_bool_to_01(USB_RELAY_DEVICE_FOUND HAVE_USB_RELAY_DEVICE_H)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
include_directories( ${INDI_INCLUDE_DIR})
include_directories( ${NOVA_INCLUDE_DIR})
include_directories( ${CMAKE_CURRENT_BINARY_DIR})
include_directories( ${CMAKE_SOURCE_DIR}/usbrelay2_roof)
################ USB RELAY2 ##############################
set(usbrelay2_SRCS
${CMAKE_SOURCE_DIR}/usbrelay2_roof/usbrelay2_roof.cpp
${CMAKE_SOURCE_DIR}/usbrelay2_roof/usb_interface.cpp
)
add_executable(indi_usbrelay2_roof ${usbrelay2_SRCS})
target_link_libraries(indi_usbrelay2_roof ${INDI_DRIVER_LIBRARIES} ${USB_RELAY_DEVICE_LIBRARIES})
install(TARGETS indi_usbrelay2_roof RUNTIME DESTINATION bin )
install(FILES ${CMAKE_SOURCE_DIR}/usbrelay2_roof/99-usbrelay2.rules DESTINATION ${UDEVRULES_INSTALL_DIR})
install( FILES ${CMAKE_SOURCE_DIR}/usbrelay2_roof/indi_usbrelay2_roof.xml DESTINATION ${DATA_INSTALL_DIR})
###########################################################
:~/Projects/libindi/build$ sudo apt-get install libgsl2 libgsl0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libgsl-dev' instead of 'libgsl0-dev'
The following packages were automatically installed and are no longer required:
dcraw dkms fliusb-dkms fxload kded5 kinit kio kstars-bleeding-data libapogee3 libboost-regex1.55.0 libfishcamp libfli1 libftdi1 libgps21 libindi-data libkf5bookmarks-data
libkf5bookmarks5 libkf5gpgmepp5 libkf5kiofilewidgets5 libkf5kiontlm5 libkf5newstuff-data libkf5newstuff5 libkf5plotting5 libkf5solid5 libkf5solid5-data libkf5wallet-bin
libkf5wallet-data libkf5wallet5 libkidletime4 libknewstuff2-4 libkprintutils4 libkwalletbackend5-5 libqhy libqsi7 libsbigudrv2 libwcs4 python-kde4 python-numpy python-pyfits
Use 'sudo apt autoremove' to remove them.
Suggested packages:
gsl-ref-psdoc | gsl-doc-pdf | gsl-doc-info | gsl-ref-html
The following packages will be REMOVED:
astrometry.net indi-aagcloudwatcher indi-apogee indi-asicam indi-bin indi-dbg indi-dsi indi-eqmod indi-ffmv indi-fishcamp indi-fli indi-full indi-gphoto indi-gpsd indi-maxdomeii
indi-qhy indi-qsi indi-sbig indi-sx kstars-bleeding kstars-bleeding-dbg libgsl0ldbl libindi1
The following NEW packages will be installed:
libgsl-dev libgsl2
0 upgraded, 2 newly installed, 23 to remove and 0 not upgraded.
Need to get 1 802 kB of archives.
After this operation, 154 MB disk space will be freed.
Do you want to continue? [Y/n] y
Please Log in or Create an account to join the conversation.