Code Monkey home page Code Monkey logo

Comments (3)

msink avatar msink commented on June 10, 2024 1

Well, somehow solved issue above - linux and macos libs were dowloaded from CI artifacts, windows built locally by clang version bundled with Kotlin/Native.
https://github.com/msink/kotlin-libui/tree/libui-ng

Seems to work, now can add new functionality to bindings.

from kotlin-libui.

msink avatar msink commented on June 10, 2024

Sure, when/if it will have significant advantages over andlabs, for now I do not see any.

from kotlin-libui.

msink avatar msink commented on June 10, 2024

Just tried migratiing to libui-ng, and failed on first step - on windows linking failed:

lld-link: error: undefined symbol: std::__throw_bad_array_new_length()
>>> referenced by F:/msys64/mingw64/include/c++/12.1.0/bits\new_allocator.h:125
>>>               libui.a(windows_box.cpp.obj):(std::__new_allocator<boxChild>::allocate(unsigned long long, void const*))
>>> referenced by F:/msys64/mingw64/include/c++/12.1.0/bits\new_allocator.h:125
>>>               libui.a(windows_form.cpp.obj):(std::__new_allocator<formChild>::allocate(unsigned long long, void const*))
>>> referenced by F:/msys64/mingw64/include/c++/12.1.0/bits\new_allocator.h:125
>>>               libui.a(windows_grid.cpp.obj):(std::__new_allocator<gridChild*>::allocate(unsigned long long, void const*))
>>> referenced 18 more times
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Googling and asking JetBrains team led me to
https://youtrack.jetbrains.com/issue/KT-51975/Native-lld-link-error-undefined-symbol-stdthrowbadarraynewlength

It is Kotlin/Native compiler bug, and for now and in near future there isn't easy fix for that.
The only known workaround is compiling libui by gcc 9.x, but I do not know how to do that on CI.

from kotlin-libui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.