![]() Īfter all, a short sequence of statements should be enough to successfully (and platform-independently) include boost into a CMake project: find_package(Boost 1.57. Instead, you need to refer directly to the header files that you actually want to include, so you should rather write e.g. Usage In the same directory that called findpackage (protobuf CONFIG) and any of its subdirectories, the CMake function protobufgenerate is made available by protobuf-generate.cmake. The reason why it wasn't working for me that I wrote #include within my test.cpp-file, which apparently is just wrong. First, please open cmake/deps.txt to check which protobuf version ONNX Runtime’s offical packages use. This document explains how to use the function protobufgenerate which is provided by protobuf's CMake module. It was a rather stupid mistake and all the hints in answer were really helpful. Is there a way to fix this? Is this something that can cause errors?Īfter spending the whole afternoon on the issue, I solved it myself. Source Code GitHub Repository Protocol Buffers source code is hosted on GitHub. Old Versions Older versions are available in our historical releases on GitHub. Release Packages Latest Version The latest release of Protocol Buffers can be found on the release page. home/username/Documents/project/test/src/shared/bysp/CMakeLists.txt:9 (find_package) Downloads The downloads page for protocol buffers. Found Protobuf: /home/username/Documents/project/test/build/venv/.conan/data/Protobuf/3.6.1/project/dev/package/80043e232e8ab07f4b25e67652a9490d9ad33d91/lib/libprotobuf.so -lpthread (found version "3.6.1")ĬMake Warning at /home/username/Documents/project/test/build/venv/lib/python3.6/site-packages/cmake/data/share/cmake-3.10/Modules/FindProtobuf.cmake:455 (message): home/username/Documents/project/test/script/cmake/Env.cmake:139 (include) Protobuf compiler version doesn't match library version 3.6.1 To compile or install protobuf from source using CMake, see cmake/README.md. The problem is that I get the following error when running CMake: CMake Warning at /home/username/Documents/project/test/build/venv/lib/python3.6/site-packages/cmake/data/share/cmake-3.10/Modules/FindProtobuf.cmake:455 (message): So, I want to use the Protobuf downloaded by Conan and not the one already installed by Linux. One of those libraries is Protobuf and gets downloaded via Conan IO. Using protobuf with conan and CMake In my last post, I showed how I got my feet wet while migrating the dependencies of my existing code-base to conan. ![]() I am using CMake as a build tool and have pre-packaged binaries for all libraries I use in my project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |