Work well also on windows: 1. Create CMakeLists.txt 2. mkdir build 3. cd build 4. cmake .. 5. cmake --build . --config Release 6. cd Release 7. ls If you are using vs code and cannot run python for command line, you can try this: import sys folder = "C:/IBOIS57/_Code/Software/Python/cpp/build/Release/" if folder not in sys.path: sys.path.append(folder) import kf_cpp addition = kf_cpp.add(1, 2) print(addition)
@niflag10 ай бұрын
Why do you have to specify Release? Does it work the same with Debug? GDAL python bindings are broken now.
@vahidnateghi98623 жыл бұрын
Thanks a lot you sir! I have tried so many Cpp extension methods but just this one worked for me.
@SuperLastkick4 жыл бұрын
thank you for your work, i will continue to follow you!
@cppmonk37314 жыл бұрын
Thanks, I'm glad to hear that! If you have a suggestion for topics I could cover in future videos don't hesitate to let me know.
@SuperLastkick4 жыл бұрын
CppMonk with pleasure can I have your mail I would like to talk about some issue I have met in c++. Sorry for my English I am french and you know french and English..
@adrian-w3h2c4 жыл бұрын
Thank you, this was very helpful!
@harunsalman11994 жыл бұрын
This is really an excellent tutorial. But I couldnt follow on the further sections due to below issues: When I try editing the CMakeLists.txt I dont get the functions highlighted. Also when I created the wrappers.cpp I get: #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/home/user/kalman/cpp/wrappers.cpp).C/C++(1696) cannot open source file "Python.h" (dependency of "pybind11/pybind11.h")C/C++(1696) Therefore I couldnt build the project. Would you have ideas how I can find whats missing?
@harishprabhakar58424 жыл бұрын
Hey man, great videos. For some reason, cmake .. results in configuration incomplete.... im stuck :/
@cppmonk37314 жыл бұрын
Glad to hear you found it interesting :) Can you post the error you get as an issue in github.com/cbecker/kalman_python_cpp?