AD Teaching Wiki
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

FrontPage

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 1 as of 2018-04-12 09:36:20
AD Teaching Wiki:
  • Manuals
  • Gtest

Installing the Google C++ Testing Framework (gtest)

Step 1: Change into the temporary directory, for example:

cd /tmp

Step 2: Download the latest (major) version from https://github.com/google/googletest/releases, for example:

wget https://github.com/google/googletest/archive/release-1.8.0.zip

Step 2: Unpack the archive, change to the corresponding directory and build the code from its source (this requires cmake):

unzip release-1.8.0.zip
cd googletest-release-1.8.0/googletest
mkdir bld
cd bld
cmake ..
make

Step 3: Install the files, that is, copy them to the proper systems directories (you need to be root or have sudo rights for that):

cp -a -r ../include/gtest /usr/local/include/.
cp -a *.a /usr/local/lib

(optional) Step 4: If the library is (still) not found by the compiler, you can run (as root or with sudo):

ldconfig

(optional) Step 5: Clean up:

cd /tmp
rm -rf release-1.8.0.zip googletest-release-1.8.0
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01