mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-19 08:36:37 +00:00
ci : add logging to debug JNA library loading
This commit is contained in:
parent
70f35b186d
commit
f3c9030875
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -1038,7 +1038,7 @@ jobs:
|
||||
models\download-ggml-model.cmd tiny.en
|
||||
cd bindings/java
|
||||
chmod +x ./gradlew
|
||||
./gradlew build
|
||||
./gradlew build --info
|
||||
|
||||
- name: Upload jar
|
||||
uses: actions/upload-artifact@v4
|
||||
|
@ -8,7 +8,21 @@ import io.github.ggerganov.whispercpp.model.WhisperTokenData;
|
||||
import io.github.ggerganov.whispercpp.params.WhisperContextParams;
|
||||
import io.github.ggerganov.whispercpp.params.WhisperFullParams;
|
||||
|
||||
class JnaDebugHelper {
|
||||
static {
|
||||
System.out.println("JNA Library Path: " + System.getProperty("jna.library.path"));
|
||||
System.out.println("Working directory: " + System.getProperty("user.dir"));
|
||||
|
||||
if (System.getProperty("jna.library.path") != null) {
|
||||
java.io.File libraryFile = new java.io.File(System.getProperty("jna.library.path"), System.mapLibraryName("whisper"));
|
||||
System.out.println("Library file exists: " + libraryFile.exists() + " at " + libraryFile.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public interface WhisperCppJnaLibrary extends Library {
|
||||
JnaDebugHelper DEBUG_HELPER = new JnaDebugHelper();
|
||||
|
||||
WhisperCppJnaLibrary instance = Native.load("whisper", WhisperCppJnaLibrary.class);
|
||||
|
||||
String whisper_print_system_info();
|
||||
|
Loading…
x
Reference in New Issue
Block a user