-
Notifications
You must be signed in to change notification settings - Fork 583
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
Test Failures during mvn install? #76
Comments
That's a new one. I wonder what causes that. You can skip the tests for now by calling |
BTW, what version of Maven is this? |
This is maven 3.3. Skipping the tests worked, thanks! |
Ahhhh actually, that command didn't work, I actually ran I opened another issue at bytedeco/javacpp-presets#154 about building the caffe presets, and I'm wondering if it's possible these are related? After running
just to see if the javacpp.jar built correctly (and not concerning the presets at all), but it outputs this error:
I assume the javacpp.jar file was not meant to ever be used by itself, but I thought a simple test like this ought to work. Does this mean something is wrong with the jar, or was I not meant to access it like this in the first place? Is it possible these failed tests are what prevent me from using the presets correctly? |
Sorry, I meant |
Yes, it looks like your installation of Maven is picking up an old version of JavaCPP somewhere, and that's probably why the tests fail. |
Thanks for the quick reply! That command works, but unfortunately I keep getting UnsatisfiedLinkErrors when using the jars (specifically, opencv). I tried deleting my .m2 directory and reinstalling maven, but no difference. I'm just wondering, are there any prerequisites for using javacpp on OSX that maybe I'm forgetting about (e.g. specific OSX version or maybe Xcode dependencies)? Right now I'm trying to narrow down the problem by seeing if there's something wrong with javacpp.jar before I start combining it with any of the presets, since they all build correctly but are apparently not usable. Is there a super short test program you recommend I try to verify if my built version of javacpp.jar works, such as by calling a specific function? I can reference all class constants normally, but not the functions. Otherwise, I'll keep investigating my maven installation. |
Let's see, did you check this list?
https://github.com/bytedeco/javacpp-presets/wiki/Build-Environments#mac-os-x-x86_64
|
As it turns out I didn't have quite a few things there installed, so that was extremely helpful! Unfortunately, that didn't affect the build: I can build javacpp.jar only by skipping the tests, and I can build a preset successfully, but when I use them I get UnsatisfiedLinkedError. I noticed that when I run
Under |
It's not the same wrappers no. JavaCPP is closer to the C++ API. |
Might want to try this: |
Ahhh hot diggity dawg it works!!!!!!!! You were right, it was a combination of not having the right packages installed and having an old javacpp.jar (built before installing those packages) on my classpath. I cleaned out everything and rebuilt, and it works perfectly now--no failed tests and no UnsatisfiedLinkError anymore. Sorry for causing you trouble, but thank you so much for your help! :) |
Great :) No problem |
Thanks to Booley for |
|
I'm trying to install javacpp on OSX with mvn install:
But the install fails with these errors:
How can I fix these test failures?
The text was updated successfully, but these errors were encountered: