網頁

2023年9月28日 星期四

Ubuntu 安裝 exiv2, 開發 exif 相關程式

參考 https://github.com/Exiv2/exiv2/tree/main
參考 https://github.com/Exiv2/exiv2/tree/main#PlatformLinux

download cmake from https://cmake.org/download/
$ tar xvfz cmake-3.27.6.tar.gz
$ cd cmake-3.27.6
$ sudo apt-get install libssl-dev
$ ./bootstrap
$ make -j4
$ sudo make install

$ git clone https://github.com/Exiv2/exiv2.git
$ cd exiv2
$ sudo apt-get install --yes build-essential ccache clang cmake git google-mock libbrotli-dev libcurl4-openssl-dev libexpat1-dev libgtest-dev libinih-dev libssh-dev libxml2-utils libz-dev python3 zlib1g-dev
$ cmake -S . -B build -G "Unix Makefiles"
$ cmake --build build
$ ctest --test-dir build --verbose
$ sudo cmake --install build

$ g++ -o exifprint exifprint.cpp -lexiv2