Don't be overwhelmed with all the installation steps listed below here. Most distros can install both libgphoto and cmake through their package manger, and then all you need to do is follow the instructions in the gphoto2pp section.
Everything mentioned in User Prerequisites plus:
apt-get install libgphoto2-2-dev
or brew install libgphoto2
or yum, or whatever package management system your OS uses
You only need to do this if you explicitly want the latest and greatest libgphoto2 to work with. But most distros have 2.4.14 or greater in their package management system, in which case you should probably use the simple way.
Again, most distros have this, so install it through your package manager brew, apt-get, yum, etc...
Install cxxtest
using package manager.
Also, if you'd like to generate the documentation, install doxygen
and graphviz
the same way. You can make the documentation by typing make doc
.
We are almost there.
./cmake_release.sh
or ./cmake_debug.sh
. I recommend release, unless you plan on debugging and perhaps contributing code back to the repo.cd ./build/debug/
or cd ./build/release/
and enter the command make
, and it will build the library.make examples
or make example[0-9]+
.make install
and let it do it's magic. (will probably require sudo, and the install will not be present if compiled in DEBUG mode)ldconfig
to update your PATH with the new library (this is the command my OS, it might vary, and you might need to use sudo as well)make uninstall
from this same directory. You will need to have the install_manifest.txt preserved so the uninstall know's what files to uninstall. (again, will probably require sudo)此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。