Code Monkey home page Code Monkey logo

Comments (7)

dekimir avatar dekimir commented on May 18, 2024

Thanks, @Whiteseeker for reporting this. We don't build regularly on MacOS, so support for it will be sporadic.

This looks like it's caused by the GNU-specific ar flag -M in the combine_static_lib function (defined in cmake/utils.cmake). If you can figure out how to achieve the same operation in a portable manner, you can fix this. Alternatively, if you don't care about the libshaderc_combined target, you can modify line 27 of libshaderc/CMakeLists.txt to skip this step for both Windows and MacOS.

from shaderc.

sistr22 avatar sistr22 commented on May 18, 2024

Thx for the quick fix !
I just did: if (NOT "${MSVC}" AND NOT APPLE) at line 27
There is definitely a way to merge libraries in a cross platform way like that:
ar -rcT libmerged.a lib1.a lib2.a
But I I'm not super familliar with cmake.
Again thx !

from shaderc.

dekimir avatar dekimir commented on May 18, 2024

Glad this worked for you. Would you consider contributing your fix to the repo?

from shaderc.

sistr22 avatar sistr22 commented on May 18, 2024

You mean ... making a pull request for one line change ? I would gladly
ofc, I'll do that.

Thx

Damien

On Tue, 1 Dec 2015 at 16:35 Dejan Mircevski [email protected]
wrote:

Glad this worked for you. Would you consider contributing your fix to the
repo?


Reply to this email directly or view it on GitHub
#47 (comment).

from shaderc.

dekimir avatar dekimir commented on May 18, 2024

Prolly more than one line, as you should also add yourself to CONTRIBUTORS. ;)

from shaderc.

sistr22 avatar sistr22 commented on May 18, 2024

PR submitted! It took some time but at least it's a "real" fix, it also
create the shared lib on mac and pass the test.
Currently it only fail the last test on mac:

14/14 Test #14: glslc_tests ......................***Failed 0.11 sec

Thx !

On Tue, 1 Dec 2015 at 17:50 Dejan Mircevski [email protected]
wrote:

Prolly more than one line, as you should also add yourself to
CONTRIBUTORS. ;)


Reply to this email directly or view it on GitHub
#47 (comment).

from shaderc.

sistr22 avatar sistr22 commented on May 18, 2024

Closing

from shaderc.

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.