question about cinterop: i followed this guide to...
# kotlin-native
e
question about cinterop: i followed this guide to setup curl for native. https://kotlinlang.org/docs/tutorials/native/curl.html now i want to do the same for gumbo-parser : https://github.com/google/gumbo-parser this is the contents of the interop.def file:
Copy code
headers = gumbo.h curl/curl.h
headerFilter = gumbo/* curl/*

compilerOpts.linux = -I/usr/include -I/usr/include/x86_64-linux-gnu -I/usr/local/Cellar/gumbo-parser/0.10.1/include
compilerOpts.osx = -I/usr/include -I/usr/include/x86_64-linux-gnu -I/usr/local/Cellar/gumbo-parser/0.10.1/include
linkerOpts.osx = -L/opt/local/lib -L/usr/local/opt/curl/lib -lcurl -L/usr/local/Cellar/gumbo-parser/0.10.1/lib -lgumbo
linkerOpts.linux = -L/usr/lib/x86_64-linux-gnu -lcurl
there are no compile errors. curl interops are still generated. but there is nothing for gumbo. this is all using the gradle plugin in intellij for macosx64. since this is not outputting anything for gumbo parser, i did it manually:
Copy code
cinterop -def interop.def -o gumbo
and then:
Copy code
klib contents gumbo
and this also outputs nothing. if i try it manually for curl it does output all the info. why is there nothing happening for gumbo parser? thanks in advance!
m
Because your headerFilter is wrong Try
headerFilter = gumbo.h curl/*
e
Thank you so much! It works @msink