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

如何编译examples/squeezenet.cpp #40

Closed
junedgar opened this issue Jul 26, 2017 · 4 comments
Closed

如何编译examples/squeezenet.cpp #40

junedgar opened this issue Jul 26, 2017 · 4 comments

Comments

@junedgar
Copy link

junedgar commented Jul 26, 2017

现在mac直接跑squeezenet.cpp这个demo
1、cmake . 然后make,出现下面错误,手动在src下添加"platform.h"后出现(2)的错误
image
2、新出现错误
image
3、在CMakeLists.txt 添加include_directories(${OpenCV_INCLUDE_DIRS})后又出现新的错误:
image
4、指定libncnn.a绝对路径后又出现新的错误
image

第二条错误跟第四条的错误是一样的,又回来了/(ㄒoㄒ)/~~
菜鸟,望各位大神指点……

@junedgar
Copy link
Author

@nihui 能指点一下吗

@nihui
Copy link
Member

nihui commented Jul 26, 2017

顶层的 CMakeLists.txt 把最后的 # add_subdirectory(examples) 取消注释
然后直接用顶层的 CMakeLists.txt 编译 ...

@junedgar
Copy link
Author

@nihui 直接用顶层编译出现的错误是这个
image

@junedgar
Copy link
Author

已经解决了,我同时装了opencv2,opencv3本来想着平时可以随意切换没问题,结果检测的时候老是检测到3.2版本去了

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

2 participants