我只是想知道如何正确地在vcpkg中使用类库?即
find_package(gtest REQUIRED)将失败但
find_package(GTest REQUIRED)将通过
我的意思是,如果我列出已安装的软件包,我会以小写字母获得它们,即
CMake suite maintained and supported by Kitware (kitware.com/cmake).
~/Proj$ cd vcpkg
~/Proj/vcpkg$ ./vcpkg list
fftw3:x64-linux 3.3.10#3
我已经成功地在linux中安装了yaml-cpp,然后我想用yaml-cpp在windows中安装yaml-cpp。但是当我构建或安装它时,会发生一些错误。例如:
In file included from D:/github/yaml-cpp/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-linked_ptr.h:74:0,
from D:/github/yaml-cpp/test/gtest-1.8.0/googlemock/include/gmock/internal/gmock-po
我从centos7中获得了完全相同的结果,clang-3.6.1是使用fedora文件从源代码构建的。Ubuntu 14.04,clang-3.4
尽可能地使用来自wiki的说明,。这一页是6个月前更新的。
谷歌613仍在使用tr1
In file included from /home/hal/googletest/src/gtest-all.cc:39:
In file included from /home/hal/googletest/include/gtest/gtest.h:58:
In file included from /home/hal/googletest/include
我正在尝试按照service_framework repo 中指定的构建步骤来构建AllJoyn照明服务框架15.04
我试图在Ubuntu16.04上构建这个service_framework,但我得到了以下构建错误。不知道为什么构建会失败,我认为所有文件都在scons查找它们的正确位置。请建议解决此构建错误的想法。提前谢谢你。
scons: Reading SConscript files ...
Checking c++ compiler support for -std=c++11 flag... yes
Using OpenSSL crypto
GTEST_DIR not speci
我试图遵循本教程运行谷歌测试文件,但我有一些麻烦的CMakeLists.txt。
CMakeLists.txt:
cmake_minimum_required(VERSION 2.6)
# Locate GTest
find_package(GTest REQUIRED)
include_directories(${GTEST_INCLUDE_DIRS})
# Link runTests with what we want to test and the GTest and pthread library
add_executable(runTests tests.cpp)
target
我正在尝试使用Qt Creator和MinGW 64位工具包在Windows10中构建yaml-cpp。我使用的是yaml-cpp-master存储库,如果有人想知道的话。
当我尝试在Qt Creator中构建它时,我得到了这个错误:
C:\Program Files\CMake\share\cmake-3.16\Modules\CMakeMinGWFindMake.cmake:12: error: sh.exe was found in your PATH, here: C:/devkitPro/msys/bin/sh.exe For MinGW make to work correctly
因此,我尝试使用googletest库( )。首先,我用cmake编译了它:
marton@linux-clwa:~/documents/github/googletest/googletest/cmake> cmake ..
-- The CXX compiler identification is GNU 4.8.5
-- The C compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/
我试图解决这个错误,但找不到任何解决方案,我甚至试着安装glog和g阻击,仍然没有任何进展。
CMake警告CMakeLists.txt:72 (find_package):
By not providing "Findglog.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"glog", but CMake did not find one.
Could not find a package co
我试图在我的应用程序上做一些Google测试,我遇到了一些OpenCV和GTest之间的冲突
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/libgtest.a(gtest-all.cc.o): In function `testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity, char const*, int)':
gtest-all.cc:(.text+0xdd84): multiple definition of `testing::int
我正在尝试使用gmock/gtest;Linux/Ubuntu;KDe信封/CMake为我的程序做一个测试平台。从链接错误消息中,我得出结论,gtest包的一部分缺少了p线程支持。
/home/projects/cpp/gmock/gtest/libgtest.a(gtest-all.cc.o): In function `testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::~ThreadLocal()':
gtest-all.cc:(.text._ZN7testing8int