- Built on Ubuntu 16.04.1
- Was having problems with HGFS, solved with: http://askubuntu.com/questions/591664/files-missing-in-mnt-hgfs-on-ubuntu-vm
- sudo apt install default-jdk ant maven git cmake -y
- git clone https://github.com/rasa/vmware-tools-patches.git
- cd vmware-tools-patches
- ./patched-open-vm-tools.sh
- Getting seemingly random missing separator errors when making. Seems random because just running make again sometimes goes further. Was able to finally build by using
until make; do echo; donewhich is absurd but it worked, so it's not absurd. Could be that this is due to unzipping on OS X, but the line endings should be the same. - On 32 bit:
jason@ubuntu:/usr/lib/jvm/default-java/include$ sudo ln -s linux/jni_md.h jni_md.hSeems that cmake didn't detect the include/linux directory for some reason. - OpenCV built in tests would not pass in 32 bit. Failures seemed centered around the calib3d module. Releasing anyway as our library tests were passing, so perhaps this will still be useful to some people.
- Due to openpnp#10, attempting to rebuild on Ubuntu 14.04.5 for better libstdc++ compatibility.
- HGFS seems to be just completely broken, so instead of switching back and forth between the VM and the host we're goign to build everything for the Linux parts in the VM and check it into Github and then finish the process in OS X.
- With a fresh 14.04.5 install:
sudo apt update -y
sudo apt full-upgrade -y
sudo reboot
sudo apt install default-jdk ant maven git cmake g++ -y
git clone https://github.com/openpnp/opencv.git
cd opencv; mkdir opencv; cd opencv
wget https://github.com/opencv/opencv/archive/3.2.0.zip
unzip opencv-3.2.0.zip
cd ..
./create-targets.sh 3.2.0
cd opencv/opencv-3.2.0/target/linux/x86_64
cmake -DBUILD_SHARED_LIBS=OFF ../../.. > cmake.log
make -j8
- OS X Tests are currently failing due to opencv/opencv#5030
- Linux 32 bit build failed due to IPP - seems to have been corrected after build 64 bit version.
- Linux 32 bit tests failed similar to OS X.
- Linux 64 bit tests crash the VM.
- Windows 64 bit tests fail in multiply.
- Download OpenCV Linux/OSX source and Windows binary release to opencv/. Should be a ZIP and a EXE.
- Unzip source ZIP to create opencv/opencv-VERSION.
- Run ./create-targets.sh VERSION (e.g. ./create-targets 3.0.0) to create all of the target directories under opencv/opencv-VERSION/target.
- Update pom.xml, OpenCV.java and README.md with new versions.
- Make sure Java is 1.7:
java -version,export JAVA_HOME=$(/usr/libexec/java_home -v1.7) cd opencv/opencv-VERSION/target/osx/x86_64cmake -DBUILD_SHARED_LIBS=OFF -DEIGEN_INCLUDE_PATH=/usr/local/include/eigen3 ../../.. > cmake.logmake -j8./copy-resources VERSION. It won't finish, but it should get far enough.mvn clean test.
- Start the 32 bit Linux VM. It needs default-jdk, maven and ant installed.
cd /mnt/hgfs/opencv/opencv/opencv-VERSION/target/linux/x86_32cmake -DBUILD_SHARED_LIBS=OFF ../../.. > cmake.logmake -j8- In the host OS,
./copy-resources VERSION - Back in the VM,
cd /mnt/hgfs/opencv mvn clean test
- Start the 64 bit Linux VM. It needs default-jdk, maven and ant installed.
cd /mnt/hgfs/opencv/opencv/opencv-VERSION/target/linux/x86_64cmake -DBUILD_SHARED_LIBS=OFF ../../.. > cmake.logmake -j8- In the host OS,
./copy-resources VERSION - Back in the VM,
cd /mnt/hgfs/opencv mvn clean test
- In a Windows VM, double click the Windows EXE downloaded previously. It will ask where to extract. Choose opencv/opencv-VERSION/target/windows.
- In the host OS,
./copy-resources VERSION. - Back in the VM,
mvn clean test
- Commit the updates to develop.
- Merge develop into master.
- Push to Sonatype:
- Read http://central.sonatype.org/pages/apache-maven.html
mvn clean deploy -P release-sign-artifacts- Check it's good at https://oss.sonatype.org/
- Release with
mvn nexus-staging:release - Or reset with
mvn nexus-staging:drop
git tag vVERSION-RELEASE(e.g.git tag v3.0.0-1)