updates for vcruntime140_1.dll

This commit is contained in:
Greg DiCristofaro 2022-03-08 09:16:11 -05:00
parent 2b40728b38
commit c18b00581b
40 changed files with 212 additions and 140 deletions

View File

@ -32,10 +32,11 @@ public class HeifJNI {
*/
public static HeifJNI getInstance() throws UnsatisfiedLinkError {
if (instance == null) {
// System.loadLibrary("libx265");
// System.loadLibrary("libde265");
// System.loadLibrary("heif");
// System.loadLibrary("jpeg62");
System.loadLibrary("vcruntime140_1.dll");
System.loadLibrary("libx265");
System.loadLibrary("libde265");
System.loadLibrary("heif");
System.loadLibrary("jpeg62");
System.loadLibrary("heifconvert");
instance = new HeifJNI();
}

View File

@ -1,11 +1,9 @@
# Can be called with something like cmake -G "Visual Studio 17 2022" -A x64 -S .. "-DCMAKE_TOOLCHAIN_FILE=C:/Users/gregd/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static
cmake_minimum_required (VERSION 3.15)
cmake_policy(SET CMP0091 NEW)
project ("heifconvert")
find_package(libde265 CONFIG REQUIRED)
find_package(libheif CONFIG REQUIRED)
find_package(JPEG REQUIRED)
find_package(Java REQUIRED)
@ -65,12 +63,6 @@ if(UNIX OR MINGW)
include (${CMAKE_ROOT}/Modules/FindPkgConfig.cmake)
endif()
#set(CMAKE_INSTALL_UCRT_LIBRARIES TRUE)
#set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION TRUE)
#set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS TRUE)
#set(CMAKE_INSTALL_MFC_LIBRARIES TRUE)
#set(CMAKE_INSTALL_OPENMP_LIBRARIES TRUE)
#set(CompilerFlags
# CMAKE_CXX_FLAGS
# CMAKE_CXX_FLAGS_DEBUG
@ -83,10 +75,10 @@ endif()
# string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
#endforeach()
add_library(heifconvert STATIC ${heif_convert_sources})
add_library(heifconvert SHARED ${heif_convert_sources})
set_property(TARGET heifconvert PROPERTY
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
#set_property(TARGET heifconvert PROPERTY
# MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
target_link_directories (heifconvert PRIVATE ${additional_link_directories})
target_link_libraries (heifconvert ${additional_libraries})
@ -94,4 +86,4 @@ target_include_directories(heifconvert PRIVATE ${additional_includes})
message("Installing to: ${CMAKE_INSTALL_BINDIR}")
install(TARGETS heifconvert RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
include(InstallRequiredSystemLibraries)
# include(InstallRequiredSystemLibraries)

File diff suppressed because one or more lines are too long

View File

@ -201,13 +201,13 @@ JAVA_INCLUDE_PATH2:PATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-
JAVA_JVM_LIBRARY:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/lib/jvm.lib
//Path to a file.
JPEG_INCLUDE_DIR:PATH=C:/Users/gregd/vcpkg/installed/x64-windows-static/include
JPEG_INCLUDE_DIR:PATH=C:/Users/gregd/vcpkg/installed/x64-windows/include
//Path to a library.
JPEG_LIBRARY_DEBUG:FILEPATH=C:/Users/gregd/vcpkg/installed/x64-windows-static/debug/lib/jpeg.lib
JPEG_LIBRARY_DEBUG:FILEPATH=C:/Users/gregd/vcpkg/installed/x64-windows/debug/lib/jpeg.lib
//Path to a library.
JPEG_LIBRARY_RELEASE:FILEPATH=C:/Users/gregd/vcpkg/installed/x64-windows-static/lib/jpeg.lib
JPEG_LIBRARY_RELEASE:FILEPATH=C:/Users/gregd/vcpkg/installed/x64-windows/lib/jpeg.lib
//Path to a program.
Java_IDLJ_EXECUTABLE:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/idlj.exe
@ -230,9 +230,6 @@ Java_JAVAH_EXECUTABLE:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8
//Path to a program.
Java_JAVA_EXECUTABLE:FILEPATH=C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/java.exe
//Path to a file.
MSVC_REDIST_DIR:PATH=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Redist/MSVC/14.31.31103
//Automatically copy dependencies into the output directory for
// executables.
VCPKG_APPLOCAL_DEPS:BOOL=ON
@ -256,7 +253,7 @@ VCPKG_PREFER_SYSTEM_LIBS:BOOL=OFF
VCPKG_SETUP_CMAKE_PROGRAM_PATH:BOOL=ON
//Vcpkg target triplet (ex. x86-windows)
VCPKG_TARGET_TRIPLET:STRING=x64-windows-static
VCPKG_TARGET_TRIPLET:STRING=x64-windows
//Setup CMAKE_PROGRAM_PATH to use host tools
VCPKG_USE_HOST_TOOLS:BOOL=ON
@ -272,6 +269,12 @@ X_VCPKG_APPLOCAL_DEPS_INSTALL:BOOL=OFF
// serialization.
X_VCPKG_APPLOCAL_DEPS_SERIALIZED:BOOL=OFF
//Path to a program.
Z_VCPKG_BUILTIN_POWERSHELL_PATH:FILEPATH=C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
//Path to a program.
Z_VCPKG_PWSH_PATH:FILEPATH=Z_VCPKG_PWSH_PATH-NOTFOUND
//The directory which contains the installed libraries for each
// triplet
_VCPKG_INSTALLED_DIR:PATH=C:/Users/gregd/vcpkg/installed
@ -285,11 +288,8 @@ heifconvert_IS_TOP_LEVEL:STATIC=ON
//Value Computed by CMake
heifconvert_SOURCE_DIR:STATIC=C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI
//The directory containing a CMake configuration file for libde265.
libde265_DIR:PATH=C:/Users/gregd/vcpkg/installed/x64-windows-static/share/libde265
//The directory containing a CMake configuration file for libheif.
libheif_DIR:PATH=C:/Users/gregd/vcpkg/installed/x64-windows-static/share/libheif
libheif_DIR:PATH=C:/Users/gregd/vcpkg/installed/x64-windows/share/libheif
########################
@ -427,7 +427,7 @@ CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Details about finding JNI
FIND_PACKAGE_MESSAGE_DETAILS_JNI:INTERNAL=[C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/lib/jawt.lib][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/lib/jvm.lib][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/include][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/include/win32][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/include][v()]
//Details about finding JPEG
FIND_PACKAGE_MESSAGE_DETAILS_JPEG:INTERNAL=[optimized;C:/Users/gregd/vcpkg/installed/x64-windows-static/lib/jpeg.lib;debug;C:/Users/gregd/vcpkg/installed/x64-windows-static/debug/lib/jpeg.lib][C:/Users/gregd/vcpkg/installed/x64-windows-static/include][v62()]
FIND_PACKAGE_MESSAGE_DETAILS_JPEG:INTERNAL=[optimized;C:/Users/gregd/vcpkg/installed/x64-windows/lib/jpeg.lib;debug;C:/Users/gregd/vcpkg/installed/x64-windows/debug/lib/jpeg.lib][C:/Users/gregd/vcpkg/installed/x64-windows/include][v62()]
//Details about finding Java
FIND_PACKAGE_MESSAGE_DETAILS_Java:INTERNAL=[C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/java.exe][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/jar.exe][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/javac.exe][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/javah.exe][C:/Program Files/ojdkbuild/java-1.8.0-openjdk-1.8.0.222-1/bin/javadoc.exe][v1.8.0_222-1-ojdkbuild()]
//ADVANCED property for variable: JAVA_AWT_INCLUDE_PATH
@ -460,8 +460,6 @@ Java_JAVADOC_EXECUTABLE-ADVANCED:INTERNAL=1
Java_JAVAH_EXECUTABLE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: Java_JAVA_EXECUTABLE
Java_JAVA_EXECUTABLE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: MSVC_REDIST_DIR
MSVC_REDIST_DIR-ADVANCED:INTERNAL=1
//Install the dependencies listed in your manifest:
//\n If this is off, you will have to manually install your dependencies.
//\n See https://github.com/microsoft/vcpkg/tree/master/docs/specifications/manifests.md
@ -472,6 +470,8 @@ VCPKG_MANIFEST_INSTALL:INTERNAL=OFF
VCPKG_VERBOSE-ADVANCED:INTERNAL=1
//Making sure VCPKG_MANIFEST_MODE doesn't change
Z_VCPKG_CHECK_MANIFEST_MODE:INTERNAL=OFF
//The path to the PowerShell implementation to use.
Z_VCPKG_POWERSHELL_PATH:INTERNAL=C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
//Vcpkg root directory
Z_VCPKG_ROOT_DIR:INTERNAL=C:/Users/gregd/vcpkg

View File

@ -9,7 +9,7 @@ The output was:
Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 3/7/2022 7:18:41 PM.
Build started 3/8/2022 9:06:21 AM.
Project "C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
@ -43,7 +43,7 @@ Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.36
Time Elapsed 00:00:01.01
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"
@ -62,7 +62,7 @@ The output was:
Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 3/7/2022 7:18:43 PM.
Build started 3/8/2022 9:06:23 AM.
Project "C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertJNI\dist\CMakeFiles\3.23.0-rc2\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
@ -96,7 +96,7 @@ Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.31
Time Elapsed 00:00:00.84
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"
@ -108,28 +108,28 @@ The CXX compiler identification is MSVC, found in "C:/Users/gregd/Documents/Sour
Detecting C compiler ABI info compiled with the following output:
Change Dir: C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_e286b.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_34712.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.31.31104 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
CMakeCCompilerABI.c
cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_e286b.dir\Debug\\" /Fd"cmTC_e286b.dir\Debug\vc143.pdb" /external:W1 /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCCompilerABI.c"
cmTC_e286b.vcxproj -> C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertJNI\dist\CMakeFiles\CMakeTmp\Debug\cmTC_e286b.exe
cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_34712.dir\Debug\\" /Fd"cmTC_34712.dir\Debug\vc143.pdb" /external:W1 /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCCompilerABI.c"
cmTC_34712.vcxproj -> C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertJNI\dist\CMakeFiles\CMakeTmp\Debug\cmTC_34712.exe
Detecting CXX compiler ABI info compiled with the following output:
Change Dir: C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_68b59.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
Run Build Command(s):C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe cmTC_edca7.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:m && Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.31.31104 for x64
CMakeCXXCompilerABI.cpp
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_68b59.dir\Debug\\" /Fd"cmTC_68b59.dir\Debug\vc143.pdb" /external:W1 /Gd /TP /errorReport:queue "C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCXXCompilerABI.cpp"
cmTC_68b59.vcxproj -> C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertJNI\dist\CMakeFiles\CMakeTmp\Debug\cmTC_68b59.exe
cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_edca7.dir\Debug\\" /Fd"cmTC_edca7.dir\Debug\vc143.pdb" /external:W1 /Gd /TP /errorReport:queue "C:\Program Files\CMake\share\cmake-3.23\Modules\CMakeCXXCompilerABI.cpp"
cmTC_edca7.vcxproj -> C:\Users\gregd\Documents\Source\autopsy\thirdparty\libheif\HeifConvertJNI\dist\CMakeFiles\CMakeTmp\Debug\cmTC_edca7.exe

View File

@ -93,7 +93,6 @@ C:/Program Files/CMake/share/cmake-3.23/Modules/FindJPEG.cmake
C:/Program Files/CMake/share/cmake-3.23/Modules/FindJava.cmake
C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake
C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageMessage.cmake
C:/Program Files/CMake/share/cmake-3.23/Modules/InstallRequiredSystemLibraries.cmake
C:/Program Files/CMake/share/cmake-3.23/Modules/Internal/CheckSourceCompiles.cmake
C:/Program Files/CMake/share/cmake-3.23/Modules/Internal/FeatureTesting.cmake
C:/Program Files/CMake/share/cmake-3.23/Modules/Platform/Windows-Determine-CXX.cmake
@ -108,13 +107,9 @@ C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/C
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/CMakeFiles/3.23.0-rc2/CMakeCXXCompiler.cmake
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/CMakeFiles/3.23.0-rc2/CMakeRCCompiler.cmake
C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/CMakeFiles/3.23.0-rc2/CMakeSystem.cmake
C:/Users/gregd/vcpkg/installed/x64-windows-static/share/jpeg/vcpkg-cmake-wrapper.cmake
C:/Users/gregd/vcpkg/installed/x64-windows-static/share/libde265/libde265Config-debug.cmake
C:/Users/gregd/vcpkg/installed/x64-windows-static/share/libde265/libde265Config-release.cmake
C:/Users/gregd/vcpkg/installed/x64-windows-static/share/libde265/libde265Config.cmake
C:/Users/gregd/vcpkg/installed/x64-windows-static/share/libde265/libde265ConfigVersion.cmake
C:/Users/gregd/vcpkg/installed/x64-windows-static/share/libheif/libheif-config-debug.cmake
C:/Users/gregd/vcpkg/installed/x64-windows-static/share/libheif/libheif-config-release.cmake
C:/Users/gregd/vcpkg/installed/x64-windows-static/share/libheif/libheif-config-version.cmake
C:/Users/gregd/vcpkg/installed/x64-windows-static/share/libheif/libheif-config.cmake
C:/Users/gregd/vcpkg/installed/x64-windows/share/jpeg/vcpkg-cmake-wrapper.cmake
C:/Users/gregd/vcpkg/installed/x64-windows/share/libheif/libheif-config-debug.cmake
C:/Users/gregd/vcpkg/installed/x64-windows/share/libheif/libheif-config-release.cmake
C:/Users/gregd/vcpkg/installed/x64-windows/share/libheif/libheif-config-version.cmake
C:/Users/gregd/vcpkg/installed/x64-windows/share/libheif/libheif-config.cmake
C:/Users/gregd/vcpkg/scripts/buildsystems/vcpkg.cmake

File diff suppressed because one or more lines are too long

View File

@ -34,31 +34,26 @@ endif()
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
if("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/Debug/heifconvert.lib")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY OPTIONAL FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/Debug/heifconvert.lib")
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ee][Aa][Ss][Ee])$")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/Release/heifconvert.lib")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY OPTIONAL FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/Release/heifconvert.lib")
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Mm][Ii][Nn][Ss][Ii][Zz][Ee][Rr][Ee][Ll])$")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/MinSizeRel/heifconvert.lib")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY OPTIONAL FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/MinSizeRel/heifconvert.lib")
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo])$")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/RelWithDebInfo/heifconvert.lib")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY OPTIONAL FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/RelWithDebInfo/heifconvert.lib")
endif()
endif()
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE PROGRAM FILES
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Redist/MSVC/14.31.31103/x64/Microsoft.VC143.CRT/msvcp140.dll"
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Redist/MSVC/14.31.31103/x64/Microsoft.VC143.CRT/msvcp140_1.dll"
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Redist/MSVC/14.31.31103/x64/Microsoft.VC143.CRT/msvcp140_2.dll"
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Redist/MSVC/14.31.31103/x64/Microsoft.VC143.CRT/msvcp140_atomic_wait.dll"
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Redist/MSVC/14.31.31103/x64/Microsoft.VC143.CRT/msvcp140_codecvt_ids.dll"
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Redist/MSVC/14.31.31103/x64/Microsoft.VC143.CRT/vcruntime140_1.dll"
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Redist/MSVC/14.31.31103/x64/Microsoft.VC143.CRT/vcruntime140.dll"
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Redist/MSVC/14.31.31103/x64/Microsoft.VC143.CRT/concrt140.dll"
)
endif()
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE DIRECTORY FILES "")
if("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Dd][Ee][Bb][Uu][Gg])$")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE SHARED_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/Debug/heifconvert.dll")
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ee][Aa][Ss][Ee])$")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE SHARED_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/Release/heifconvert.dll")
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Mm][Ii][Nn][Ss][Ii][Zz][Ee][Rr][Ee][Ll])$")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE SHARED_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/MinSizeRel/heifconvert.dll")
elseif("${CMAKE_INSTALL_CONFIG_NAME}" MATCHES "^([Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo])$")
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" TYPE SHARED_LIBRARY FILES "C:/Users/gregd/Documents/Source/autopsy/thirdparty/libheif/HeifConvertJNI/dist/RelWithDebInfo/heifconvert.dll")
endif()
endif()
if(CMAKE_INSTALL_COMPONENT)

