trying to install on mac
using homebrew :
brew install libusb
brew install sdl2
cd sdl
make
When running make it gives me make:
"pkg-config: Command not found
c++ -I../src -I. -std=c++11 -O3 -I/usr/local/include/SDL2 -D_THREAD_SAFE -c -o main.o main.cpp
In file included from main.cpp:9:
../src/ps3eye.h:19:10: fatal error: 'libusb.h' file not found
#include "libusb.h" " .
Then I do " make #include "libusb.h"
I get:
make: pkg-config: Command not found
c++ -I../src -I. -std=c++11 -O3 -I/usr/local/include/SDL2 -D_THREAD_SAFE -c -o main.o main.cpp
make: pkg-config: Command not found
c++ -I../src -I. -std=c++11 -O3 -I/usr/local/include/SDL2 -D_THREAD_SAFE -c -o ../src/ps3eye.o ../src/ps3eye.cpp
../src/ps3eye.cpp:333:5: warning: 'libusb_set_debug' is deprecated
[-Wdeprecated-declarations]
libusb_set_debug(usb_context, 1);
^
./libusb.h:1324:1: note: 'libusb_set_debug' has been explicitly marked
deprecated here
LIBUSB_DEPRECATED_FOR(libusb_set_option)
^
./libusb.h:89:49: note: expanded from macro 'LIBUSB_DEPRECATED_FOR'
#define LIBUSB_DEPRECATED_FOR(f) attribute((deprecated))
^
1 warning generated.
make: pkg-config: Command not found
c++ -I../src -I. -std=c++11 -O3 -I/usr/local/include/SDL2 -D_THREAD_SAFE -c -o ../src/ps3eye_capi.o ../src/ps3eye_capi.cpp
make: pkg-config: Command not found
c++ -o ps3eye_sdl main.o ../src/ps3eye.o ../src/ps3eye_capi.o -L/usr/local/lib -lSDL2
Undefined symbols for architecture x86_64:
"_libusb_alloc_transfer", referenced from:
ps3eye::URBDesc::start_transfers(libusb_device_handle*, unsigned int) in ps3eye.o
"_libusb_cancel_transfer", referenced from:
ps3eye::URBDesc::close_transfers() in ps3eye.o
"_libusb_claim_interface", referenced from:
ps3eye::PS3EYECam::init(unsigned int, unsigned int, unsigned short, ps3eye::PS3EYECam::EOutputFormat) in ps3eye.o
ps3eye::PS3EYECam::open_usb() in ps3eye.o
"_libusb_clear_halt", referenced from:
ps3eye::URBDesc::start_transfers(libusb_device_handle*, unsigned int) in ps3eye.o
"_libusb_close", referenced from:
ps3eye::USBMgr::listDevices(std::__1::vector<std::__1::shared_ptrps3eye::PS3EYECam, std::__1::allocator<std::__1::shared_ptrps3eye::PS3EYECam > >&) in ps3eye.o
ps3eye::PS3EYECam::~PS3EYECam() in ps3eye.o
ps3eye::PS3EYECam::release() in ps3eye.o
ps3eye::PS3EYECam::close_usb() in ps3eye.o
"_libusb_control_transfer", referenced from:
ps3eye::PS3EYECam::~PS3EYECam() in ps3eye.o
ps3eye::PS3EYECam::stop() in ps3eye.o
ps3eye::PS3EYECam::init(unsigned int, unsigned int, unsigned short, ps3eye::PS3EYECam::EOutputFormat) in ps3eye.o
ps3eye::PS3EYECam::ov534_set_frame_rate(unsigned short, bool) in ps3eye.o
ps3eye::PS3EYECam::ov534_reg_write(unsigned short, unsigned char) in ps3eye.o
ps3eye::PS3EYECam::sccb_reg_write(unsigned char, unsigned char) in ps3eye.o
ps3eye::PS3EYECam::sccb_reg_read(unsigned short) in ps3eye.o
...
"_libusb_exit", referenced from:
ps3eye::USBMgr::~USBMgr() in ps3eye.o
ps3eye::USBMgr::~USBMgr() in ps3eye.o
ps3eye::USBMgr::instance() in ps3eye.o
std::__1::__shared_ptr_pointer<ps3eye::USBMgr*, std::__1::default_deleteps3eye::USBMgr, std::__1::allocatorps3eye::USBMgr >::__on_zero_shared() in ps3eye.o
"_libusb_free_config_descriptor", referenced from:
ps3eye::URBDesc::start_transfers(libusb_device_handle*, unsigned int) in ps3eye.o
"_libusb_free_device_list", referenced from:
ps3eye::USBMgr::listDevices(std::__1::vector<std::__1::shared_ptrps3eye::PS3EYECam, std::__1::allocator<std::__1::shared_ptrps3eye::PS3EYECam > >&) in ps3eye.o
"_libusb_free_transfer", referenced from:
ps3eye::transfer_completed_callback(libusb_transfer*) in ps3eye.o
"_libusb_get_active_config_descriptor", referenced from:
ps3eye::URBDesc::start_transfers(libusb_device_handle*, unsigned int) in ps3eye.o
"_libusb_get_bus_number", referenced from:
ps3eye::PS3EYECam::getUSBPortPath(char*, unsigned long) const in ps3eye.o
"_libusb_get_device", referenced from:
ps3eye::URBDesc::start_transfers(libusb_device_handle*, unsigned int) in ps3eye.o
"_libusb_get_device_descriptor", referenced from:
ps3eye::USBMgr::listDevices(std::__1::vector<std::__1::shared_ptrps3eye::PS3EYECam, std::__1::allocator<std::__1::shared_ptrps3eye::PS3EYECam > >&) in ps3eye.o
"_libusb_get_device_list", referenced from:
ps3eye::USBMgr::listDevices(std::__1::vector<std::__1::shared_ptrps3eye::PS3EYECam, std::__1::allocator<std::__1::shared_ptrps3eye::PS3EYECam > >&) in ps3eye.o
"_libusb_get_port_numbers", referenced from:
ps3eye::PS3EYECam::getUSBPortPath(char*, unsigned long) const in ps3eye.o
"_libusb_handle_events_timeout_completed", referenced from:
ps3eye::USBMgr::transferThreadFunc() in ps3eye.o
"_libusb_init", referenced from:
ps3eye::USBMgr::USBMgr() in ps3eye.o
ps3eye::USBMgr::USBMgr() in ps3eye.o
ps3eye::USBMgr::instance() in ps3eye.o
"_libusb_open", referenced from:
ps3eye::USBMgr::listDevices(std::__1::vector<std::__1::shared_ptrps3eye::PS3EYECam, std::__1::allocator<std::__1::shared_ptrps3eye::PS3EYECam > >&) in ps3eye.o
ps3eye::PS3EYECam::init(unsigned int, unsigned int, unsigned short, ps3eye::PS3EYECam::EOutputFormat) in ps3eye.o
ps3eye::PS3EYECam::open_usb() in ps3eye.o
"_libusb_ref_device", referenced from:
ps3eye::USBMgr::listDevices(std::__1::vector<std::__1::shared_ptrps3eye::PS3EYECam, std::__1::allocator<std::__1::shared_ptrps3eye::PS3EYECam > >&) in ps3eye.o
"_libusb_release_interface", referenced from:
ps3eye::PS3EYECam::~PS3EYECam() in ps3eye.o
ps3eye::PS3EYECam::release() in ps3eye.o
ps3eye::PS3EYECam::close_usb() in ps3eye.o
"_libusb_set_debug", referenced from:
ps3eye::USBMgr::USBMgr() in ps3eye.o
ps3eye::USBMgr::USBMgr() in ps3eye.o
ps3eye::USBMgr::instance() in ps3eye.o
"_libusb_submit_transfer", referenced from:
ps3eye::URBDesc::start_transfers(libusb_device_handle*, unsigned int) in ps3eye.o
ps3eye::transfer_completed_callback(libusb_transfer*) in ps3eye.o
"_libusb_unref_device", referenced from:
ps3eye::PS3EYECam::~PS3EYECam() in ps3eye.o
ps3eye::PS3EYECam::release() in ps3eye.o
ps3eye::PS3EYECam::close_usb() in ps3eye.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Whats the last thing indicate and how can I fix it?