such error appear
# multiplatform
m
such error appear
d
Which platform are you building on?
m
@Dominaezzz on arch based linux(more precisely manjaro)
a
Hello! Can you please provide an additional info? Have you installed the
freeglut 3.0.0-2
package correctly?
m
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
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
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!