File diff suppressed because one or more lines are too long

View File

@ -426,9 +426,4 @@ extern "C" {
(JNIEnv* env, jclass cls, jbyteArray byteArr, jstring outputPath) {
return convertToDisk(env, cls, byteArr, outputPath);
}
jint JNIEXPORT JNI_OnLoad_heifconvert(JavaVM* vm, void*)
{
return JNI_VERSION_1_8;
}
}

View File

@ -15,8 +15,6 @@ extern "C" {
JNIEXPORT int JNICALL Java_org_sleuthkit_autopsy_modules_pictureanalyzer_impls_HeifJNI_convertToDisk
(JNIEnv *, jclass, jbyteArray, jstring);
jint JNIEXPORT JNI_OnLoad_heifconvert(JavaVM*, void*);
#ifdef __cplusplus
}
#endif

View File

@ -2,12 +2,12 @@ This project relies heavily on libheif: https://github.com/strukturag/libheif/ a
In order to build this, the project requires vcpkg (directions here: https://vcpkg.io/en/getting-started.html), cmake (https://cmake.org/download/), and visual studio build tools for cmake (I downloaded visual studio 17 2022). This project will require the following vcpkg dependencies:
libde265:x64-windows-static
libheif:x64-windows-static (files in project were grabbed from the libheif examples folder as of v1.12.0)
libjpeg-turbo:x64-windows-static
x265:x64-windows-static
libde265:x64-windows
libheif:x64-windows (files in project were grabbed from the libheif examples folder as of v1.12.0)
libjpeg-turbo:x64-windows
x265:x64-windows
or something other than the suffix :x64-windows for different architectures. The -static suffix is specified so that the vcruntime does not to be dynamically linked (and therefore a dependency)
or something other than the suffix :x64-windows for different architectures.
In order to build,
1) from command line, set directory to HeifConvertJNI\dist

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.