ktcc icon indicating copy to clipboard operation
ktcc copied to clipboard

Samples show errors in the output

Open tethridge opened this issue 2 years ago • 1 comments

I'm hoping to use ktcc to convert an entire c-library (Opus) to Kotlin. I've downloaded the ktcc code and then ran the example commands to generate Kotlin from the c sample files. I'm seeing errors at the top of the output, which makes me wonder if there is something wrong with my configuration or a bug.

I've attached the full output of the commands I ran for clarity, but the errors look like this: // ERROR: ProgramMessage(message=Can't assign CFunction<(Int, Int) -> Int> to CFunction<(Int, Int) -> Int> of parameter 0 of icall2, token=CToken(str=), pos=4555, row=267, lineStart=4493), pos=1091, marker=Marker(originalPos=515, originalRow1=156, translatedFile=samples/simple.c, translatedRow1=4), level=ERROR) // ERROR: ProgramMessage(message=Can't assign CFunction<(Int, Int) -> Int> to CFunction<(Int, Int) -> Int> of parameter 1 of icall2, token=CToken(str=), pos=4555, row=267, lineStart=4493), pos=1091, marker=Marker(originalPos=515, originalRow1=156, translatedFile=samples/simple.c, translatedRow1=4), level=ERROR)

Should I be concerned with these errors?

Here is the complete output. I'm using a macbook pro with an m1 chip. ktcc-simple.c-sample-output.txt

tethridge avatar Aug 16 '23 18:08 tethridge

Not maintained anymore, since I did it for KorGE and now in KorGE it is possible to load WASM modules directly. In the specific case of OPUS, there is a pure Java->Kotlin port here: https://github.com/korlibs/korge-audio-formats/tree/main/korau-opus

soywiz avatar Nov 03 '23 11:11 soywiz