https://kotlinlang.org logo
j

Jolas

12/31/2020, 1:15 PM
I’m trying to build KMP project on a windows machine and getting this error
Copy code
C:\Users\vtouch\.konan\dependencies\msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1/bin/clang++ command returned non-zero exit code: 1.
output:
C:\Users\vtouch\.konan\dependencies\msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1\bin\ld: cannot find -lsqlite3
C:\Users\vtouch\.konan\dependencies\msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1\bin\ld: cannot find -lcurl
Can someone please help resolving this issue. I am nee to windows dev environment.
@aleksey.tomin I saw that you were working with KMP on windows os. Can you help me solve this issue ?
a

aleksey.tomin

01/01/2021, 5:37 AM
Can I look at the project or the gradle build file?
j

Jolas

01/01/2021, 5:44 AM
@aleksey.tomin sure. Here it is https://github.com/jolasjoe/newsy-core.
a

aleksey.tomin

01/01/2021, 6:00 AM
You should install
curl
and
sqlite
in msys something like
c:\msys64\usr\bin\pacman --noconfirm -S mingw-w64-x86_64-curl
I can’t try to do something on windows until January, 11 - only read the code.
j

Jolas

01/01/2021, 6:47 AM
Oh. Thanks @aleksey.tomin. I’ll try these out and get back.
pacman --noconfirm -S mingw-w64-x86_64-curl
and
pacman --noconfirm -S mingw-w64-x86_64-sqlite3
fixed the issue. I was trying
pacman --noconfirm -S curl
and
pacman --noconfirm -S sqlite3
previously which didn't solve the issue.
Thanks @aleksey.tomin
👍 1
7 Views