Comments (7)
@KleinYuan Hi, I met the same error today when I was trying to build the Caffe2-iOS. When I run setup.sh, there is an error:
CMake Error at cmake/External/nnpack.cmake:102 (add_library):
Cannot find source file:
/Users/lihuoran/home/workspace/dl-on-mobile/demos/Caffe2-iOS/src/caffe2/third_party/NNPACK/src/psimd/fft-block-mac.c
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
Call Stack (most recent call first):
cmake/Dependencies.cmake:52 (include)
CMakeLists.txt:85 (include)
CMake Error: Cannot determine link language for target "CAFFE2_NNPACK".
CMake Error: CMake can not determine linker language for target: CAFFE2_NNPACK
Do you know what is going on and how to fix it? Thanks!
from caffe2-ios.
@dawand hi, I guess you are testing feature-models branch right? In that case, yes, you will have this issue, because we are still developing this branch (in the stage of testing some error handling) and it's quite not stable. We will eventually publish a 2-0-stable branch for a clean/stable version of that branch.
I tested 1-0-stable, and it should not throw this error.
Also, this error thrown because in the feature-models branch, you are missing some files (which is too big for git an we didn't put it there.)
You can still do following to clean it:
- Open it in Xcode and you will see under models folder, there are many pb files marked as red (due to it's too big and we don't put it here)
- Choose all the red ones and right click, then delete them
- change this line to
let builtInModels = ["squeezeNet"]
Then you will have no trouble.
Or, you can download for example tinyYoloInit.pb/tinyYoloPredict.pb in this repo: https://github.com/KleinYuan/caffe2-yolo
And do similar thing, remove whatever is not available or whatever you don't need.
In summary, the issue is that model files are missing and this branch is still under developing. Sorry for the confusion and we will publish 2-0-stable ASAP. :) hope helpful.
from caffe2-ios.
Thank you very much for the detailed explanation 👍 Keep going 💯
from caffe2-ios.
@dawand thanks for your appreciation and feel free to ask any question here. Also if you like it, star us to encourage us. :)
from caffe2-ios.
@dawand hey man, I actually thought about it and it seems that also possible that your caffe2 build is not successful. Could you double check on that.
If everything build successfully, you will see that file in here:
I have a friend having the same issue and please check following stuff are done:
-
brew install automake libtool
-
make sure your cmake tool chain is not changed by other services and maybe you wanna reinstall it like
brew install cmake
You should not have any problem if those are done.
from caffe2-ios.
@KleinYuan I am having the same exact problem as described above by @lihuoran when I run setup.sh. (This Imgur album has three images that show all of the errors and warnings I'm receiving in Terminal when running setup.sh. They are in chronological order from first image to third image.) In addition, I'm also getting these two warnings:
WARNING: Target "libprotoc" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it. CMake does not define behavior for this case.
WARNING: Target "protoc" has EXCLUDE_FROM_ALL set and will not be built by default but an install rule has been provided for it. CMake does not define behavior for this case.
@lihuoran Please let me know if you find a solution to this error.
from caffe2-ios.
Was there ever a fix for this issue?
I tried looking at #23 but this isn't doing it for me either
from caffe2-ios.
Related Issues (20)
- The performance on the time consumption HOT 17
- Output for YOLO and LeNet HOT 2
- How to change the default compute mode from eigen to nnpack? HOT 6
- error: **/src/caffe2-ios/caffe2-ios/tinyYoloPredict.pb: No such file or directory HOT 2
- Compilation error for release HOT 2
- I got a issues when build the target HOT 2
- How to use other model? HOT 3
- Would this work for ios11? HOT 3
- Compile Error : linker command failed with exit code 1 HOT 3
- Apple Mach-O Linker Error HOT 4
- 'caffe2/core/predictor.h' file not found HOT 1
- #include "caffe2/proto/caffe2.pb.h" not found (version 2) HOT 1
- Apple Mach-O Linker Error
- How to build an image dataset for use in iOS HOT 3
- Build caffe2 failed when click the setup.sh
- Undefined symbols for architechure x86_64
- Use pytorch generated caffe2 iOS build
- Did you tested the performance of the model? Such as the time cost of the predict step? HOT 5
- Why is openCV used in here? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caffe2-ios.