natario1
05/01/2023, 11:18 AMexternal.so
shared library
• A base
kotlin module with cinterop bindings to baseHeader.h
(external.so)
• A derived
kotlin module with cinterop bindings to derivedHeader.h
(external.so). This module depends on the base
module.
What happens is that derived:commonizeCInterop
fails:
Unresolved classifier: some/symbol/from/baseHeader.h
vbsteven
05/01/2023, 1:54 PMderived
configured so it has access to baseHeader.h
?
I don't have this exact setup but I have a similar one with various related libraries and modules that stack on top of each other where the higher level libraries re-use types from the lower level ones. And haven't had this problem.vbsteven
05/01/2023, 1:56 PMnatario1
05/01/2023, 2:23 PMderived
error references the kotlin package name which I chose inside base
. Something like
// base.def
package = platform.example.base
headerFilter = media/**
headers = media/baseHeader.h
// derived.def
package = platform.example.derived
headerFilter = media/**
headers = media/derivedHeader.h
Now, base:commonizeCInterop works fine, but derived:commonizeCInterop gives:
Unresolved classifier: platform/example/*base*/FooThis suggests that
derived
def is OK and base
def is not being processed correctly (yet base:commonizeCInterop works and the other doesn’t)…vbsteven
05/01/2023, 4:21 PMLandry Norris
05/02/2023, 12:38 PMnatario1
05/03/2023, 10:57 AMderived:commonizeCInterop
would care about base cinterop.natario1
05/27/2023, 9:08 PM