Skip to content

Commit

Permalink
Change windows library to statically linked
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Oct 25, 2021
1 parent 972cc50 commit e1db8cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ if (WIN32)
set(SHARED_LIB_EXTENSION "dll.a") # .dll.a is (I think?) equivalent to .lib, which is a "helper" thing required for linking to a dll on windows because reasons...
set(IMPORT_TYPE "IMPORTED_IMPLIB")
set(WIN32_OPENCV_VERSION "452")
set(JNI_PLATFORM_INCL "win32")
set(JNI_PLATFORM_INCL "win32")
set(CMAKE_SHARED_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static") # Statically link mingw32 libs so the user doesn't need to have them installed

elseif (APPLE)
set(SHARED_LIB_EXTENSION "dylib")
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'com.github.deltacv'
version '1.1.0'
version '1.1.1'

java {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down
Binary file modified lib/libapriltag.dll
Binary file not shown.

0 comments on commit e1db8cd

Please sign in to comment.