Reverted out debian instructions, as 4213 fixed the issue on clean debian installs and neal's experience was from Nov. 1 - kept in the gtest break instructions, though. sync
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Mon, 25 Nov 2019 11:20:03 +0100
branchsync
changeset 42223247a7e15516
parent 4221 9016d0c7b5c6
child 4223 ae65683993a7
child 4225 4aee2e82153d
Reverted out debian instructions, as 4213 fixed the issue on clean debian installs and neal's experience was from Nov. 1 - kept in the gtest break instructions, though.
test/README.md
     1.1 --- a/test/README.md	Mon Nov 25 11:04:53 2019 +0100
     1.2 +++ b/test/README.md	Mon Nov 25 11:20:03 2019 +0100
     1.3 @@ -41,29 +41,27 @@
     1.4  
     1.5  ##### Debian and Ubuntu (and derivatives)
     1.6  
     1.7 -Using the libgtest-dev is easy, but not straightforward.
     1.8 -Unfortunately, the version of google test in Debian Buster is too old:
     1.9 -it's version 1.8 and we require version 1.9.  Version 1.9 is available
    1.10 -in Debian Testing, but it is built with g++ 9.0, which is ABI
    1.11 -incompatible with binaries built with g++ 8.0, which is in Debian
    1.12 -stable.  Specifically, gcc has changed the semantics of std::string
    1.13 -with C++11 and using g++ 8.0 results in the errors like the following:
    1.14 +Thanks to Erik Smistad for this starting point (condensed from [Getting Started
    1.15 +with Google Test On
    1.16 +Ubuntu](https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/)):
    1.17  
    1.18 -    undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream()'
    1.19 +  1. Install the packages `cmake` and `libgtest-dev` from the repository. This
    1.20 +  will install the gtest source files to `/usr/src/gtest`. You'll still need to
    1.21 +  compile the code and link the library files to be able to use them.
    1.22  
    1.23 -It's possible to install g++ 9.0 from testing to get the test suite
    1.24 -working, but that breaks other things (at least for me -Neal).
    1.25 -Instead, the easiest thing to do it to rebuild gtest for Debian
    1.26 -Stable.  This is straightforward:
    1.27 +  2. Compile the source files:
    1.28 +  ```
    1.29 +  cd /usr/src/gtest
    1.30 +  sudo cmake CMakeLists.txt
    1.31 +  sudo make
    1.32 +  ```
    1.33  
    1.34 -  $ sudo apt install build-essential cmake debhelper
    1.35 -  $ apt source -t testing libgtest-dev
    1.36 -  $ cd googletest-1.9.0.20190831
    1.37 -  $ dpkg-buildpackage -us -uc
    1.38 -  ...
    1.39 -  $ sudo dpkg -i googletest_1.9.0.20190831-1_amd64.deb libgtest-dev_1.9.0.20190831-1_amd64.deb
    1.40 -
    1.41 -That's it.
    1.42 +  3. Copy/symlink the libraries to the library location of your choice (here,
    1.43 +  it's `/usr/lib`, hence the `sudo`, but as long as it's in your library path,
    1.44 +  it shouldn't matter where you stick it):
    1.45 +  ```
    1.46 +  sudo cp *.a /usr/lib
    1.47 +  ```
    1.48  
    1.49  ##### MacOS
    1.50