napperley
04/12/2021, 4:38 AMException in thread "main" java.lang.Error: /usr/include/jpeglib.h:792:3: error: unknown type name 'size_t'
Below are the contents of the def file:
headers = jpeglib.h
linkerOpts = -ljpeg
linkerOpts.linux_x64 = -L/usr/lib/x86_64-linux-gnu
The following include paths are used in the build file: "/usr/include", "/usr/include/x86_64-linux-gnu"
napperley
04/12/2021, 4:40 AMJoakimForslund
04/12/2021, 1:20 PMstddef.h
before jpeglib.h ?napperley
04/12/2021, 11:05 PMException in thread "main" java.lang.Error: /usr/include/jpeglib.h:916:52: error: unknown type name 'FILE'
napperley
04/12/2021, 11:06 PMnapperley
04/13/2021, 1:49 AM// ...
cinterops.create("libjpeg") {
val baseDir = "$homeDir/libjpeg_turbo-2.0.6/"
includeDirs("$baseDir/include")
extraOpts = listOf("-libraryPath", "$baseDir/lib/libjpeg.a")
}
// ...
The def file only contains this single line: headers = jpeglib.h
Unfortunately this method doesn't work, and the same error appears: Exception in thread "main" java.lang.Error: /home/napperley/libjpeg_turbo-2.0.6/include/jpeglib.h:792:3: error: unknown type name 'size_t'
JoakimForslund
04/13/2021, 5:03 AMJoakimForslund
04/13/2021, 5:03 AMstdio.h
JoakimForslund
04/13/2021, 5:04 AMJoakimForslund
04/13/2021, 5:08 AMJoakimForslund
04/13/2021, 5:09 AMnapperley
04/13/2021, 9:41 PMheaders = stdio.h stdlib.h jpeglib.h
headerFilter = jpeglib.h
Hopefully only the API in jpeglib.h is exposed/indexed.