Closed mmihailescu closed 5 years ago
I think* I found a solution. When installing uvc
(as described here: https://docs.pupil-labs.com/#install-libuvc), checkout the tag v0.0.7
and then do the rest, like this:
git clone https://github.com/pupil-labs/libuvc
cd libuvc
git checkout v0.0.7
mkdir build
cd build
cmake ..
make && make install
Remove the build
directory if you already have it.
* I "think" I found a solution, because my Pupil installation still doesn't work, but at least I don't get that linker error when trying to install pyuvc
.
@papr Maybe this should be added to the developer docs?
I'm trying to install the dependencies for mac and I've been following the instructions on the pupil docs, yet I can't install the pyuvc, here is the terminal output after the brew installs...
Marias-MacBook-Air:build mariamihailescu$ git clone https://github.com/pupil-labs/libuvc Cloning into 'libuvc'... remote: Enumerating objects: 1059, done. remote: Total 1059 (delta 0), reused 0 (delta 0), pack-reused 1059 Receiving objects: 100% (1059/1059), 523.21 KiB | 2.07 MiB/s, done. Resolving deltas: 100% (635/635), done. Marias-MacBook-Air:build mariamihailescu$ cd libuvc Marias-MacBook-Air:libuvc mariamihailescu$ mkdir build Marias-MacBook-Air:libuvc mariamihailescu$ cd build Marias-MacBook-Air:build mariamihailescu$ cmake .. -- The C compiler identification is AppleClang 9.0.0.9000039 -- The CXX compiler identification is AppleClang 9.0.0.9000039 -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- No build type selected, default to Release -- No target type selected, default to shared library -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") -- Checking for module 'libusb-1.0' -- Found libusb-1.0, version 1.0.22 -- Configuring done CMake Warning (dev): Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake --help-policy CMP0042" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
uvc
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done -- Build files have been written to: /Users/mariamihailescu/libuvc/build/libuvc/build/libuvc/build/libuvc/build Marias-MacBook-Air:build mariamihailescu$ make && make install Scanning dependencies of target uvc [ 11%] Building C object CMakeFiles/uvc.dir/src/ctrl.c.o [ 22%] Building C object CMakeFiles/uvc.dir/src/ctrl-gen.c.o [ 33%] Building C object CMakeFiles/uvc.dir/src/device.c.o [ 44%] Building C object CMakeFiles/uvc.dir/src/diag.c.o [ 55%] Building C object CMakeFiles/uvc.dir/src/frame.c.o [ 66%] Building C object CMakeFiles/uvc.dir/src/init.c.o [ 77%] Building C object CMakeFiles/uvc.dir/src/stream.c.o /Users/mariamihailescu/libuvc/build/libuvc/build/libuvc/build/libuvc/src/stream.c:479:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /Users/mariamihailescu/libuvc/build/libuvc/build/libuvc/build/libuvc/src/stream.c:530:9: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] const first_measure_int = 30 * 30;