caishanli/pyncnn

Issues on installing

Closed this issue · 9 comments

Hello
Did u check the installation?
First, there are your customized paths in the CMakeLists.txt.

image

I changed the paths.
Secondly, I met the following issue when configure with cmake.

image

So I commented the command find_package(Python3) in CMakeLists.txt and the above issue was disappeared.

Lastly, when building with make command, I met the following issue again.

image

Please let me know the solution.
Thanks

Hello, customized paths should be removed.
And what's your cmake version?

CMake version: 3.16.3
Python 3.8.6
NCNN-20200916

I fixed these problems and test on msvc2019 and ubuntu18.04. You can update and try.

Hello
There is the same issue when compiling main.cpp.

image

Please check.
My OS: Ubuntu 20.10
gcc: 10.2.0

The configuration result by cmake is the following.

image

Is your pyncnn code updated?
main.cpp:531 should be
.def("extract", (int (Extractor::*)(const char *, Mat &, int)) & Extractor::extract,

Yes, Please check

image

Yesterday I update this code with ncnn master and add third param int to this function, so you can build with ncnn master without modify the code.
If you want to build with NCNN-20200916 release, please modify main.cpp:531-532 as follow:
.def("extract", (int (Extractor::*)(const char *, Mat &)) & Extractor::extract,
"get result by blob name", py::arg("blob_name"), py::arg("feat"))
and the same as main.cpp:535-536, and now you should build success.

The issue has been disappeared.
Thanks.

You are welcome.