mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
Fixes OpenCV on windows when we get to it. (#23)
This commit is contained in:
committed by
Peter Johnson
parent
3625f11e08
commit
7a587390ba
@@ -201,7 +201,18 @@ ext.useOpenCv = { project ->
|
||||
compileTask.dependsOn "unzipOpenCvJni_${openCvPlatform}"
|
||||
}
|
||||
if (targetPlatform.operatingSystem.windows) {
|
||||
linker.args "${openCvNativesFolder}/opencv.lib"
|
||||
linker.args new String("${openCvNativesFolder}\\opencv.lib").replace('/', '\\')
|
||||
linker.args new String("${openCvNativesFolder}\\Release\\libjpeg.lib").replace('/', '\\')
|
||||
linker.args new String("${openCvNativesFolder}\\Release\\libpng.lib").replace('/', '\\')
|
||||
linker.args new String("${openCvNativesFolder}\\Release\\zlib.lib").replace('/', '\\')
|
||||
linker.args "kernel32.lib"
|
||||
linker.args "user32.lib"
|
||||
linker.args "gdi32.lib"
|
||||
linker.args "Ole32.lib"
|
||||
linker.args "OleAut32.lib"
|
||||
linker.args "comdlg32.lib"
|
||||
linker.args "advapi32.lib"
|
||||
linker.args "Vfw32.lib"
|
||||
} else {
|
||||
linker.args "-L${openCvNativesFolder}"
|
||||
linker.args "-lopencv"
|
||||
|
||||
Reference in New Issue
Block a user