https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Michał Kalinowski

07/17/2019, 7:56 PM
such error appear
d

Dominaezzz

07/17/2019, 9:45 PM
Which platform are you building on?
m

Michał Kalinowski

07/18/2019, 5:03 AM
@Dominaezzz on arch based linux(more precisely manjaro)
a

Artyom Degtyarev [JB]

07/18/2019, 7:13 AM
Hello! Can you please provide an additional info? Have you installed the
freeglut 3.0.0-2
package correctly?
m

Michał Kalinowski

07/18/2019, 7:24 AM
yep I have it
also I added to
kotlin-native/samples/settings.gradle.kts
one line like a
include(":opengl")
because otherwise I get error
Project directory ... is not part of the build defined by settings file
a

Artyom Degtyarev [JB]

07/18/2019, 7:45 AM
Can you try to compile the code directly by the command-line tool
kotlinc-native -e sample.opengl.main OpenGlTeapot.kt
?
Oh, I see. Currently, there is no openGL platform library. You got to provide interoperability by yourself, either using
cinterop
tool manually or adding cinterop task to the gradle script, like one you can see in the
gtk
or
gitchurn
samples.
m

Michał Kalinowski

07/18/2019, 8:22 AM
I will try that after work, and let you know if it works
@Artyom Degtyarev [JB] it works!
🎉 1
to achieve it I maked 3 def files for
glew
glfw
and
gl
itself, and then add them to
cinterops.creating
in
build.gradle.kts
thanks for help!
3 Views