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

Investigation into building unit_tests without conan #575

Closed
clanmills opened this issue Nov 30, 2018 · 3 comments
Closed

Investigation into building unit_tests without conan #575

clanmills opened this issue Nov 30, 2018 · 3 comments
Assignees
Milestone

Comments

@clanmills
Copy link
Collaborator

clanmills commented Nov 30, 2018

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
@D4N
Copy link
Member

D4N commented Dec 1, 2018 via email

@clanmills
Copy link
Collaborator Author

Thanks Dan. At the moment, I'm trying to get it to work on MinGW and CYGWIN. I'm confident that I'll get it working. It worked effortlessly on the Mac and MSVC (using conan).

I didn't get to RC3 yesterday. However I'm really close.

Good Luck with the new job. Luis starts his new job on Monday. Excited for both of you.

1 similar comment
@clanmills
Copy link
Collaborator Author

Thanks Dan. At the moment, I'm trying to get it to work on MinGW and CYGWIN. I'm confident that I'll get it working. It worked effortlessly on the Mac and MSVC (using conan).

I didn't get to RC3 yesterday. However I'm really close.

Good Luck with the new job. Luis starts his new job on Monday. Excited for both of you.

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

No branches or pull requests

2 participants