atsushieno / augene-ng

MML + MIDI + Tracktion Engine XML manipulation tool for real production
GNU General Public License v3.0
9 stars 2 forks source link

native: augene build fails for static linking: undefined reference to ksp-generated classes #11

Closed atsushieno closed 2 years ago

atsushieno commented 2 years ago

When native build is enabled in both kotractive-project (considering that https://github.com/atsushieno/augene-ng/issues/5 is gone), native build still fails due to:

/sources/ktmidi/augene-ng/kotractive-project/kotractive/build/generated/ksp/nativeMain/kotlin/dev/atsushieno/kotractive/MetaTypeDataTypes.kt:10: error: undefined reference to 'kfun:dev.atsushieno.kotractive.DataTypes#<get-dataType>(){}dev.atsushieno.kotractive.DataType'

Build failure repro on native-issue-2 branch: https://github.com/atsushieno/augene-ng/runs/3775952797?check_suite_focus=true

Kotlin Slack community had no solution to this. https://kotlinlang.slack.com/archives/C013BA8EQSE/p1631002492073100

atsushieno commented 2 years ago

8ae5f84 fixed it (the commit message was wrong, the actual issue that the commit fixed was this one).