{"id":22281023,"url":"https://github.com/exiv2/exiv2","last_synced_at":"2026-03-01T13:09:18.893Z","repository":{"id":37270035,"uuid":"89623031","full_name":"Exiv2/exiv2","owner":"Exiv2","description":"Image metadata library and tools","archived":false,"fork":false,"pushed_at":"2025-04-06T04:52:47.000Z","size":130576,"stargazers_count":994,"open_issues_count":185,"forks_count":289,"subscribers_count":25,"default_branch":"main","last_synced_at":"2025-04-06T06:47:28.408Z","etag":null,"topics":["cli","exif","exif-interface","exif-metadata","image-metadata","iptc","iptc-metadata","xmp","xmp-metadata"],"latest_commit_sha":null,"homepage":"http://www.exiv2.org/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Exiv2.png","metadata":{"files":{"readme":"README-CONAN.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-27T17:25:13.000Z","updated_at":"2025-04-04T19:25:10.000Z","dependencies_parsed_at":"2024-04-01T05:36:16.307Z","dependency_job_id":"747f40db-257e-4965-b32a-e374b1651353","html_url":"https://github.com/Exiv2/exiv2","commit_stats":{"total_commits":8358,"total_committers":131,"mean_commits":63.80152671755725,"dds":0.7179947355826752,"last_synced_commit":"5708bee1e68c7668ee685e41eb05b80dcc2414fb"},"previous_names":[],"tags_count":74,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exiv2%2Fexiv2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exiv2%2Fexiv2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exiv2%2Fexiv2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Exiv2%2Fexiv2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Exiv2","download_url":"https://codeload.github.com/Exiv2/exiv2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154975,"owners_count":21056541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","exif","exif-interface","exif-metadata","image-metadata","iptc","iptc-metadata","xmp","xmp-metadata"],"created_at":"2024-12-03T16:12:30.073Z","updated_at":"2025-12-28T08:57:39.796Z","avatar_url":"https://github.com/Exiv2.png","language":"C++","readme":"![Exiv2](exiv2.png)\n\n# Building Exiv2 and dependencies with conan\n\nConan is a portable package manager for C/C++ libraries. It can be used to create all  dependencies needed to build Exiv2, without needing to install system packages.\n\nThis document provides a step-by-step guide to show you the basic usage of conan. For more details about the tool,\nplease visit the [Conan documentation website](http://docs.conan.io/en/latest/).\n\nAlthough we provide step-by-step instructions to enable you to build Exiv2 with conan, we recommend that you read conan's documentation to understand the main concepts: [Getting started with Conan](http://docs.conan.io/en/latest/getting_started.html)\n\nTo build Exiv2 with conan, you will also need to install CMake.  https://cmake.org/download/\n\n_**We do not recommend using conan on MinGW, Cygwin, Unix or to cross compile from Linux to those platforms.**\u003cbr\u003e\nThe build procedures for those platforms are discussed here: See [README.md](README.md)_\n\n\u003cname id=\"TOC\"\u003e\u003c/a\u003e\n----\n### TABLE OF CONTENTS\n\n1. [Step by Step Guide](#1)\n    1. [Install conan](#1-1)\n    2. [Test conan installation](#1-2)\n    3. [Create a build directory](#1-3)\n    4. [Build dependencies, create build environment, build and test](#1-4)\n2. [Platform Notes](#2)\n    1. [Linux Notes](#2-1)\n    2. [Visual Studio Notes](#2-2)\n3. [Conan Architecture](#3)\n    1. [conanfile.py](#3-1)\n    2. [Conan Recipes](#3-2)\n    3. [Conan server search path](#3-3)\n    4. [Configuring conan on your machine](#3-4)\n4. [Building Exiv2 with Adobe XMPsdk 2016](#4)\n    1. [Add a remote directory to conan's recipe search path](#4-1)\n    2. [Build dependencies and install conan artefacts in your build directory](#4-2)\n    3. [Execute cmake to generate build files for your environment](#4-3)\n    4. [Build Exiv2 and link Adobe XMPsdk library](#4-4)\n5. [Webready Support](#5)\n\n\u003cname id=\"1\"\u003e\u003c/a\u003e\n----\n\n# 1 Step by Step Guide\n\n\u003cname id=\"1-1\"\u003e\u003c/a\u003e\n\n##### 1.1) \u003c/a\u003eInstall conan:\n\n```bash\n$ pip install conan\n```\nFor other installation methods (brew, installers, from sources), visit this [link]([install\nconan](http://docs.conan.io/en/latest/installation.html)).\n\nTo upgrade the version of conan:\n\n```bash\n$ pip install conan --upgrade\n```\n\n\u003cname id=\"1-2\"\u003e\u003c/a\u003e\n\n##### 1.2) Test conan installation\n\n```bash\n$ conan --version\nConan version 1.23.0\n```\n\n\u003cname id=\"1-3\"\u003e\u003c/a\u003e\n\n##### 1.3) Create a build directory\u003cname id=\"1-3\"\u003e\u003c/a\u003e\n\nCreate a build directory and run the conan commands:\n\n```bash\n$ mkdir build\n$ cd build\n$ conan profile list\n```\n_**Visual Studio Users**_\n\n_The profile msvc2019Release96 in `%USERPROFILE%\\.conan\\profiles\\msvc2019Release64` is:_\n\n```ini\n[build_requires]\n[settings]\narch=x86_64\nbuild_type=Release\ncompiler=Visual Studio\ncompiler.runtime=MD\ncompiler.version=16\nos=Windows\narch_build=x86_64\nos_build=Windows\n[options]\n[env]\n```\n\n_Profiles for Visual Studio are discussed in detail here: [Visual Studio Notes](#2-2)_\n\n\u003cname id=\"1-4\"\u003e\u003c/a\u003e\n\n##### 1.4) Build dependencies, create build environment, build and test\u003c/a\u003e\n\n\n|         | Build Steps                                                              | Linux and macOS       | Visual Studio |\n|:--      |:-------------------------------------------------------------------------|-----------------------|------------------------------|\n| _**1**_ | Get conan to fetch dependencies\u003cbr\u003e\u003cbr\u003eThe output can be quite\u003cbr\u003elong as conan downloads and/or builds\u003cbr\u003ezlib, expat, curl and other dependencies.| $ conan install ..\u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;--build missing       | c:\\\\..\\\\build\u003e conan install .. --build missing\u003cbr\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;--profile msvc2019Release64 |\n| _**2**_ | Get cmake to generate\u003cbr\u003emakefiles or sln/vcxproj                        | $ cmake ..            | c:\\\\..\\\\build\u003e cmake\u0026nbsp;..\u0026nbsp;-G\u0026nbsp;\"Visual Studio 16 2019\"\n| _**3**_ | Build                                                                    | $ cmake --build .     | c:\\\\..\\\\build\u003e\u0026nbsp;cmake\u0026nbsp;--build\u0026nbsp;.\u0026nbsp;--config\u0026nbsp;Release\u003cbr\u003eYou may prefer to open exiv2.sln and build using the IDE. |\n| _**4**_ | Optionally Run Test Suite\u003cbr/\u003eTest documentation: [README.md](README.md) | $ ctest               | c:\\\\..\\\\build\u003e\u0026nbsp;ctest -C Release |\n\n[TOC](#TOC)\n\u003cname id=\"2\"\u003e\u003c/a\u003e\n\n## 2) Platform Notes\n\n\u003cname id=\"2-1\"\u003e\u003c/a\u003e\n\n### 2.1) Linux Notes\n\n##### Default Profile\n\nWhen you run conan install for the first time, it will detect and write the default profile ~/.conan/profile/default.  On my Ubuntu system with GCC 4.9, this is:\n\n```ini\n[settings]\nos=Linux\nos_build=Linux\narch=x86_64\narch_build=x86_64\ncompiler=gcc\ncompiler.version=4.9\ncompiler.libcxx=libstdc++\nbuild_type=Release\n[options]\n[build_requires]\n[env]\n```\n\n##### Changing profile settings\n\nOne of the most important **profile** settings to be adjusted in your conan profile when working on Linux is the field:\n\n```bash\ncompiler.libcxx=libstdc++11  # Possible values: libstdc++, libstdc++11, libc++\n```\nWith the arrival of the c++11 standard, and the growing popularity of the *clang* compiler, it is increasingly important which version of the standard library to use (corresponds to the `-stdlib` compiler flag).\n\nRecommended **libcxx**\nsettings works with conan and different compilers:\n\n```bash\ncompiler.libcxx=libstdc++11  # will use -stdlib=libstdc++ and define _GLIBCXX_USE_CXX11_ABI=1\ncompiler.libcxx=libstdc++    # will use -stdlib=libstdc++ and define _GLIBCXX_USE_CXX11_ABI=0\ncompiler.libcxx=libc++       # will use -stdlib=libc++\n```\n\nAs a rule of thumb, set `compiler.libcxx=libstdc++11` when using a version of gcc \u003e= 5.1.\n\nMore information about the standard library and GCC [dual ABI in gcc](https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html) with GCC works.\n\nPlease, be aware that normally when using gcc \u003e= 5.1, \\_GLIBCXX\\_USE\\_CXX11\\_ABI is set to 1 by default. However some linux\ndistributions might set that definition to 0 by default. In case you get linking errors about standard c++ containers or\nalgorithms when bringing the Exiv2 dependencies with conan, this might indicate a mismatch between the value set in\n**compiler.libcxx** and the default values used in your distribution.\n\n[TOC](#TOC)\n\u003cname id=\"2-2\"\u003e\u003c/a\u003e\n\n### 2.2) Visual Studio Notes\n\nWe recommend that you install python as discussed here:  [https://github.com/Exiv2/exiv2/pull/1403#issuecomment-731836146](https://github.com/Exiv2/exiv2/pull/1403#issuecomment-731836146)\n\n### Profiles for Visual Studio\n\nExiv2 v0.27 can be built with VS 2008, 2010, 2012, 2013, 2015 , 2017 and 2019.\n\nExiv2 v1.0 is being \"modernised\" to C++11 and will not support C++98.\nWe don't expect Exiv2 v1.0 to build with VS versions earlier than VS 2015.\n\nYou create profiles in %HOMEPATH%\\.conan\\profiles with a text editor.  For your convenience, you'll find profiles in `\u003cexiv2dir\u003e\\cmake\\msvc_conan_profiles`. \n\n```\nProfile :=    msvc{Edition}{Type}{Bits}\nEdition :=  { 2019    | 2017  |  2015  }\nType    :=  { Release | Debug }\nBits    :=  { 64      | 32    }  \nExamples:     msvc2019Release64 msvc2017Release32  msvc2015Debug32\n```\n\nThe profile msvc2019Release64 is as follows:\n\n```ini\n[build_requires]\n[settings]\narch=x86_64\nbuild_type=Release\ncompiler=Visual Studio\ncompiler.runtime=MD\ncompiler.version=16\nos=Windows\narch_build=x86_64\nos_build=Windows\n[options]\n[env]\n```\n\n### Tools for Visual Studio 2019\n\nYou will need cmake version 3.14 (and up) and conan 1.14 (and up).\n\nAdditionally, when I upgraded to conan 1.14.3, I had to manually update the file `settings.yml` as follows. For me: `%USERPROFILE% == C:\\Users\\rmills`:\n\n```bat\ncopy/y %USERPROFILE%\\.conan\\settings.yml.new %USERPROFILE%\\.conan\\settings.yml\n```\n\n### CMake Generators for Visual Studio\n\nIn the step-by-step guide, the command `$ cmake ..` uses\nthe default CMake generator.  Always use the generator for your version of Visual Studio.  For example:\n\n```bat\nc:\\..\\build\u003e conan install .. --build missing --profile msvc2019Release64\nc:\\..\\build\u003e cmake         .. -G \"Visual Studio 16 2019\" -A x64\nc:\\..\\build\u003e cmake --build .  --config Release\n```\n\nCMake provides Generators for different editions of Visual Studio.  The 64 and 32 bit Generators have different names:\n\n| Architecture | Visual Studio 2019 | Visual Studio 2017 | Visual Studio 2015 |\n|:---------    |--------------------|--------------------|--------------------|--------------------|\n| 64 bit       | -G \"Visual Studio 16 2019\" -A x64          | -G \"Visual Studio 15 2017 Win64\" | -G \"Visual Studio 14 2015 Win64\"     |\n| 32 bit       | -G \"Visual Studio 16 2019\" -A Win32        | -G \"Visual Studio 15 2017\"       | -G \"Visual Studio 14 2015\"           |\n\n### Recommended settings for Visual Studio\n\n##### 64 bit Release Build\n\n| | Visual Studio 2019 | Visual Studio 2017 | Visual Studio 2015|\n|:---------|--------------------|--------------------|--------------|\n| _**conan install .. --profile**_ | msvc2019Release64 | msvc2017Release64 | msvc2015Release64 |\n| _**cmake**_                   |  -G \"Visual Studio 16 2019\" -A x64   |  -G \"Visual Studio 15 2017 Win64\"    | -G \"Visual Studio 14 2015 Win64\" |\n| _**profile**_\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e_ | arch=x86\\_64\u003cbr\u003earch\\_build=x86\\_64\u003cbr\u003ebuild\\_type=Release\u003cbr\u003ecompiler.runtime=MD\u003cbr\u003ecompiler.version=16\u003cbr\u003ecompiler=Visual Studio\u003cbr\u003eos=Windows\u003cbr\u003eos\\_build=Windows  | arch=x86\\_64\u003cbr\u003earch\\_build=x86\\_64\u003cbr\u003ebuild\\_type=Release\u003cbr\u003ecompiler.runtime=MD\u003cbr\u003ecompiler.version=15\u003cbr\u003ecompiler=Visual Studio\u003cbr\u003eos=Windows\u003cbr\u003eos\\_build=Windows  | arch=x86\\_64\u003cbr\u003earch\\_build=x86\\_64\u003cbr\u003ebuild\\_type=Release\u003cbr\u003ecompiler.runtime=MD\u003cbr\u003ecompiler.version=14 \u003cbr\u003ecompiler=Visual Studio\u003cbr\u003eos=Windows\u003cbr\u003eos\\_build=Windows |\n\n##### Debug Builds\n\n|| Visual Studio 2019 | Visual Studio 2017 | Visual Studio 2015 |\n|:-------|-------|------|--------------|\n| _**conan install .. --profile**_ | msvc2019Debug64 | msvc2017Debug64 | msvc2015Debug64 |\n| _**profile**_\u003cbr\u003e_ | build\\_type=Debug\u003cbr\u003ecompiler.runtime=MDd | build\\_type=Debug\u003cbr\u003ecompiler.runtime=MDd | build_type=Debug\u003cbr\u003ecompiler.runtime=MDd |\n\n##### 32bit Builds\n\n|| Visual Studio 2019 | Visual Studio 2017 | Visual Studio 2015 |\n|:-----------|--------------------|--------------------|--------------------|\n| _**conan install .. --profile**_ | msvc2019Release32 | msvc2017Release32 | msvc2015Release32 |\n| _**cmake**_ | -G \"Visual Studio 16 2019\" -A Win32 | -G \"Visual Studio 15 2017\" | -G \"Visual Studio 14 2015\" |\n| _**profile**_\u003cbr\u003e_ | arch=x86\u003cbr\u003earch\\_build=x86 | arch=x86\u003cbr\u003earch\\_build=x86 | arch=x86\u003cbr\u003earch\\_build=x86 |\n\n##### Static Builds\n\nThe default builds of Exiv2 and sample applications build and use DLLs.\n\nTo build static libraries, use the cmake option `-DBUILD_SHARED_LIBS=Off`.  You will probably also want to use the static run-time.  The default is to use the dynamic run-time library.\n\n```bash\n$ cmake .. -DBUILD_SHARED_LIBS=Off -DEXIV2_ENABLE_DYNAMIC_RUNTIME=Off\n```\n\nIf you wish to use the static C run-time library, use the following option in the conan profile.\n\n|                      | Static Release      | Static Debug |\n|:---                  |:---------           |:-------------------|\n| **profile setting**  | compiler.runtime=MT | compiler.runtime=MTd |\n\nIf you receive a linker warning concerning `LIBCMT`, it is because you are attempting to link libraries which have been built with different run-time libraries.\nYou should link everything with the dynamic or static run-time. You can link a static library with the dynamic run-time if you wish.\n\n### Changing profile settings with the conan command\n\nIt is recommended that you use profiles provided in `\u003cexiv2dir\u003e\\cmake\\msvc_conan_profiles`.\n\nYou can modify profile settings on the command line.\nThe following example demonstrates making substantial changes to profile settings by performing a 32 bit build using Visual Studio 2015 with a 2017 profile!  This example is not considered good practice, it is an illustration of some conan flexibility which may be useful when your build environment is automated.\n\n```bash\n$ conan install .. --profile msvc2017Release64 -s arch_build=x86 -s arch=x86 -s compiler.version=14\n$ cmake         .. -G \"Visual Studio 2015\"\n$ cmake --build .  --config Release\n```\n\n[TOC](#TOC)\n\u003cname id=\"3\"\u003e\n## 3 Conan Architecture\n\n\u003cname id=\"3-1\"\u003e\n\n##### 3.1) conanfile.py\n\nIn the root level of the **Exiv2** repository, the file `conanfile.py` defines C/C++ dependencies with the syntax: `Library/version@user/channel`\n\nFor example, **zlib**:\n\n```python\nself.requires('self.requires('zlib/1.2.11@conan/stable')')\n```\n\n[TOC](#TOC)\n\u003cname id=\"3-2\"\u003e\n\n##### 3.2) Conan _**Recipes**_\n\nConan searches remote servers for a _**recipe**_ to build a dependency.\n\nA _**recipe**_ is a python file which indicates how to build a library from sources. The recipe\nunderstands configurations: Platform/Compiler/Settings.  If the remote server has a pre-compiled package for\nyour configuration, it will be downloaded.  Otherwise, conan will compile the libraries on your machine using instructions in the recipe.\n\nTo illustrate, here is list of packages that returned by the command `$ conan search`\n\n```bash\n$ conan search --remote conan-center zlib/1.2.11@conan/stable\n```\n\nThe output should be:\n\n```bash\nExisting packages for recipe zlib/1.2.11@conan/stable:\n\n    Package_ID: 0000193ac313953e78a4f8e82528100030ca70ee\n        [options]\n            shared: False\n        [settings]\n            arch: x86_64\n            build_type: Debug\n            compiler: gcc\n            compiler.version: 4.9\n            os: Linux\n        Outdated from recipe: False\n\n    Package_ID: 014be746b283391f79d11e4e8af3154344b58223\n        [options]\n            shared: False\n        [settings]\n            arch: x86_64\n            build_type: Debug\n            compiler: gcc\n            compiler.exception: seh\n            compiler.threads: posix\n            compiler.version: 5\n            os: Windows\n        Outdated from recipe: False\n\n... deleted ....\n\n```\n\n[TOC](#TOC)\n\u003cname id=\"3-3\"\u003e\n\n##### 3.3) Conan server search path\n\nConan searches remote servers for a _**recipe**_ to build the dependency.  You can list them with the command:\n\n```bash\n$ conan remote list\n```\n\nYou can add servers to the conan server search path:\n\n```bash\n$ conan remote add conan-piponazo https://api.bintray.com/conan/piponazo/piponazo\n```\n\n[TOC](#TOC)\n\u003cname id=\"3-4\"\u003e\n\n##### 3.4) Configuring conan on your machine\n\nConan stores its configuration and local builds in the directory ~/.conan (%HOMEPATH%\\\\.conan on Windows).\n\nConan installs several files and two directories:\n\n```bash\n$HOME/.conan/profiles   Configuration files for compilers/platforms\n$HOME/.conan/data       Dependencies are built/stored in this directory\n```\n\n[TOC](#TOC)\n\u003cname id=\"3-5\"\u003e\n\n##### 3.5) Running `conan install` for the first time\n\nThe first time you run `$ conan install`, it will auto-detect your configuration and store a default profile in the file\n$HOME/.conan/profiles/default\n\nNormally you will want to define new profiles for choosing different compilers (msvc, gcc, clang), different\nbuild_type (Release, Debug), runtimes (MD, MT, MDd, MTd)\n\nThe expected output should be something like this, in case it's the first time you run conan:\n\n```bash\n$ conan install ..  --build missing\nExpat/2.2.5@pix4d/stable: Retrieving from predefined remote 'conan-center'\nExpat/2.2.5@pix4d/stable: Trying with 'conan-center'...\nDownloading conanmanifest.txt\n[==================================================] 220B/220B\nDownloading conanfile.py\n[==================================================] 1.7KB/1.7KB\nzlib/1.2.11@conan/stable: Retrieving from predefined remote 'conan-center'\nzlib/1.2.11@conan/stable: Trying with 'conan-center'...\nDownloading conanmanifest.txt\n[==================================================] 121B/121B\nDownloading conanfile.py\n[==================================================] 5.7KB/5.7KB\nlibcurl/7.56.1@bincrafters/stable: Retrieving from predefined remote 'bincrafters'\nlibcurl/7.56.1@bincrafters/stable: Trying with 'bincrafters'...\nDownloading conanmanifest.txt\n...\nPROJECT: Installing D:\\Dev\\Windows\\projects\\exiv2\\conanfile.py\nRequirements\n    Expat/2.2.5@pix4d/stable from 'conan-center'\n    OpenSSL/1.0.2n@conan/stable from 'conan-center'\n    gtest/1.8.0@bincrafters/stable from 'conan-center'\n    libcurl/7.56.1@bincrafters/stable from 'bincrafters'\n    zlib/1.2.11@conan/stable from 'conan-center'\nPackages\n    Expat/2.2.5@pix4d/stable:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7\n    OpenSSL/1.0.2n@conan/stable:606fdb601e335c2001bdf31d478826b644747077\n    gtest/1.8.0@bincrafters/stable:a35f8fa327837a5f1466eaf165e1b6347f6e1e51\n    libcurl/7.56.1@bincrafters/stable:e37838f02fd790447943465f1c9317fd1c59b95c\n    zlib/1.2.11@conan/stable:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7\n\nPROJECT: Retrieving package 6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7\nExpat/2.2.5@pix4d/stable: Looking for package 6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7 in remote 'conan-center'\nDownloading conanmanifest.txt\n[==================================================] 323B/323B\nDownloading conaninfo.txt\n[==================================================] 438B/438B\nDownloading conan_package.tgz\n[==================================================] 133.6KB/133.6KB\nExpat/2.2.5@pix4d/stable: Package installed 6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7\nPROJECT: Retrieving package a35f8fa327837a5f1466eaf165e1b6347f6e1e51\ngtest/1.8.0@bincrafters/stable: Looking for package a35f8fa327837a5f1466eaf165e1b6347f6e1e51 in remote 'conan-center'\nDownloading conanmanifest.txt\n[==================================================] 3.5KB/3.5KB\nDownloading conaninfo.txt\n[==================================================] 478B/478B\nDownloading conan_package.tgz\n[==================================================] 1001.1KB/1001.1KB\ngtest/1.8.0@bincrafters/stable: Package installed a35f8fa327837a5f1466eaf165e1b6347f6e1e51\nPROJECT: Retrieving package 6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7\n...\nPROJECT: Generator cmake created conanbuildinfo.cmake\nPROJECT: Generator txt created conanbuildinfo.txt\nPROJECT: Generated conaninfo.txt\nPROJECT imports(): Copied 5 '.dll' files\n(conan)\n```\n\nNote that it first downloads the recipes, and then the binary packages. When everything goes well, conan found\nthe recipes in the remotes, and it also found packages for our configuration (msvc2017, Release, MD).\n\nHowever, if you use other configuration for which there are no packages in the remotes, you will get an error such as:\n\n```bash\n    PROJECT: WARN: Can't find a 'zlib/1.2.11@conan/stable' package for the specified options and settings:\n    - Settings: arch=x86_64, build_type=Release, compiler=clang, compiler.version=3.9, os=Macos\n    - Options: shared=False\n\n    ERROR: Missing prebuilt package for 'zlib/1.2.11@conan/stable'\n    Try to build it from sources with \"--build zlib\"\n    Or read \"http://docs.conan.io/en/latest/faq/troubleshooting.html#error-missing-prebuilt-package\"\n```\n\nIn that case, we can tell conan to build the library:\n\n```bash\n$ conan install .. --profile MyEsotericProfile --build missing\n```\n\nOnce the command succeeds, we will have the libraries in our system (you can find the recipes and packages in\n`$HOME/.conan/data`). When you execute the command `conan install` with the same profile, the following output is typical:\n\n```bash\n$ conan install ..\nPROJECT: Installing D:\\Dev\\Windows\\projects\\exiv2\\conanfile.py\nRequirements\n    Expat/2.2.5@pix4d/stable from 'conan-center'\n    OpenSSL/1.0.2n@conan/stable from 'conan-center'\n    gtest/1.8.0@bincrafters/stable from 'conan-center'\n    libcurl/7.56.1@bincrafters/stable from 'bincrafters'\n    zlib/1.2.11@conan/stable from 'conan-center'\nPackages\n    Expat/2.2.5@pix4d/stable:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7\n    OpenSSL/1.0.2n@conan/stable:606fdb601e335c2001bdf31d478826b644747077\n    gtest/1.8.0@bincrafters/stable:a35f8fa327837a5f1466eaf165e1b6347f6e1e51\n    libcurl/7.56.1@bincrafters/stable:e37838f02fd790447943465f1c9317fd1c59b95c\n    zlib/1.2.11@conan/stable:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7\n\nExpat/2.2.5@pix4d/stable: Already installed!\ngtest/1.8.0@bincrafters/stable: Already installed!\nzlib/1.2.11@conan/stable: Already installed!\nOpenSSL/1.0.2n@conan/stable: Already installed!\nlibcurl/7.56.1@bincrafters/stable: Already installed!\nPROJECT: Generator cmake created conanbuildinfo.cmake\nPROJECT: Generator txt created conanbuildinfo.txt\nPROJECT: Generated conaninfo.txt\nPROJECT imports(): Copied 5 '.dll' files\n```\n\nIndicating that the packages were found in the local cache.\n\n[TOC](#TOC)\n\u003cname id=\"4\"\u003e\n\n## 4 Building Exiv2 with Adobe XMPsdk 2016\n\nWith Exiv2 v0.27, you can build Exiv2 with Adobe XMPsdk 2016 on Linux/GCC, Mac/clang and Visual Studio 2017.\nOther platforms such as Cygwin are not supported by Adobe.  Adobe/XMPsdk is built as a external library.\nApplications which wish use the Adobe XMPsdk directly should build Exiv2 in this configuration and the\nlibrary can be used by the application and Exiv2.  The Adobe XMPsdk can be built as a static or shared library (.DLL)\n\nTo build Exiv2 with Adobe XMPsdk 2016, perform steps 1.1, 1.2 and 1.3 described above, then perform the following:\n\n\u003cname id=\"4-1\"\u003e\n\n##### 4.1) Add a remote directory to conan's recipe search path\n\nBy default, conan knows about several public conan repositories. Exiv2 requires\nthe **piponazo** repository to find the XmpSdk dependency which is not available from **conan-center** repository.\n\n```bash\n$ conan remote add conan-piponazo https://api.bintray.com/conan/piponazo/piponazo\n```\n\n\u003cname id=\"4-2\"\u003e\n\n##### 4.2) Build dependencies and install conan artefacts in your build directory\n\n```bash\n$ conan install .. --options xmp=True --build missing\n```\n\n\u003cname id=\"4-3\"\u003e\n\n##### 4.3) Execute cmake to generate build files for your environment:\n\nYou must tell CMake to link Adobe's library:\n\n```bash\n$ cmake .. -DEXIV2_ENABLE_EXTERNAL_XMP=On # -G \"Visual Studio 15 2017 Win64\" -DCMAKE_BUILD_TYPE=Release\n```\n**macOS** users should use the cmake _**Xcode**_ Generator\n\n```bash\n$ cmake .. -DEXIV2_ENABLE_EXTERNAL_XMP=On -G Xcode\n```\n\n\u003cname id=\"4-4\"\u003e\n\n##### 4.4) Build Exiv2 and link Adobe XMPsdk library\n\n```bash\n$ cmake --build . --config Release\n```\n\n[TOC](#TOC)\n\u003cname id=\"5\"\u003e\n\n## 5 Webready Support\n\nExiv2 can perform I/O using internet protocols such as http, https and ftp.\n\nThe feature is disabled by default.  You will need to instruct conan to build/download necessary libraries (curl and openssl) and tell CMake to link to the libraries.\n\n```bash\n$ conan install .. --options webready=True\n$ cmake -DEXIV2_ENABLE_WEBREADY=ON -DEXIV2_ENABLE_CURL=ON ..\n```\n\n[TOC](#TOC)\n\nWritten by Robin Mills\u003cbr\u003erobin@clanmills.com\u003cbr\u003eUpdated: 2021-12-17\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexiv2%2Fexiv2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexiv2%2Fexiv2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexiv2%2Fexiv2/lists"}