Skip to content

Commit 184545d

Browse files
committed
Merge branch 'main' of https://github.com/wpilibsuite/thirdparty-opencv into main
2 parents c6168de + cade41f commit 184545d

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- container: wpilib/roborio-cross-ubuntu:2023-22.04
15+
- container: wpilib/roborio-cross-ubuntu:2024-22.04
1616
artifact-name: Athena
1717
build-options: "-Pplatform=linux-athena"
1818
- container: wpilib/raspbian-cross-ubuntu:bullseye-22.04
@@ -98,7 +98,7 @@ jobs:
9898

9999
build-mac:
100100
name: "Build - macOS"
101-
runs-on: macOS-11
101+
runs-on: macOS-14
102102
steps:
103103
- uses: actions/checkout@v3
104104
with:
@@ -116,7 +116,7 @@ jobs:
116116

117117
build-mac-arm:
118118
name: "Build - macOS (Arm)"
119-
runs-on: macos-11
119+
runs-on: macOS-14
120120
steps:
121121
- uses: actions/checkout@v3
122122
with:

arm-frc-gnueabi.toolchain.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
set(GCC_COMPILER_VERSION "" CACHE STRING "GCC Compiler version")
2-
set(GNU_MACHINE "arm-frc2023-linux-gnueabi" CACHE STRING "GNU compiler triple")
2+
set(GNU_MACHINE "arm-frc2024-linux-gnueabi" CACHE STRING "GNU compiler triple")
33
set(SOFTFP yes)
44
set(ARM_LINUX_SYSROOT /usr/local/arm-nilrt-linux-gnueabi/sysroot)
55
include("${CMAKE_CURRENT_LIST_DIR}/opencv/platforms/linux/arm.toolchain.cmake")

build.gradle

+10-6
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ ext {
6060
'-DOPENCV_JAVA_SOURCE_VERSION=1.8',
6161
'-DOPENCV_JAVA_TARGET_VERSION=1.8',
6262
'-DWITH_MSMF_DXVA=OFF',
63-
'-DCMAKE_INSTALL_RPATH=$ORIGIN',
64-
'-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE',
63+
'-DCMAKE_SKIP_RPATH=FALSE',
64+
'-DCMAKE_BUILD_RPATH_USE_ORIGIN=TRUE',
6565
'-DBUILD_opencv_apps=OFF',
6666
'-DBUILD_TESTS=OFF',
6767
'-DBUILD_PERF_TESTS=OFF',
@@ -183,8 +183,8 @@ def stripExe = 'strip'
183183
def objCopyExe = 'objcopy'
184184

185185
if (project.platform == "linux-athena") {
186-
stripExe = 'arm-frc2023-linux-gnueabi-strip'
187-
objCopyExe = 'arm-frc2023-linux-gnueabi-objcopy'
186+
stripExe = 'arm-frc2024-linux-gnueabi-strip'
187+
objCopyExe = 'arm-frc2024-linux-gnueabi-objcopy'
188188
} else if (project.platform == "linux-arm32") {
189189
stripExe = 'armv6-bullseye-linux-gnueabihf-strip'
190190
objCopyExe = 'armv6-bullseye-linux-gnueabihf-objcopy'
@@ -210,6 +210,10 @@ if (project.platform == "linux-athena") {
210210
def args = defaultCmakeArgs
211211
if (buildType.contains("Shared")) {
212212
args = args + '-DBUILD_SHARED_LIBS=ON' + '-DOPENCV_DEBUG_POSTFIX=d'
213+
214+
if (project.platform.contains('windows')) {
215+
args = args + '-DCMAKE_SHARED_LINKER_FLAGS=/DEPENDENTLOADFLAG:0x1100'
216+
}
213217
} else {
214218
args = args + '-DBUILD_SHARED_LIBS=OFF'
215219
}
@@ -247,9 +251,9 @@ if (project.platform == "linux-athena") {
247251
'-DOPENCV_EXTRA_FLAGS_DEBUG=-Og' +
248252
"-DCMAKE_MODULE_PATH=$rootDir/arm-frc-modules"
249253
} else if (project.platform == "osx-arm64") {
250-
return args + "-DCMAKE_OSX_ARCHITECTURES=arm64" + "-DCMAKE_OSX_DEPLOYMENT_TARGET:String=11.0"
254+
return args + "-DCMAKE_OSX_ARCHITECTURES=arm64" + "-DCMAKE_OSX_DEPLOYMENT_TARGET:String=13.0" + "-DCMAKE_BUILD_RPATH=@loader_path"
251255
} else if (project.platform == "osx-x86_64") {
252-
return args + "-DCMAKE_OSX_ARCHITECTURES=x86_64" + "-DCMAKE_OSX_DEPLOYMENT_TARGET:String=10.15"
256+
return args + "-DCMAKE_OSX_ARCHITECTURES=x86_64" + "-DCMAKE_OSX_DEPLOYMENT_TARGET:String=13.0" + "-DCMAKE_BUILD_RPATH=@loader_path"
253257
} else if (project.platform == "windows-arm64") {
254258
return args + "-DOPENCV_SKIP_SYSTEM_PROCESSOR_DETECTION=TRUE" + "-DAARCH64=ON"
255259
}

publish.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ publishing {
1313
}
1414
}
1515

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

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

0 commit comments

Comments
 (0)