iopaz.blogg.se

Cmakelists.txt not found clion
Cmakelists.txt not found clion













cmakelists.txt not found clion

"-Dpybind11_DIR=/home/james/anaconda3/envs/mycondaenv/share/cmake/pybind11" I can still compile correctly in the command line in my virtual environment withĬ++ -O3 -Wall -shared -std=c++11 -fPIC `python3 -m pybind11 -includes` Vehicle_pb.cpp util.cpp -o Vehicle`python3-config -extension-suffix`Īpologies if the solution is trivial, thank you in advance for the help.ĬLion->settings->Build, Ex.->CMake->CMake options: add (without quotes) cpp file now fails to compile withįatal error: pybind11/pybind11.h: No such file or directory #include Could not find a package configuration file provided by "pybind11"., but the line Now the cmake project loads correctly (in my CLion IDE), no longer giving the error. Pybind11_add_module(Vehicle Vehicle_pb.cpp)Īdd_executable(pybind_learning_try2 main.cpp example.cpp example_pb.cpp Vehicle.cpp Vehicle.h Vehicle_pb.cpp util.cpp util.h Truck.cpp Truck.h)

cmakelists.txt not found clion

Cmakelists.txt not found clion install#

(I do know that the latest conda install pybind11 -c conda-forge does.) If, after your pip install, you confirm that /share/cmake/pybind11/pybind11Config.cmake exists (in which case ignore my first two sentences), you can instruct cmake to find it via cmake -Dpybind11_DIR=/share/cmake/pybind11. I'm not wholly sure that a pip install pybind installs pybind11Config.cmake and other needed files. Is there a way to properly install without conda? This file does exist in pybind11/tools which makes me think that I'm not linking appropriately. I tried to clone and make - I don't see any folder named share? I do see pybind11Config.cmake in pybind11/build but when I link to it ( export pybind11_DIR to the build folder) I get a different error when making the program i"m actually interested in ( caffe2 ).ĬMake Error at /root/pybind11/build/pybind11Config.cmake:100 (include): Is there a way to reinit a project I mean keep the CMakeLists.txt and renew CMakeListsPrivate.txt and all the other pio-stuff like. For example pio init -ide clion -board lolin32 It always destroys my CMakeLists.txt.

cmakelists.txt not found clion

I am working on arm and it's a bitch to install new versions of conda here. From time to time I have to reinit my PIO/CLion project.















Cmakelists.txt not found clion