×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

build error on Mac OS X related to libusb

  • Posts: 6
  • Thank you received: 3
Hi All,

Newbie question here. Trying to build libindi 0.9.6 on Mac OS X.8.2. Following the instructions in INSTALL:

Using ports I have confirmed I have installed:
libusb 1.0
libnova 0.15.0
cfitsio 3.310

Output follows:


ecd-mbpr: mkdir libindi_build
ecd-mbpr: cd libindi_build
ecd-mbpr: cmake -DCMAKE_INSTALL_PREFIX=/usr . ../libindi-0.9.6
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 4.0.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- 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
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5")
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.27.1")
-- Could NOT find LIBUSB (missing: LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIR)
-- Found CFITSIO 3.31: /opt/local/lib/libcfitsio.dylib
-- Performing Test NOVA_FUNCTION_COMPILE
-- Performing Test NOVA_FUNCTION_COMPILE - Failed
-- Looking for include file linux/videodev2.h
-- Looking for include file linux/videodev2.h - not found.
-- Looking for include file termios.h
-- Looking for include file termios.h - found
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBUSB_LIBRARIES (ADVANCED)
linked by target "indidriver" in directory /Users/ecdowney/indilib/libindi-0.9.6

-- Configuring incomplete, errors occurred!
ecd-mbpr:
ecd-mbpr: env | grep USB
LIBUSB_LIBRARIES=/opt/local/lib
LIBUSB_INCLUDE_DIR=/opt/local/include/libusb-1.0


As you can see at the end I have tried setting some USB env but not sure about LIBUSB or "LIBUSB_LIBRARIES (ADVANCED)".

Advice appreciated. Thanks.
11 years 3 months ago #13

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

  • Posts: 712
  • Thank you received: 174
Hi, I suspect, that libusb-compat package is missing... if you want to make sure that you have all necessary dependencies installed, install indi package directly from macports and then rebuild indi from source to replace it.

But frankly speaking, even easier is to avoid macports at all and to install native OSX INDI binary distribution from here . You will save 0.5 GB of disk space and lot of troubles :-)

Peter
The following user(s) said Thank You: Ferran Casarramona
Last edit: 11 years 2 months ago by Peter Polakovic.
11 years 2 months ago #17

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

  • Posts: 79
  • Thank you received: 25
libusb-compat dependency was already included in Indi package.

Iibindi 9.6.0 installs Ok on my Mac, but is OSX 10.7.5. My hardware don't allow OSX 10.8.

Ferran
11 years 2 months ago #34

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

Time to create page: 0.421 seconds