Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How are the builds supports to be installed? #1074

Closed
proturm opened this issue Dec 10, 2019 · 2 comments
Closed

How are the builds supports to be installed? #1074

proturm opened this issue Dec 10, 2019 · 2 comments

Comments

@proturm
Copy link

proturm commented Dec 10, 2019

Describe the bug
How are the builds supports to be installed? There is no description in the README about it.

To Reproduce
read the README / download the builds from https://www.exiv2.org/download.html

Expected behavior
Clear description of what to do with the builds

Desktop (please complete the following information):

  • Ubuntu LTS

Additional context

@proturm proturm added the bug label Dec 10, 2019
@clanmills
Copy link
Collaborator

clanmills commented Dec 10, 2019

This is documented in ReadMe.txt in the bundle. I've attached ReadMe.txt for Linux. The version of ReadMe.txt in the other bundles (macOS, Cygwin, msys2, msvc) is appropriate for the platform. There are three other readme files which deal in considerable detail with building the code, using CONAN and the sample applications. They are: README.md, README-CONAN.md and README-SAMPLES.md

Linux Exiv2 v0.27.2-RC3 Bundle
------------------------------

Structure of the bundle:
------------------------

bin/exiv2                                     exiv2 and sample applications
lib/libexiv2.so.0.27.2.3 & libexiv2-xmp.a     libraries
lib/pkgconfig/exiv2.pc                        pkg-config file
lib/cmake/exiv2                               CMake support/consume files
include/exiv2/                                include files
share/man/                                    man pages
share/locale/                                 localisation files
samples/exifprint.cpp                         sample code
logs/                                         build and test logs

ReadMe.txt                                    This file
license.txt                                   GPLv2.0 Software License
releasenotes.txt                              Late breaking news
README.md                                     Developer Manual
README-CONAN.md                               Developer Manual Appendix
README-SAMPLES.md                             Developer Sample Code Manual
exiv2.png                                     Exiv2 Logo

To run exiv2 from the bundle
----------------------------
$ cd <bundle>
$ bin/exiv2

To build samples/exiftool.cpp from the bundle
---------------------------------------------
$ g++ -std=c++98 samples/exifprint.cpp -L$PWD/lib -I$PWD/include -lexiv2 -o exifprint
$ env LD_LIBRARY_PATH="$PWD/lib:$LD_LIBRARY_PATH" ./exifprint

To install for use by all users
-------------------------------
$ for i in bin include lib share ; do sudo mkdir -p /usr/local/$i ; sudo cp -R $i/* /usr/local/$i ; done

To compile and link your own code using installed library and include files
---------------------------------------------------------------------------
Method 1: Explicitly set include and linking options
$ cd <bundle>
$ g++ -std=c++98 samples/exifprint.cpp -I/usr/local/include -L/usr/local/lib -lexiv2 -o exifprint
$ export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
$ ./exifprint --version

Method 2: Use pkg-config to set include and linking options
$ cd <bundle>
$ export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
$ export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
$ g++ -std=c++98 samples/exifprint.cpp -o exifprint $(pkg-config exiv2 --libs --cflags)
$ ./exifprint --version

Method 3: Use the CMake support/consume files
See file: README.md Section: 2.6 "Consuming Exiv2 with CMake"

@proturm
Copy link
Author

proturm commented Dec 10, 2019

Thanks, indeed I got confused which readme is the root one ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants