spierce7
12/28/2017, 1:40 AMBimawa
12/28/2017, 4:10 PMthewoolleyman
12/28/2017, 6:06 PM../gradlew :calculator:compileKonanKotlinArithmeticParserIphone --debug --stacktrace
from the samples/calculator
, I get the following error:
> Task :calculator:compileKonanKotlinArithmeticParserIphone
11:04:52.692 [ERROR] [system.err] error: compilation failed: No such file or directory
11:04:52.692 [ERROR] [system.err]
11:04:52.692 [ERROR] [system.err] * Source files: Parser.kt
11:04:52.692 [ERROR] [system.err] * Compiler version info: Konan: EAP 0.6.0.0 / Kotlin: 1.2.0
11:04:52.692 [ERROR] [system.err] * Output kind: FRAMEWORK
11:04:52.692 [ERROR] [system.err]
11:04:52.692 [ERROR] [system.err] exception: java.lang.Error: No such file or directory
11:04:52.692 [ERROR] [system.err] at org.jetbrains.kotlin.backend.konan.llvm.LlvmUtilsKt.parseBitcodeFile(LlvmUtils.kt:266)
11:04:52.692 [ERROR] [system.err] at org.jetbrains.kotlin.backend.konan.llvm.Runtime.<init>(Runtime.kt:30)
11
...
...
itnoles
12/29/2017, 3:18 AMJorrit
12/30/2017, 5:14 PMJorrit
12/30/2017, 5:22 PMjkbbwr
12/30/2017, 9:52 PM/usr/lib/libpython3.6m.so: error: undefined reference to 'getrandom', version 'GLIBC_2.25'
exception: java.lang.IllegalStateException: The /home/jakob/.konan/dependencies/target-gcc-toolchain-3-linux-x86-64/x86_64-unknown-linux-gnu/bin/ld.gold command returned non-zero exit code: 1.
Using cdef
headers = Python.h
libraryPaths = /usr/include/python3.6m
linkerOpts = -L/usr/lib -lpython3.6m -ldl -lutil -lm -Xlinker -export-dynamic
Guillaume Delorme
12/31/2017, 2:04 PM#define glCreateShader epoxy_glCreateShader
In generated .kt file, epoxy_glCreateShader is present, but not glCreateShader:
var epoxy_glCreateShader: CPointer<CFunction<(GLenum) -> GLuint>>?
get() = interpretPointed<CPointerVar<CFunction<(GLenum) -> GLuint>>>(kniBridge423()).value
set(value) { interpretPointed<CPointerVar<CFunction<(GLenum) -> GLuint>>>(kniBridge423()).value = value }
Here the .def file I used with cinterop :
depends = posix
package = epoxy
headers = epoxy/gl.h epoxy/glx.h
headerFilter = epoxy/**
linkerOpts = -lepoxy
compilerOpts.linux = -I/usr/include
Did you have any idea ?itnoles
12/31/2017, 8:34 PMspierce7
01/02/2018, 5:21 AMSoslan
01/02/2018, 5:33 PMld: warning: ignoring file /Users/admin/Downloads/kotlin-native-master/samples/calculator/build/konan/bin/xcode/test.framework/test, file was built for x86_64 which is not the architecture being linked (arm64): /Users/admin/Downloads/kotlin-native-master/samples/calculator/build/konan/bin/xcode/test.framework/test
Undefined symbols for architecture arm64:
“_OBJC_CLASS_$_Test”, referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ftomassetti
01/02/2018, 5:44 PMchristophsturm
01/02/2018, 7:01 PMnish
01/03/2018, 1:12 AMjo
01/03/2018, 6:02 AMandreasmattsson
01/05/2018, 4:17 PMplatform.posix.usleep
doesn't seem to do anything on Windows/mingw (no errors, no wait, just continues execution immediately)
Is this expected behavior?
On linux (WSL/Ubuntu on Windows) the same code works as expected.alexcouch
01/07/2018, 7:36 AMSam
01/07/2018, 3:42 PMrusshwolf
01/07/2018, 7:55 PMsalomonbrys
01/08/2018, 10:08 AMlinkdata/module_data_flow_graph
differs, so I'm not sure I can manually "merge" two klibs.benny.huo
01/10/2018, 12:46 PMsalomonbrys
01/10/2018, 7:19 PMTristan Caron
01/12/2018, 11:19 AMrwachol
01/12/2018, 2:22 PM> target-sysroot-3-darwin-ios is not available; candidates:
org.jetbrains.kotlin.konan.util.DependencySource$Remote$Internal@59336ce2
Local(path=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk)
Local(path=)
colintheshots
01/13/2018, 2:09 PMalbertgao
01/13/2018, 8:40 PMrootandy
01/15/2018, 12:12 PMkonan.targets = ['iphone', 'iphone_sim']
konanArtifacts {
framework('MyFramework')
}
Simone Civetta
01/17/2018, 12:03 PM#if os(iOS)
// My iOS-only code
#endif
or
#if platform(framework)
// My framework-only code
#endif
stepango
01/18/2018, 4:54 AMaltavir
01/18/2018, 4:19 PMdef
file in src/main/c_interop
and expect to place kotlin files in src/main/kotlin
. Now, I have a few problems.
1) def
file does not accept relative header names. I have to declare absolute ones, which is not convenient. I remember seeing something about it in issues. Are there any fixes?
2) src/main/kotlin
is not marked as a source tree. I can mark it myself in idea module options, but it resets itself after gradle sync.
3) generated interop headers are placed in build directory. I can't understand how to access them without creating a copy in the source tree.
4) IDE does not seem to recognize konan
and kotlinx.cinterop
packages. How can I load those. Can I do it at all?altavir
01/18/2018, 4:19 PMdef
file in src/main/c_interop
and expect to place kotlin files in src/main/kotlin
. Now, I have a few problems.
1) def
file does not accept relative header names. I have to declare absolute ones, which is not convenient. I remember seeing something about it in issues. Are there any fixes?
2) src/main/kotlin
is not marked as a source tree. I can mark it myself in idea module options, but it resets itself after gradle sync.
3) generated interop headers are placed in build directory. I can't understand how to access them without creating a copy in the source tree.
4) IDE does not seem to recognize konan
and kotlinx.cinterop
packages. How can I load those. Can I do it at all?olonho
01/19/2018, 7:27 AMilya.matveev
01/19/2018, 10:28 AMgenerateCMake
gradle task. Please try using CLion and give us feedback on it.