conan

Qt + conan = using null output device, none available

僤鯓⒐⒋嵵緔 提交于 2020-01-04 06:09:50
问题 I write my pet project. At first, it was based on cmake and I set the path to qt libs from the console, e.g. cmake -DPATH_TO_QT:STRING=/home/user/Qt/5.11.1/gcc_64/ The variable PATH_TO_QT was declared as set(PATH_TO_QT "/path/to/your/Qt/" CACHE STRING "Path to Qt") With this configuration, my project worked very well. However, I wanted to add in my project Conan Package Manager and I did it. My conanfile.txt: [requires] Qt/5.11.1@bincrafters/stable gtest/1.8.1@bincrafters/stable libgit2/0.27

why android ndk standalone toolchain do not support arm64 with api 19 but android ndk cmake does

╄→гoц情女王★ 提交于 2019-12-23 19:21:09
问题 I used to build arm64-v8a lib of api level 19 use android.toolchain.cmake comes with Android NDK r16b like this. ${CMAKE} \ -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \ -DANDROID_NDK=$ANDROID_NDK_HOME \ -DANDROID_ABI="arm64-v8a" \ -DANDROID_NATIVE_API_LEVEL="android-19" \ -DANDROID_STL="c++_shared" \ -DANDROID_CPP_FEATURES="rtti exceptions" \ .. Now i want to pack my lib use conan which cross compile android lib use standalone toolchain. Its seems to be impossible to make standalone toolchain

gtest installed with conan: undefined reference to `testing::internal::GetBoolAssertionFailureMessage`

一笑奈何 提交于 2019-12-01 09:36:00
I use cmake to build my project and conan to install Google Test as dependency: conanfile.txt [requires] gtest/1.7.0@lasote/stable [generators] cmake [imports] bin, *.dll -> ./build/bin lib, *.dylib* -> ./build/bin CMakeLists.txt PROJECT(MyTestingExample) CMAKE_MINIMUM_REQUIRED(VERSION 2.8) INCLUDE(conanbuildinfo.cmake) CONAN_BASIC_SETUP() ADD_EXECUTABLE(my_test test/my_test.cpp) TARGET_LINK_LIBRARIES(my_test ${CONAN_LIBS}) test/my_test.cpp #include <gtest/gtest.h> #include <string> TEST(MyTest, foobar) { std::string foo("foobar"); std::string bar("foobar"); ASSERT_STREQ(foo.c_str(), bar.c_str

gtest installed with conan: undefined reference to `testing::internal::GetBoolAssertionFailureMessage`

大兔子大兔子 提交于 2019-12-01 08:40:47
问题 I use cmake to build my project and conan to install Google Test as dependency: conanfile.txt [requires] gtest/1.7.0@lasote/stable [generators] cmake [imports] bin, *.dll -> ./build/bin lib, *.dylib* -> ./build/bin CMakeLists.txt PROJECT(MyTestingExample) CMAKE_MINIMUM_REQUIRED(VERSION 2.8) INCLUDE(conanbuildinfo.cmake) CONAN_BASIC_SETUP() ADD_EXECUTABLE(my_test test/my_test.cpp) TARGET_LINK_LIBRARIES(my_test ${CONAN_LIBS}) test/my_test.cpp #include <gtest/gtest.h> #include <string> TEST

GTest installed with Conan: undefined reference

≯℡__Kan透↙ 提交于 2019-11-30 22:13:52
I tried to use gtest installed through conan, but ended up with an undefined reference linker error. This question is a more or less a follow up to this stackoverflow question . But I think the provided example was to simple. I compile under up to date arch linux x64, using gcc 6.3. Could there be some missmatch of C++ versions? Or do you have any other idea of how to fix the Problem? I will provide my source code in the following: Directory tree: tree . ├── CMakeLists.txt ├── conanfile.txt └── main.cpp main.cpp: #include <iostream> #include <gtest/gtest.h> class TestFixture : public ::testing

GTest installed with Conan: undefined reference

偶尔善良 提交于 2019-11-30 18:16:33
问题 I tried to use gtest installed through conan, but ended up with an undefined reference linker error. This question is a more or less a follow up to this stackoverflow question. But I think the provided example was to simple. I compile under up to date arch linux x64, using gcc 6.3. Could there be some missmatch of C++ versions? Or do you have any other idea of how to fix the Problem? I will provide my source code in the following: Directory tree: tree . ├── CMakeLists.txt ├── conanfile.txt └─