Skip to content

Investigation into building unit_tests without conan #575

@clanmills

Description

@clanmills

I'm putting these notes for my benefit and this issue will be closed in a couple days.

I'm very pleased that we can build and run the unit_tests on msvc builds thanks to conan. And they build OK on MacOS-X without using conan. I've been unable to build Exiv2 with conan on Cygwin and/or MinGW and I've said in the docs that we don't support this.

Thanks to Dan's wonderful script ci/install_dependencies.sh, setting up on Linux is easy and is documented in README.md.

  1. Building and installing shared gtest libraries from https://github.com/google/googletest/archive/release-1.8.0.tar.gz
$ mkdir -p ~/gnu/gtest
$ cp release-1.8.0.tar.gz ~/gnu/gtest
$ cd ~/gnu/gtest
$ tar xzf release-1.8.0.tar.gz
$ cd googletest-release-1.8.0
$ mkdir build
$ cd build
$ cmake .. -DBUILD_SHARED_LIBS=1
$ make
$ sudo make install
  1. Building exiv2 with unit_tests
$ mkdir -p <exiv2dir>/build
$ cd <exiv2dir>/build
$ cmake .. -DEXIV2_BUILD_UNIT_TESTS=1
$ make
$ bin/unit_tests.exe

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions