Skip to content

Commit

Permalink
fix glog errors on linux, bump opencv version
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotScher committed Nov 19, 2024
1 parent f0ff201 commit f3caf2c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shared/config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ nativeUtils {
configureDependencies {
opencvYear = "frc2024"
niLibVersion = "2025.0.0"
opencvVersion = "4.8.0-6"
opencvVersion = "4.8.0-7"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion shared/opencv.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def opencvVersion = '4.8.0-6'
def opencvVersion = '4.8.0-7'

if (project.hasProperty('useCpp') && project.useCpp) {
model {
Expand Down
6 changes: 5 additions & 1 deletion wpical/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ model {
nativeUtils.useRequiredLibrary(it, 'ceres')
nativeUtils.useRequiredLibrary(it, 'opencv_static')
it.cppCompiler.define 'GLOG_USE_GLOG_EXPORT'
it.cppCompiler.define('GLOG_DEPRECATED', '__declspec(deprecated)')
if (it.targetPlatform.operatingSystem.isWindows()) {
it.cppCompiler.define('GLOG_DEPRECATED', '__declspec(deprecated)')
} else {
it.cppCompiler.define('GLOG_DEPRECATED', '[[deprecated]]')
}
if (it.targetPlatform.operatingSystem.isWindows()) {
it.linker.args << 'Gdi32.lib' << 'Shell32.lib' << 'd3d11.lib' << 'd3dcompiler.lib'
} else if (it.targetPlatform.operatingSystem.isMacOsX()) {
Expand Down

0 comments on commit f3caf2c

Please sign in to comment.