Giter Site home page Giter Site logo

pixy2_example's Introduction

pixy2_example

How to link to Pixy2 using CMake and C++

I bought a pixy2 to play with some computer vision, but it turned out now to be what I expected. Linking to the library and installing it was a bit of a pain, so I thought I'd create a repo in case you're interested in writing some C/C++ code for it.

The following steps are taken straight out of: https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:building_the_libpixyusb_example_on_linux

 sudo apt install git libusb-1.0-0-dev g++ build-essential 
 git clone https://github.com/charmedlabs/pixy2 
 cd pixy2/scripts && ./build_libpixyusb2.sh 

Once libpixy2.a is built, they don't have an obvious way of installing the library to link to it. Inside this repo there's an install_libpixyusb2.sh script.

cp pixy2_example/scripts/install_libpixyusb2.sh pixy2/scripts/
cd pixy2/scripts/
sudo ./install_libpixyusb2.sh

This will install the headers and library file to /usr/local/

Now we can link to the library. Take a look at the cmake and examples directory.

mkdir build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j6

pixy2_example's People

Contributors

manuelmeraz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.