Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add MingwX64 (Windows) support #924

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

xolider
Copy link

@xolider xolider commented May 14, 2024

This PR adds support for Windows (MingwX64).
It uses LLVM (Clang) for compiling Skia rather than MSVC. To successfully build the mingwX64 target, you need to have LLVM installed and the "bin" folder in your PATH.

This is a work in progress. At this writing time, it successfully builds native bridge and link it to a static .lib library

If you have any comments or ideas to make it stable, please feel free to leave them here :)

I know there is an other opened PR for this goal, but it seems to be out-of-date and not maintained anymore

UPDATE: the compileKotlinMingwX64 task now completes successfully

@xolider
Copy link
Author

xolider commented May 14, 2024

To do:

  • Implement the Skia layer
  • Implement the clipboard logic
  • Implement the cursor selector
  • Implement the sample app - I am currently stuck at this step when trying to compile a skeleton implementation. I have the above error

image

@Syrou
Copy link

Syrou commented Jun 6, 2024

Looking forward to see this added

@xolider
Copy link
Author

xolider commented Jun 6, 2024

Looking forward to see this added

This error may due to the Skia's compilation method. Maybe the LLVM solution is not the right one. I would try to compile with MSYS2 Mingw64 to get rid of MSVC, but that means no access to Win32 API. I currently run out of time with my current job to check that

An another possible thing is that the Konan LLVM version is too old. I also tried to compile for linuxX64 and had issues with the provided libc library that was too old comparing my host's one, and lead to incompatibilities issues. As far is I heard, Jetbrains plan to bump LLVM/GCC versions with the next Kotlin 2 compiler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants