<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Andreas,<div><br></div><div>I also had to compile the source that is part of the gtest package:</div><div><span style="color: rgb(34, 34, 34); font-family: 'Ubuntu Mono', 'Ubuntu Beta Mono A', Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(238, 238, 238);">sudo apt-get install libgtest-dev</span></div><div><span style="color: rgb(34, 34, 34); font-family: 'Ubuntu Mono', 'Ubuntu Beta Mono A', Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(238, 238, 238);">cd /usr/src/gtest && sudo cmake . && sudo make && sudo mv libg* /usr/lib/ && cd -</span><br><div><div><br></div><div>I'm not sure of the best way to include gtest, but I found the above. How do others use the gtest install from debian?</div><div><br></div><div>Thanks,</div><div>Tony</div><div><br></div><div>On 2014-09-16, at 3:25 PM, Andreas Tille wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Anthony,<br><br>On Tue, Sep 16, 2014 at 02:13:33PM -0700, Anthony Raymond wrote:<br><blockquote type="cite">Hi Andreas, Steve,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I had to follow the instructions on this post to build libgtest.a and libgtest_main.a:<br></blockquote><blockquote type="cite"><a href="http://askubuntu.com/questions/145887/why-no-library-files-installed-for-google-test">http://askubuntu.com/questions/145887/why-no-library-files-installed-for-google-test</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Then I also had to add a check for libgtest in order to include -lgtest when compiling the tests (see attached patch). I haven't had to do this when I compile the gtest library myself, but it's not a big deal to add.<br></blockquote><br>Thanks for the patch. I applied the patch to the packaging but with no<br>effect (=got the same error as below). :-(<br><br>Kind regards<br><br> Andreas.<br><br><blockquote type="cite">...<br></blockquote><blockquote type="cite">I commited the packaging for abyss 1.5.2 into our packaging git[1].<br></blockquote><blockquote type="cite">Unfortunately it fails to run the unit tests since the build ended with<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">...<br></blockquote><blockquote type="cite">make[2]: Entering directory '/tmp/buildd/abyss-1.5.2/GapFiller'<br></blockquote><blockquote type="cite">make[2]: Nothing to be done for 'check'.<br></blockquote><blockquote type="cite">make[2]: Leaving directory '/tmp/buildd/abyss-1.5.2/GapFiller'<br></blockquote><blockquote type="cite">make[2]: Entering directory '/tmp/buildd/abyss-1.5.2'<br></blockquote><blockquote type="cite">make[2]: Nothing to be done for 'check-am'.<br></blockquote><blockquote type="cite">make[2]: Leaving directory '/tmp/buildd/abyss-1.5.2'<br></blockquote><blockquote type="cite">error: To use 'make check' command, please setup<br></blockquote><blockquote type="cite"> gtest header&library as shown on the Wiki<br></blockquote><blockquote type="cite">Makefile:860: recipe for target 'check' failed<br></blockquote><blockquote type="cite">make[1]: *** [check] Error 1<br></blockquote><blockquote type="cite">make[1]: Leaving directory '/tmp/buildd/abyss-1.5.2'<br></blockquote><blockquote type="cite">dh_auto_test: make -j1 check returned exit code 2<br></blockquote><blockquote type="cite">debian/rules:6: recipe for target 'build' failed<br></blockquote><blockquote type="cite">make: *** [build] Error 2<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">While I dadded libgtest-dev to the Build-Depends and the build log says:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">...<br></blockquote><blockquote type="cite">checking for boost/unordered_set.hpp... yes<br></blockquote><blockquote type="cite">checking gtest/gtest.h usability... yes<br></blockquote><blockquote type="cite">checking gtest/gtest.h presence... yes<br></blockquote><blockquote type="cite">checking for gtest/gtest.h... yes<br></blockquote><blockquote type="cite">checking for pthread_create in -lpthread... yes<br></blockquote><blockquote type="cite">checking for main in -lgtest_main... no<br></blockquote><blockquote type="cite">checking for g++ option to support OpenMP... -fopenmp<br></blockquote><blockquote type="cite">checking that generated files are newer than configure... done<br></blockquote><blockquote type="cite">...<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I think the gtest headers are reasonably installed but I wonder what<br></blockquote><blockquote type="cite">"-lgtest_main... no" might mean, whether this is connected to the<br></blockquote><blockquote type="cite">problem and how to fix this (Steve as maintainer of libgtest-dev in<br></blockquote><blockquote type="cite">CC).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">While I could cowardly skip the unit tests I would really prefer to<br></blockquote><blockquote type="cite">run them.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">BTW, since you asked what you can do to get abyss packaged for Debian:<br></blockquote><blockquote type="cite">while the package is technically packaged it does not belong to the<br></blockquote><blockquote type="cite">Debian distribution since it is regarded as non-free due to its<br></blockquote><blockquote type="cite">licensing restriction to non-commercial use. I wonder whether you might<br></blockquote><blockquote type="cite">consider with the people in charge to use a non-restricted license.<br></blockquote><blockquote type="cite">This would be really appreciated and if you want me to be more verbose<br></blockquote><blockquote type="cite">about the advantages I could go more into details.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Kind regards<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Andreas.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">[1] <a href="git://anonscm.debian.org/debian-med/abyss.git">git://anonscm.debian.org/debian-med/abyss.git</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite"><a href="http://fam-tille.de">http://fam-tille.de</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br><br>-- <br><a href="http://fam-tille.de">http://fam-tille.de</a><br></div></blockquote></div><br></div></body></html>