[Aptitude-devel] Bug#852666: "Can't figure out where Google Mock lives" although it is installed
jean-christophe manciot
actionmystique at gmail.com
Thu Jan 26 08:58:28 UTC 2017
Package: aptitude
Version: 0.8.5
distribution: Ubuntu 16.10 yakkety
sources: https://anonscm.debian.org/cgit/aptitude/aptitude.git
tag: 0.8.5
branch: master
echo ---------------------------
echo Checking Build Dependencies
echo ---------------------------
apt-get update
apt-get build-dep aptitude
echo --------
echo Cleaning
echo --------
cd git-aptitude
git-reset-clean-pull-checkout.sh $branch $tag
echo -----------
echo Configuring
echo -----------
export GTHREAD_LIBS='-L/usr/lib/x86_64-linux-gnu'
export VTE_LIBS='-L/usr/lib/x86_64-linux-gnu'
export CXXFLAGS="-std=c++14"
export NOCONFIGURE=yes
./autogen.sh
######################################
# GTK & QT frontends are unmaintained:
# --enable-gtk \
# --enable-qt \
# The following is also buggy
# --enable-resolver-sanity-checks \
######################################
./configure --enable-reload-cache \
--prefix=/usr --sysconfdir=/etc
--localstatedir=/var
leads to:
checking how to link gmock... configure: error: Can't figure out where
Google Mock lives; either install the google-mock package or place the
library in the link path
However:
=======
1) *It is already installed*:
# apt-cache policy google-mock
google-mock:
Installed: 1.7.0-18092013-2.1
2) *There is no library in the package; intalled files:*
/.
/usr
/usr/bin
/usr/bin/gmock_gen
/usr/include
/usr/include/gmock
/usr/include/gmock/gmock-actions.h
/usr/include/gmock/gmock-cardinalities.h
/usr/include/gmock/gmock-generated-actions.h
/usr/include/gmock/gmock-generated-actions.h.pump
/usr/include/gmock/gmock-generated-function-mockers.h
/usr/include/gmock/gmock-generated-function-mockers.h.pump
/usr/include/gmock/gmock-generated-matchers.h
/usr/include/gmock/gmock-generated-matchers.h.pump
/usr/include/gmock/gmock-generated-nice-strict.h
/usr/include/gmock/gmock-generated-nice-strict.h.pump
/usr/include/gmock/gmock-matchers.h
/usr/include/gmock/gmock-more-actions.h
/usr/include/gmock/gmock-more-matchers.h
/usr/include/gmock/gmock-spec-builders.h
/usr/include/gmock/gmock.h
/usr/include/gmock/internal
/usr/include/gmock/internal/gmock-generated-internal-utils.h
/usr/include/gmock/internal/gmock-generated-internal-utils.h.pump
/usr/include/gmock/internal/gmock-internal-utils.h
/usr/include/gmock/internal/gmock-port.h
/usr/share
/usr/share/doc
/usr/share/doc/google-mock
/usr/share/doc/google-mock/CONTRIBUTORS
/usr/share/doc/google-mock/README.Debian
/usr/share/doc/google-mock/README.gz
/usr/share/doc/google-mock/changelog.Debian.gz
/usr/share/doc/google-mock/copyright
/usr/share/gmock
/usr/share/gmock/cpp
/usr/share/gmock/cpp/__init__.py
/usr/share/gmock/cpp/ast.py
/usr/share/gmock/cpp/gmock_class.py
/usr/share/gmock/cpp/keywords.py
/usr/share/gmock/cpp/tokenize.py
/usr/share/gmock/cpp/utils.py
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/gmock_gen.1.gz
/usr/src
/usr/src/gmock
/usr/src/gmock/CMakeLists.txt
/usr/src/gmock/src
/usr/src/gmock/src/gmock-all.cc
/usr/src/gmock/src/gmock-cardinalities.cc
/usr/src/gmock/src/gmock-internal-utils.cc
/usr/src/gmock/src/gmock-matchers.cc
/usr/src/gmock/src/gmock-spec-builders.cc
/usr/src/gmock/src/gmock.cc
/usr/src/gmock/src/gmock_main.cc
3) *trying Include path:*
./configure --enable-reload-cache \
--with-google-mock=/usr/include/gmock \
--prefix=/usr --sysconfdir=/etc --localstatedir=/var
leads to the same error because the option is not recognized:
configure: WARNING: unrecognized options: --with-google-mock
4) *trying additional compiler flag:*
../configure CXXFLAGS="-I/usr/include/gmock" \
--enable-reload-cache \
--prefix=/usr --sysconfdir=/etc --localstatedir=/var
leads to the same error.
Same with CPPFLAGS.
What could be done to work around this issue?
Regards.
--
Jean-Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20170126/0629a81d/attachment.html>
More information about the Aptitude-devel
mailing list