Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into main
  • Loading branch information
mcm001 committed Jun 6, 2024
2 parents c6168de + cade41f commit 184545d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
include:
- container: wpilib/roborio-cross-ubuntu:2023-22.04
- container: wpilib/roborio-cross-ubuntu:2024-22.04
artifact-name: Athena
build-options: "-Pplatform=linux-athena"
- container: wpilib/raspbian-cross-ubuntu:bullseye-22.04
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:

build-mac:
name: "Build - macOS"
runs-on: macOS-11
runs-on: macOS-14
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -116,7 +116,7 @@ jobs:

build-mac-arm:
name: "Build - macOS (Arm)"
runs-on: macos-11
runs-on: macOS-14
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion arm-frc-gnueabi.toolchain.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set(GCC_COMPILER_VERSION "" CACHE STRING "GCC Compiler version")
set(GNU_MACHINE "arm-frc2023-linux-gnueabi" CACHE STRING "GNU compiler triple")
set(GNU_MACHINE "arm-frc2024-linux-gnueabi" CACHE STRING "GNU compiler triple")
set(SOFTFP yes)
set(ARM_LINUX_SYSROOT /usr/local/arm-nilrt-linux-gnueabi/sysroot)
include("${CMAKE_CURRENT_LIST_DIR}/opencv/platforms/linux/arm.toolchain.cmake")
16 changes: 10 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ ext {
'-DOPENCV_JAVA_SOURCE_VERSION=1.8',
'-DOPENCV_JAVA_TARGET_VERSION=1.8',
'-DWITH_MSMF_DXVA=OFF',
'-DCMAKE_INSTALL_RPATH=$ORIGIN',
'-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE',
'-DCMAKE_SKIP_RPATH=FALSE',
'-DCMAKE_BUILD_RPATH_USE_ORIGIN=TRUE',
'-DBUILD_opencv_apps=OFF',
'-DBUILD_TESTS=OFF',
'-DBUILD_PERF_TESTS=OFF',
Expand Down Expand Up @@ -183,8 +183,8 @@ def stripExe = 'strip'
def objCopyExe = 'objcopy'

if (project.platform == "linux-athena") {
stripExe = 'arm-frc2023-linux-gnueabi-strip'
objCopyExe = 'arm-frc2023-linux-gnueabi-objcopy'
stripExe = 'arm-frc2024-linux-gnueabi-strip'
objCopyExe = 'arm-frc2024-linux-gnueabi-objcopy'
} else if (project.platform == "linux-arm32") {
stripExe = 'armv6-bullseye-linux-gnueabihf-strip'
objCopyExe = 'armv6-bullseye-linux-gnueabihf-objcopy'
Expand All @@ -210,6 +210,10 @@ if (project.platform == "linux-athena") {
def args = defaultCmakeArgs
if (buildType.contains("Shared")) {
args = args + '-DBUILD_SHARED_LIBS=ON' + '-DOPENCV_DEBUG_POSTFIX=d'

if (project.platform.contains('windows')) {
args = args + '-DCMAKE_SHARED_LINKER_FLAGS=/DEPENDENTLOADFLAG:0x1100'
}
} else {
args = args + '-DBUILD_SHARED_LIBS=OFF'
}
Expand Down Expand Up @@ -247,9 +251,9 @@ if (project.platform == "linux-athena") {
'-DOPENCV_EXTRA_FLAGS_DEBUG=-Og' +
"-DCMAKE_MODULE_PATH=$rootDir/arm-frc-modules"
} else if (project.platform == "osx-arm64") {
return args + "-DCMAKE_OSX_ARCHITECTURES=arm64" + "-DCMAKE_OSX_DEPLOYMENT_TARGET:String=11.0"
return args + "-DCMAKE_OSX_ARCHITECTURES=arm64" + "-DCMAKE_OSX_DEPLOYMENT_TARGET:String=13.0" + "-DCMAKE_BUILD_RPATH=@loader_path"
} else if (project.platform == "osx-x86_64") {
return args + "-DCMAKE_OSX_ARCHITECTURES=x86_64" + "-DCMAKE_OSX_DEPLOYMENT_TARGET:String=10.15"
return args + "-DCMAKE_OSX_ARCHITECTURES=x86_64" + "-DCMAKE_OSX_DEPLOYMENT_TARGET:String=13.0" + "-DCMAKE_BUILD_RPATH=@loader_path"
} else if (project.platform == "windows-arm64") {
return args + "-DOPENCV_SKIP_SYSTEM_PROCESSOR_DETECTION=TRUE" + "-DAARCH64=ON"
}
Expand Down
2 changes: 1 addition & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ publishing {
}
}

def pubVersion = "${project.ext.version}-2"
def pubVersion = "${project.ext.version}-3"

def outputsFolder = file("$project.buildDir/outputs")

Expand Down

0 comments on commit 184545d

Please sign in to comment.