* Add `snap/` directory containing
- `snapcraft.yaml` the build script
- `local/usr/lib/python3.6/sitecustomize.py` a snap-specific override
file to get python to recognise the snap's python paths
* Add `*.snap` to gitignore so built snap packages aren't accidentally
committed to the repository.
OpenCV 3.4.6 requires libjasper which is not supported on Ubuntu 18.04+
* Update OpenCV download URL to version 4.5.0
* Drop opencv_contrib target and external project (the Sift algorithm is
now in OpenCV upstream so we don't need the contrib anymore)
* Update OpenSfM build definition to reference new location for OpenCV
compiled binaries
Signed-off-by: Daniel Llewellyn <daniel@snapcraft.ninja>
The wrapper scripts incorrectly unwrapped arguments with spaces making
them appear to be multiple individual arguments instead of one quoted
argument.
ref: https://github.com/OpenDroneMap/ODM/pull/1170#issuecomment-716607868
Signed-off-by: Daniel Llewellyn <daniel@snapcraft.ninja>
OpenCV 3.4.6 requires libjasper which is not supported on Ubuntu 18.04+
* Update OpenCV download URL to version 4.5.0
* Drop opencv_contrib target and external project (the Sift algorithm is
now in OpenCV upstream so we don't need the contrib anymore)
* Update OpenSfM build definition to reference new location for OpenCV
compiled binaries
Signed-off-by: Daniel Llewellyn <daniel@snapcraft.ninja>
GFlags compiled on Ubuntu 18.04 is not linkable by other projects due to
missing `-fPIC` during compilation.
* Add `-DCMAKE_POSITION_INDEPENDENT_CODE=ON` when compiling GFlags.
Signed-off-by: Daniel Llewellyn <daniel@snapcraft.ninja>
* Use CMake-native call to `ProcessorCount` instead of a shell execute
call to `nproc` that only works in Makefile-style builds.
* Use CMake's implicit default `cmake --build` commands to build CMake
projects instead of assuming `make`.
Signed-off-by: Daniel Llewellyn <daniel@snapcraft.ninja>