Difference between revisions of "Installing Arducam C/C++ SDK"
Jump to navigation
Jump to search
(Created page with "== Installing Arducam C/C++ SDK == 1) Create swap space, otherwise if you don't have at least 1GB of RAM the compiler will crash. free dd if=/dev/zero of=/var/swap.img bs=...") |
|||
Line 1: | Line 1: | ||
− | == Installing Arducam C/C++ SDK == | + | == Installing Arducam C/C++ SDK on NanoPI Neo == |
1) Create swap space, otherwise if you don't have at least 1GB of RAM the compiler will crash. | 1) Create swap space, otherwise if you don't have at least 1GB of RAM the compiler will crash. | ||
Line 9: | Line 9: | ||
free | free | ||
− | 2) Download Arducam SDK | + | 2) Install libusb1.0-0-dev |
+ | |||
+ | apt-get install libusb1.0-0-dev | ||
+ | |||
+ | 3) Download Arducam SDK from github: | ||
+ | |||
+ | https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield | ||
+ | |||
+ | then put it in a directory of your choice | ||
+ | |||
+ | 4) Go to the Raspberry PI directory (NanoPI has the same ARM architecture), and | ||
+ | |||
+ | - install Arducam SDK | ||
+ | |||
+ | cd /root/ArduCAM_USB_Camera_Shield-master/RaspberryPi/Cpp/Streaming_demo | ||
+ | export LD_LIBRARY_PATH=./Arducam_SDK | ||
+ | make install-sdk | ||
+ | mv ArduCam_Demo ArduCam_Demo.orig | ||
+ | make | ||
+ | |||
+ | It will compile. Then, make a check. | ||
+ | |||
+ | ./ArduCam_Demo ../../../cpp_config/OV5642_JPEG_QSXGA.yml | ||
+ | |||
+ | Here is the output: | ||
+ | device num:1 | ||
+ | index: 0 Serial:▒▒▒▒-▒▒▒▒-▒▒▒▒ | ||
+ | Serial: ▒▒▒▒-▒▒▒▒-▒▒▒▒ | ||
+ | capture thread create successfully. | ||
+ | read thread create successfully. | ||
+ | Capture began, rtn_val = 0 | ||
+ | (ArduCam:8149): Gtk-WARNING **: cannot open display: | ||
+ | |||
+ | The executable will get an error due to the lack of graphic interface, but the camera is recognized. |
Revision as of 11:45, 5 January 2019
Installing Arducam C/C++ SDK on NanoPI Neo
1) Create swap space, otherwise if you don't have at least 1GB of RAM the compiler will crash.
free dd if=/dev/zero of=/var/swap.img bs=1024k count=1000 mkswap /var/swap.img swapon /var/swap.img free
2) Install libusb1.0-0-dev
apt-get install libusb1.0-0-dev
3) Download Arducam SDK from github:
https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield
then put it in a directory of your choice
4) Go to the Raspberry PI directory (NanoPI has the same ARM architecture), and
- install Arducam SDK
cd /root/ArduCAM_USB_Camera_Shield-master/RaspberryPi/Cpp/Streaming_demo export LD_LIBRARY_PATH=./Arducam_SDK make install-sdk mv ArduCam_Demo ArduCam_Demo.orig make
It will compile. Then, make a check.
./ArduCam_Demo ../../../cpp_config/OV5642_JPEG_QSXGA.yml
Here is the output:
device num:1 index: 0 Serial:▒▒▒▒-▒▒▒▒-▒▒▒▒ Serial: ▒▒▒▒-▒▒▒▒-▒▒▒▒ capture thread create successfully. read thread create successfully. Capture began, rtn_val = 0 (ArduCam:8149): Gtk-WARNING **: cannot open display:
The executable will get an error due to the lack of graphic interface, but the camera is recognized.