Difference between revisions of "PvAPI"
From AIRWiki
(→Compile SampleViewer) |
(→Installation tips) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
* download linux sdk from [http://www.alliedvisiontec.com/emea/products/software/linux/gige-linux-sdk.html| here] | * download linux sdk from [http://www.alliedvisiontec.com/emea/products/software/linux/gige-linux-sdk.html| here] | ||
* copy and unpack it in a folder (example /opt) | * copy and unpack it in a folder (example /opt) | ||
+ | |||
+ | === Add shared library to your system === | ||
+ | * create a file .conf for ldconfig | ||
+ | <pre> | ||
+ | sudo nano -w /etc/ld.so.conf.d/prosilicaLib.conf | ||
+ | </pre> | ||
+ | * add the path of .so libraries to this file and save. See this example: | ||
+ | <pre> | ||
+ | /opt/prosilica/AVT GigE SDK/bin-pc/x86 | ||
+ | </pre> | ||
+ | * run | ||
+ | <pre> | ||
+ | sudo ldconfig | ||
+ | </pre> | ||
=== Compile SampleViewer === | === Compile SampleViewer === | ||
Line 23: | Line 37: | ||
WX_FLAGS = `wx-config --version=$(WX_VER) --cxxflags` | WX_FLAGS = `wx-config --version=$(WX_VER) --cxxflags` | ||
WX_LIBS = `wx-config --version=$(WX_VER) --libs` | WX_LIBS = `wx-config --version=$(WX_VER) --libs` | ||
+ | </pre> | ||
+ | * run | ||
+ | <pre> | ||
+ | make sample | ||
</pre> | </pre> | ||
== Resoureces == | == Resoureces == | ||
[http://www.alliedvisiontec.com/emea/products/software/linux/gige-linux-sdk.html| GigE Linux Sdk web page] | [http://www.alliedvisiontec.com/emea/products/software/linux/gige-linux-sdk.html| GigE Linux Sdk web page] |
Latest revision as of 15:51, 22 September 2010
Contents
Introduction
PvAPI are libraries provided by prosilica to manage and use Prosilica GigE cameras
Installation tips
- download linux sdk from here
- copy and unpack it in a folder (example /opt)
- create a file .conf for ldconfig
sudo nano -w /etc/ld.so.conf.d/prosilicaLib.conf
- add the path of .so libraries to this file and save. See this example:
/opt/prosilica/AVT GigE SDK/bin-pc/x86
- run
sudo ldconfig
Compile SampleViewer
- install these libraries
- libwxbase2.8-dev
- libwxgtk2.8-dev
or use this code:
sudo apt-get install libwxbase2.8-dev libwxgtk2.8-dev
- edit the file AVT GigE SDK/examples/SampleViewer/Makefile; substitute these lines
WX_FLAGS = `$(WX_DIR)/wx-config --version=$(WX_VER) --cxxflags` WX_LIBS = `$(WX_DIR)/wx-config --version=$(WX_VER) --libs`
with
WX_FLAGS = `wx-config --version=$(WX_VER) --cxxflags` WX_LIBS = `wx-config --version=$(WX_VER) --libs`
- run
make sample