Adam S
08/16/2023, 7:14 PM~\.konan\dependencies\msys2-mingw-w64-x86_64-2\bin\g++.exe
, but then I get this error:
cpp.exe: fatal error: cannot execute 'cc1plus': CreateProcess: No such file or directory
I was able to compile and use this library on a Mac using Gradle's C++ plugin, but now when I try on a Windows machine I get these errors, which is pretty disappointing. I was hoping to be able to use the library on all platforms.Oleg Yukhnevich
08/16/2023, 8:08 PMrun_conan
more info here: https://github.com/JetBrains/kotlin/blob/master/kotlin-native/HACKING.md#running-clang-the-same-way-kotlinnative-compiler-doesAdam S
08/17/2023, 7:43 AMAdam S
08/18/2023, 8:02 AM.a
library...Oleg Yukhnevich
08/18/2023, 8:16 AMskiko
builds .a
files (but there are a lot of logic there, and I don’t really remember where it happens)
you can also use run_konan
for this: ./run_konan llvm llvm-ar macos_x64
- llvm-ar is used to create .a
library - but Im not fully sure if it will work regarding cross compilingAdam S
08/18/2023, 8:21 AMAdam S
08/18/2023, 8:23 AMOleg Yukhnevich
08/18/2023, 8:24 AMllvm-ar
can not be used 🙂Adam S
08/18/2023, 8:25 AMAdam S
08/18/2023, 8:26 AMOleg Yukhnevich
08/18/2023, 8:27 AMAdam S
08/18/2023, 8:28 AMrun_konan llvm llvm-ar mingw_x64
it doesn't seem to recognise the args I've provided and just prints usage instructions
D:\Users\Adam\.konan\dependencies\llvm-11.1.0-windows-x64-essentials/bin/llvm-ar mingw_x64 @args
OVERVIEW: LLVM Archiver
USAGE: llvm-ar [options] [-]<operation>[modifiers] [relpos] [count] <archive> [files]
llvm-ar -M [<mri-script]
OPTIONS:
--format - archive format to create
=default - default
...
Adam S
08/18/2023, 8:29 AMI don’t use windows for a long time nowme neither! I was able to compile Jolt on Mac and Linux a few weeks ago.
Adam S
08/18/2023, 8:31 AM./run_konan llvm llvm-ar
(not ./run_konan llvm llvm-ar mingw_x64
)Oleg Yukhnevich
08/18/2023, 8:33 AMAdam S
08/18/2023, 9:43 AMOleg Yukhnevich
08/18/2023, 9:45 AMAdam S
08/18/2023, 9:46 AMOleg Yukhnevich
08/18/2023, 9:48 AMAdam S
08/18/2023, 10:18 AMAdam S
08/18/2023, 10:18 AMAdam S
08/18/2023, 10:48 AMAdam S
08/18/2023, 10:52 AMOleg Yukhnevich
08/18/2023, 11:40 AM