There is no "make install" target in the Makefile generated by CMake

Bug #969556 reported by linuxar
34
This bug affects 8 people
Affects Status Importance Assigned to Milestone
gtest (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

 I understand that the "libgtest0" package (http://packages.ubuntu.com/natty/libgtest0), mainly containing the ligtest.a and libgtest_main.a files, is no longer available in Ubuntu 12.04, as you mentioned in the changelog (http://changelogs.ubuntu.com/changelogs/pool/universe/g/gtest/gtest_1.6.0-1ubuntu4/changelog namely at 1.6.0-1ubuntu2) of the "libgtest-dev" package (http://packages.ubuntu.com/precise/libgtest-dev).

 I also understand that those librarues, namely libgtest and libgtest_main should be now built from the source, by the user. You install the sources in /usr/src/gtest/src and you also provide a CMakeLists.txt file into /usr/src/gtest

 However, please take into account the following:

 1. there is no specific guide about how to build the sources (cd /usr/src/gtest/src && cmake .. && make & cp libgtest*.* /usr/lib/)
 2. the above commands require admin rights (aka sudo), because the /usr/src is not writeable and the compiler cannot write its outputs therein
 3. there is no "make install" target in the (CMake-)generated Makefile, thus the need for the above manuale file copying
 4. the above commands are tedious to enter manually, after installing the package, so I suggest a script to be run during the installation and building and installing those libraries (if you insinst in not providing the libgtest0 package no more)
 5. making cmake package a dependency for the libgtest-dev/gtest package is overkill and, also, could disturb the average user

Thank you.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libgtest-dev 1.6.0-1ubuntu4
ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
Uname: Linux 3.2.0-21-generic x86_64
ApportVersion: 2.0-0ubuntu1
Architecture: amd64
Date: Fri Mar 30 21:46:00 2012
Dependencies:

InstallationMedia: Xubuntu 12.04 "Precise Pangolin" - Alpha amd64 (20111208)
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gtest
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gtest (Ubuntu):
status: New → Confirmed
Revision history for this message
Jonas Grote (jfgrote+launchpad) wrote :

Thanks for pointing out the workaround to this bug. I was quite surprised libgtest0 was removed without making sure that it will be created.

Revision history for this message
linuxar (linuxar) wrote :

Better one-liner:

pushd . && cd /usr/src/gtest/src && sudo cmake .. && sudo make && sudo cp libgtest*.* /usr/lib/ && popd

Revision history for this message
Kai Mast (kai-mast) wrote :

Still present in wily!

This seems like such an easy thing to fix...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.