43c710ec39
* Move java lib install to /usr/local/frc/java * Build and install both debug and normal OpenCV libraries * Install OpenCV cmake files * Build OpenCV Java with version 8 target * Build static OpenCV for static allwpilib binaries * Move netconsoleTee install to /usr/local/frc/bin * Move multiCameraServer default app install to /usr/local/frc/bin * Install more FRC binaries * Fix /home/pi/zips/java-multiCameraServer.zip owner to pi:pi * Remove azure 60 minute timeout * Add openjdk-8-jdk to Azure docker image (this is needed for cmake to find javah as only cmake 3.9 is available)
79 lines
2.7 KiB
Bash
Executable File
79 lines
2.7 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
DEST=${PWD}/../stage2/01-sys-tweaks/extfiles
|
|
|
|
mkdir -p ${DEST}
|
|
|
|
#
|
|
# examples
|
|
#
|
|
mkdir -p examples/java-multiCameraServer/src/main/java
|
|
cp allwpilib/cameraserver/multiCameraServer/src/main/java/Main.java examples/java-multiCameraServer/src/main/java/
|
|
cp allwpilib/cameraserver/multiCameraServer/src/main/native/cpp/main.cpp examples/cpp-multiCameraServer/
|
|
|
|
sh -c 'cd examples && zip -r - java-multiCameraServer' > ${DEST}/java-multiCameraServer.zip
|
|
sh -c 'cd examples && zip -r - cpp-multiCameraServer' > ${DEST}/cpp-multiCameraServer.zip
|
|
sh -c 'cd examples && zip -r - python-multiCameraServer' > ${DEST}/python-multiCameraServer.zip
|
|
|
|
#
|
|
# tools
|
|
#
|
|
|
|
cp tools/setuidgids ${DEST}/
|
|
cp tools/_cscore.so ${DEST}/_cscore.cpython-35m-arm-linux-gnueabihf.so
|
|
cp tools/_cscore.so.debug ${DEST}/
|
|
cp tools/rpiConfigServer ${DEST}/
|
|
cp tools/rpiConfigServer.debug ${DEST}/
|
|
|
|
#
|
|
# openjdk
|
|
#
|
|
|
|
cp 01-download/jdk_11.0.1-strip.tar.gz ${DEST}/
|
|
|
|
#
|
|
# opencv
|
|
#
|
|
|
|
sh -c 'cd 03-build/opencv-build/install/lib && tar czf - libopencv*' > ${DEST}/libopencv.tar.gz
|
|
sh -c 'cd 03-build/opencv-build-debug/install/lib && tar czf - libopencv*' > ${DEST}/libopencv-debug.tar.gz
|
|
|
|
sh -c 'cd 03-build/opencv-build/install/include && tar czf - .' > ${DEST}/opencv-include.tar.gz
|
|
|
|
cp 03-build/opencv-build/install/share/OpenCV/java/opencv-*.jar ${DEST}/
|
|
|
|
sh -c 'cd 03-build/opencv-build/install/share/OpenCV && tar czf - *.cmake' > ${DEST}/opencv-cmake.tar.gz
|
|
sh -c 'cd 03-build/opencv-build-debug/install/share/OpenCV && tar czf - *.cmake' > ${DEST}/opencv-cmake-debug.tar.gz
|
|
|
|
# the opencv build names the python .so with the build platform name instead
|
|
# of the target platform, so rename it
|
|
cp 03-build/opencv-build/install/python/cv2/python-*/cv2.*.so ${DEST}/cv2.cpython-35m-arm-linux-gnueabihf.so
|
|
|
|
#
|
|
# robotpy-cscore
|
|
#
|
|
|
|
sh -c 'cd robotpy-cscore && tar czf - cscore' > ${DEST}/robotpy-cscore.tar.gz
|
|
|
|
#
|
|
# pynetworktables
|
|
#
|
|
|
|
sh -c 'cd pynetworktables && tar czf - networktables ntcore' > ${DEST}/pynetworktables.tar.gz
|
|
|
|
#
|
|
# allwpilib
|
|
#
|
|
|
|
sh -c 'cd 03-build/allwpilib-build/lib && tar czf - lib*' > ${DEST}/wpilib.tar.gz
|
|
sh -c 'cd 03-build/allwpilib-build-debug/lib && tar czf - lib*' > ${DEST}/wpilib-debug.tar.gz
|
|
|
|
cp 03-build/allwpilib-build/jar/*.jar ${DEST}/
|
|
|
|
sh -c 'cd allwpilib/wpiutil/src/main/native/include && tar czf - uv.h uv wpi' > ${DEST}/wpiutil-include.tar.gz
|
|
sh -c 'cd allwpilib/cscore/src/main/native/include && tar czf - .' > ${DEST}/cscore-include.tar.gz
|
|
sh -c 'cd allwpilib/ntcore/src/main/native/include && tar czf - .' > ${DEST}/ntcore-include.tar.gz
|
|
sh -c 'cd allwpilib/cameraserver/src/main/native/include && tar czf - cameraserver vision' > ${DEST}/cameraserver-include.tar.gz
|
|
|
|
sh -c 'cd 03-build/allwpilib-static/bin && tar czf - cscore_* multiCameraServer* netconsoleTee*' > ${DEST}/wpilib-bin.tar.gz
|