<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:building_the_libpixyusb_example_on_linux2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
wiki:v2:building_the_libpixyusb_example_on_linux2 [2018/06/29 04:48]
hohenheim [2.1.5. Install cmake]
wiki:v2:building_the_libpixyusb_example_on_linux2 [2018/06/29 14:38]
hohenheim [3.1. Color Identification Example (GetBlocksCPPDemo)]
Line 28: Line 28:
 {{wiki:​img:​78184a8b63cf10782c18339b791db9f85a0d8bc0.png?​400}} {{wiki:​img:​78184a8b63cf10782c18339b791db9f85a0d8bc0.png?​400}}
  
 +In the terminal window type:
  
 +''​%%sudo apt-get install git libusb-1.0-0-dev g++%%''​
  
  
  
  
-===== 2.2. Build and install libpixyusb ===== 
  
  
-==== 2.2.1 Download Pixy source code ====+===== 2.2. Build libpixyusb2 =====
  
-In the terminal window type: 
  
-''​%%git clone https://​github.com/​charmedlabs/​pixy.git%%''​+==== 2.2.1 Download Pixy2 source code ====
  
-{{wiki:img:​dcf634a40148751c2a5f59668335e326013c2183.png?​400}}+In the terminal window type:
  
 +''​%%git clone https://​github.com/​charmedlabs/​pixy2%%''​
  
 +{{:​wiki:​v2:​git_clone.png?​400|}}
 ==== 2.2.2. Build the library ==== ==== 2.2.2. Build the library ====
  
 In the terminal window type: In the terminal window type:
  
-''​%%cd pixy/scripts%%''​\\ +''​%%./pixy2/scripts/build_libpixyusb2.sh%%''​
-''​%%./build_libpixyusb.sh%%''​+
  
-{{wiki:img:a636c182eec2a7d020e836738a7d629fa4b5bb13.png?400}}+{{:undefined:build_libpixyusb2.png?400|}}
  
  
-==== 2.2.3. Install the library ==== 
- 
-Installing the library files requires root privileges. 
- 
-In the terminal window type: 
- 
-''​%%sudo ./​install_libpixyusb.sh%%''​ 
  
-{{wiki:​img:​d35f59500541f5c21f6aa117ae10b1ecb6af8fba.png?​400}} 
  
  
 ====== 3. Example projects ====== ====== 3. Example projects ======
  
-Before trying the examples below, connect ​Pixy to your Linux system using a USB Mini cable:+Before trying the examples below, connect ​Pixy2 to your Linux system using a USB Micro-B ​cable:
  
-{{wiki:img:e0e66b6f1b2c5231027c1d03c811e16207772021.jpg?400}}+{{:undefined:connect_pixy_usb.png?400|}}
  
  
-===== 3.1. hello_pixy: A Simple IO Example =====+===== 3.1. Color Identification ​Example ​(GetBlocksCPPDemo) ​=====
  
 The example does the following: The example does the following:
  
-  - Connects to Pixy using USB +  - Connects to Pixy2 using USB 
-  - Displays firmware version installed on Pixy +  - Displays firmware version installed on Pixy2 
-  - Block information is displayed (as shown in the image above) if color signatures have been set and if the signatures are currently being detected by Pixy.+  - Block information is displayed (as shown in the image above) if color signatures have been set and if the signatures are currently being detected by Pixy2.
  
  
wiki/v2/building_the_libpixyusb_example_on_linux2.txt · Last modified: 2018/06/29 15:23 by hohenheim