Giter VIP home page Giter VIP logo

Comments (7)

barzamin avatar barzamin commented on August 30, 2024 4

i'll look into fixing this over the next few weeks, if nobody else gets around to it.

from libui-rs.

 avatar commented on August 30, 2024 3
CXXFLAGS+=-stdlib=libc++ cargo build

The above seems to be also a working solution.

from libui-rs.

barzamin avatar barzamin commented on August 30, 2024 1

this is an upstream issue in libui (andlabs/libui#422) caused by an even further upstream issue in CMake

from libui-rs.

 avatar commented on August 30, 2024

@hajsf as a temporary workaround you could try doing the following:

Open /Library/Developer/CommandLineTools/Packages/.
Run the package macOS_SDK_headers_for_macOS_10.14.pkg.

Found at https://blog.driftingruby.com/updated-to-mojave/.
I did not personally test it, hence can't confidently say whether it'd work.

from libui-rs.

muellermartin avatar muellermartin commented on August 30, 2024

I have the same issue.

The solution with the package did not work for me as the directory does not exist on my system. This is probably because I'm still running on macOS 10.13.

The other solution (libc++ as standard library in C++ flags) did work though.

from libui-rs.

pomettini avatar pomettini commented on August 30, 2024

I have the same problem on macOS Mojave 10.14.2. That is a shame, I really wanted to use this library for my next projects 😞

from libui-rs.

barzamin avatar barzamin commented on August 30, 2024

and I think I was able to fix it on our side! logic is basically just adding --stdlib=libc++ to CXXFLAGS when TARGET is an apple triple, via some code in build.rs. PR is #59.

from libui-rs.

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.