napperley
05/24/2019, 6:13 AMgildor
05/24/2019, 6:14 AMgildor
05/24/2019, 6:15 AMnapperley
05/24/2019, 6:18 AM# Linking the dynamic library doesn't work (curses.h cannot find ncurses/ncurses_dll.h
# even though ncurses_dll.h is in the same directory).
# Using the static library instead.
staticLibraries = libncurses.a
libraryPaths = /home/napperley/ncurses-6.1/lib
napperley
05/24/2019, 6:21 AMfromPreset(presets.linuxX64, 'linux') {
compilations.main.cinterops {
gtk3 {
['/usr/include'].each {
includeDirs "$it/atk-1.0", "$it/gdk-pixbuf-2.0", "$it/cairo", "$it/pango-1.0", "$it/gtk-3.0", "$it/glib-2.0"
}
includeDirs '/usr/lib/x86_64-linux-gnu/glib-2.0/include'
}
}
}
gildor
05/24/2019, 6:22 AMgildor
05/24/2019, 6:22 AMnapperley
05/24/2019, 6:23 AMgildor
05/24/2019, 6:23 AMnapperley
05/24/2019, 6:24 AMnapperley
05/24/2019, 6:25 AMnapperley
05/24/2019, 6:34 AMcompilations.getByName("main") {
@Suppress("UNUSED_VARIABLE") val ncurses by cinterops.creating {
includeDirs("-L${System.getProperty("user.home")}/ncurses-6.1/include/ncurses")
defFile(project.file("cinterop/ncurses.def"))
}
}
napperley
05/24/2019, 6:38 AMgildor
05/24/2019, 6:40 AMgildor
05/24/2019, 6:40 AMnapperley
05/24/2019, 6:41 AMgildor
05/24/2019, 6:41 AMgildor
05/24/2019, 6:41 AMgildor
05/24/2019, 6:42 AMgildor
05/24/2019, 6:42 AMUnfortunately the code completion only does the package nameI have this behavior when C interop was configured in a wrong way, you do not include correct headers, paths etc
napperley
05/24/2019, 6:43 AMgildor
05/24/2019, 6:44 AMgildor
05/24/2019, 6:44 AMgildor
05/24/2019, 6:45 AMnapperley
05/24/2019, 6:58 AMnapperley
05/24/2019, 7:05 AMgildor
05/24/2019, 7:05 AMnapperley
05/24/2019, 7:07 AMgildor
05/24/2019, 7:08 AMnapperley
05/24/2019, 7:08 AMgildor
05/24/2019, 7:09 AMgildor
05/24/2019, 7:09 AMMatej Drobnič
05/25/2019, 6:36 AMMatej Drobnič
05/25/2019, 6:36 AMgildor
05/25/2019, 8:43 AMgildor
05/25/2019, 8:44 AM