Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installed cmake files don't find the ncnn library #1226

Closed
yurivict opened this issue Aug 29, 2019 · 4 comments
Closed

Installed cmake files don't find the ncnn library #1226

yurivict opened this issue Aug 29, 2019 · 4 comments

Comments

@yurivict
Copy link

$ echo 'find_package(ncnn REQUIRED)' >CMakeLists.txt
$ cmake -Wno-dev .
[...]
CMake Error at /usr/local/lib/cmake/ncnn/ncnn.cmake:79 (message):
  The imported target "ncnn" references the file

     "/usr/local/lib/lib/libncnn.a"

See the complete error message in the downstream bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240187

@akemimadoka
Copy link
Contributor

The library is placed at wrong path, this should be the pkg author's missing, please contact with the author for helping.
You can install ncnn manually with CMake, using "install" target.

@yurivict
Copy link
Author

yurivict commented Sep 2, 2019

I only install it with cmake's install target, and then this problem occurs.

@akemimadoka
Copy link
Contributor

Can you provide your build command, install log and if possible, the path structure of installed target?

@nihui
Copy link
Member

nihui commented Sep 3, 2019

this issue has been solved on downstream
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240187#c2

@nihui nihui closed this as completed Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants