-
Notifications
You must be signed in to change notification settings - Fork 744
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
Error building caffe: sun.reflect.annotation.TypeNotPresentExceptionProxy #154
Comments
It just looks like there's conflicting classes on your class path. Make sure you didn't add anything to your class path. Sure, we can modify |
I'm not seeing anything javacpp-related in my class path, but any hints on specific files/locations to be wary of (e.g. older versions of javacpp)? I've also tried mvn clean but no success. |
I'm still sifting through my class path, but I noticed this in the debugged output:
That space after the bracket in "< project>org.bytedeco:javacpp-presets..." looks strange. Should that be there? (I doubt this is causing the error, but I thought it looked curious and worth mentioning just in case.) |
I'm also able to install the presets for OpenCV successfully, so I'm wondering if maybe the issue is Caffe-specific? I also deleted the bytedeco folder from both my /var/root/.m2/ and ~/.m2 directories and ran another install. My machine does not have cuda installed, but I'll try to test the CPU_ONLY installation on a machine that does have it. |
Could you try to remove the |
Ran another clean install without -U, but no luck. :( |
After fixing the javacpp.jar build, I was able to build the caffe preset and get a new error:
I tried |
By the way, for posterity's sake, it seems that I can recreate the |
On Mac OS X, blas comes with Xcode: |
I'm cleaning/editing various parameters but no dice. I'm wondering if maybe I'd have better luck trying a different package by tinkering with the cppbuild.sh parameters. Would I be able to change the |
I was able to build Caffe natively from the main site's instructions without any errors (and using the CPU_ONLY option). However, I'm not sure how to integrate it into the presets build in lieu of cppbuild.sh. I copied this folder over javacpp-presets/caffe/cppbuild/macosx-x86_64/caffe-master, then ran |
If you don't want to use the Accelerate framework, and use something like OpenBLAS, you can of course modify the |
Without using |
I've modified the |
Ah this is a long time ago, but I thought to include this here on the slim chance someone comes across this with the same issue: the mvn clean install refused to find my OpenBLAS path, so I manually included it by running |
I'm trying to build the Caffe presets on OSX following these steps:
Then, enabled CPU_ONLY=1 for macosx build in ./caffe/cppbuild.sh (ln 30). After,
But the last command outputs a lot of warnings (not sure if they are relevant?) and a sun.reflect.annotation.TypeNotPresentExceptionProxy:
Also, I found that this issue is almost identical to #97, the only difference being that I'm building on Mac instead of Linux.
Is there a way to build the presets for Mac using the CPU_ONLY option?
The text was updated successfully, but these errors were encountered: