cmake-conan | CMake wrapper for conan C and C++ package manager | Build Tool library
kandi X-RAY | cmake-conan Summary
kandi X-RAY | cmake-conan Summary
CMake wrapper for conan C and C++ package manager
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cmake-conan
cmake-conan Key Features
cmake-conan Examples and Code Snippets
Community Discussions
Trending Discussions on cmake-conan
QUESTION
ANSWER
Answered 2021-Jun-29 at 19:13As I wrote before I use conan
script to build opencv
:
QUESTION
I am requesting all your help and/or advise on a strange issue I am encountering trying to understand Conan.
First thing first, the error :
A well-known : /bin/ld: cannot find -lnlohmann_json_schema_validator
What I am trying to do : Trying to build the main example of the json-schema-validator, based on nlohmann_json, using cmake and conan package manager.
Links :
The CMakeLists.txt is pretty simple :
...ANSWER
Answered 2021-Apr-19 at 21:38I don't know where you found a tutorial, example or explanation, but you should read the official cmake-conan README, which contains a functional example.
Said that, your case can be fixed by the following example:
QUESTION
So I'm trying to port this project I've been working on from qmake to cmake. I also plan to get my qt dependencies through Conan and get a CI service going. Getting most of the qt libraries was fairly easy using qt/5.12.4@bincrafters/stable. Except one. For some reason, the Qt5Svg module is not included with this package and I couldn't find a good solution for this so I've hit a dead end. Bellow are the error messages and the relevant cmake files.
Error message
[CMake] CMake Error at src/analysis_tool/CMakeLists.txt:33 (find_package):
[CMake] By not providing "FindQt5Svg.cmake" in CMAKE_MODULE_PATH this project has
[CMake] asked CMake to find a package configuration file provided by "Qt5Svg", but
[CMake] CMake did not find one.
[CMake]
[CMake] Could not find a package configuration file provided by "Qt5Svg" with any
[CMake] of the following names:
[CMake]
[CMake] Qt5SvgConfig.cmake
[CMake] qt5svg-config.cmake
[CMake]
[CMake] Add the installation prefix of "Qt5Svg" to CMAKE_PREFIX_PATH or set
[CMake] "Qt5Svg_DIR" to a directory containing one of the above files. If "Qt5Svg"
[CMake] provides a separate development package or SDK, be sure it has been
[CMake] installed.
Conan.cmake (which is called from the top level CMakeLists.txt file)
...ANSWER
Answered 2020-Oct-21 at 12:12You need to provide and option to build qtsvg
with qt package. Your conan_cmake_run
should look as follow:
QUESTION
I have a problem with my CMake + conan setup which causes linker errors in Travis CI:
https://travis-ci.org/github/inexorgame/vulkan-renderer/builds/674840008
There are a lot of undefined references which means that the linker can't find the library files somehow. It can't find spdlog so the linker error is not Vulkan specific.
My conanfile.py
setup looks like this:
ANSWER
Answered 2020-Apr-14 at 20:37Observe that your linker is looking for std::__cxx11::basic_string
which belongs to libstdc++11. However, your conan profile is using libstdc++, which is incompatible, you can see it at the beginning of your log.
You need to configure your conan profile using libstdc++11 instead:
QUESTION
Since the last conan (1.23.0) I can't install some package for example I want to install mysql-connectorc
mysql-connector-c/6.1.11@bincrafters/stable
But I got this error:
...ANSWER
Answered 2020-Mar-26 at 11:21When installing a package which is already installed, but using a different case, will result on your error:
ERROR: Requested 'OpenSSL/1.0.2s@conan/stable' but found case incompatible 'openssl'
Case insensitive filesystem can not manage this. The package openssl
is already installed. To solve this problem the different package with the same name must be removed:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cmake-conan
BUILD all. Build all the dependencies for the project.
BUILD missing. Build packages from source whose binary package is not found.
BUILD outdated. Build packages from source whose binary package was not generated from the latest recipe or is not found.
BUILD cascade. Build packages from source that have at least one dependency being built from source.
BUILD [pattern]. Build packages from source whose package reference matches the pattern. The pattern uses 'fnmatch' style wildcards.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page