Building on Fedora using Cmake » History » Version 9
Nehal J Wani, 26 Aug 2014 13:33
| 1 | 8 | Nehal J Wani | h1. Building exiv2 on Fedora using Cmake |
|---|---|---|---|
| 2 | 1 | Nehal J Wani | |
| 3 | 5 | Nehal J Wani | * This has been tested on Fedora20 64 and 32 bit minimal installations. |
| 4 | 1 | Nehal J Wani | * Last revision on which this method was tested: r3288 |
| 5 | 2 | Nehal J Wani | * This wiki page assumes that installation prefix is _/usr/local_ and your bulidir is _~/gnu/exiv2_ |
| 6 | 1 | Nehal J Wani | |
| 7 | # Install some of the basic utilities |
||
| 8 | <pre> |
||
| 9 | 9 | Nehal J Wani | sudo yum install -y subversion make cmake autoconf gcc-c++ yum-utils pkgconfig dos2unix clang #clang is required only if you wish to use it as the compiler instead of gcc |
| 10 | 1 | Nehal J Wani | </pre> |
| 11 | # Install all the dependencies for building exiv2. (Since exiv2 is already available in the Fedora repositories, this python script makes things easy and is provided by the package _yum-utils_) |
||
| 12 | <pre> |
||
| 13 | sudo yum-builddep -y exiv2 |
||
| 14 | </pre> |
||
| 15 | # Fetch the source code: |
||
| 16 | <pre> |
||
| 17 | mkdir -p ~/gnu/exiv2 |
||
| 18 | cd ~/gnu/exiv2 |
||
| 19 | svn checkout svn://dev.exiv2.org/svn/trunk |
||
| 20 | cd trunk |
||
| 21 | </pre> |
||
| 22 | # Start building exiv2 |
||
| 23 | <pre> |
||
| 24 | mkdir build |
||
| 25 | 2 | Nehal J Wani | cd build |
| 26 | 6 | Nehal J Wani | cmake .. #if you are using clang, then do: CC=clang CXX=clang++ cmake .. |
| 27 | 2 | Nehal J Wani | make |
| 28 | sudo make install |
||
| 29 | 1 | Nehal J Wani | </pre> |
| 30 | # Building tests. |
||
| 31 | ** Optional: Since exifprobe is not available in standard fedora repositories, some tests will get skipped. If you don't want that: |
||
| 32 | <pre> |
||
| 33 | cd ~/gnu |
||
| 34 | sudo yum install -y git |
||
| 35 | git clone https://github.com/hfiguiere/exifprobe.git |
||
| 36 | cd exifprobe |
||
| 37 | make |
||
| 38 | sudo mkdir -p /usr/local/man/man1 |
||
| 39 | sudo make install |
||
| 40 | </pre> |
||
| 41 | ** Finally: |
||
| 42 | <pre> |
||
| 43 | cd ~/gnu/exiv2/trunk/build |
||
| 44 | 4 | Nehal J Wani | make tests |
| 45 | 1 | Nehal J Wani | </pre> |
| 46 | 9 | Nehal J Wani | ** Running other "test suites":http://dev.exiv2.org/projects/exiv2/wiki/How_do_I_run_the_test_suite_for_Exiv2 |