Closed tdrone993 closed 7 years ago
Can you type out exactly how you tried to build it? Did you follow the quick start instructions in the readme.md?
Follow the read me instructions. Oracle JDK 9 on 14.05
I think I know what's going on. This is a gradle bug. Which version are you building? Source of the code? github master? github snapshot? downloaded source code from sourceforge... etc.
If the problem is what I think it is the hack work around is to comment out the following from boodfcv/build.gradle
apply plugin: 'osgi'
jar {
manifest { // the manifest of the default jar is of type OsgiManifest
instruction 'Bundle-Vendor', 'BoofCV'
// instruction 'Bundle-Description', 'BoofCV'
instruction 'Bundle-DocURL', 'http://boofcv.org'
}
}
Skipping integration/android because ANDROID_HOME has not been set! See integration/android/readme.txt Skipping integration/boofcv-openkinect because boofcv-openkinect/libfreenect is missing! See integration/openkinect/readme.txt Parallel execution is an incubating feature.
FAILURE: Build failed with an exception.
What went wrong: A Jar can only accept a valid file or directory: /home/chris/Downloads/BoofCV/examples/build/osgi-classes
Try: Run with --info or --debug option to get more log output.
Exception is:
java.lang.IllegalArgumentException: A Jar can only accept a valid file or directory: /home/chris/Downloads/BoofCV/examples/build/osgi-classes
at aQute.bnd.osgi.Jar.
Get more help at https://help.gradle.org
BUILD FAILED in 12s 46 actionable tasks: 12 executed, 34 up-to-date
jar {
manifest { // the manifest of the default jar is of type OsgiManifest
// instruction 'Bundle-Vendor', 'BoofCV' // instruction 'Bundle-Description', 'BoofCV' instruction 'Bundle-DocURL', 'http://boofcv.org' } }
Could you provide the location you obtained the source code you're trying to compile? There are some slight differences. Also let me know if commenting out the lines I mentioned above fixes the problem. I'm assuming those error messages was generated without commenting them out since OSGI is still mentioned.
git clone https://github.com/lessthanoptimal/BoofCV.git did not fix the problems.
I've removed OSGI from build.gradle. Fixed the problem. Some people might complain...