Closed sistr22 closed 8 years ago
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.
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 !
Glad this worked for you. Would you consider contributing your fix to the repo?
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 notifications@github.com 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 https://github.com/google/shaderc/issues/47#issuecomment-161024194.
Prolly more than one line, as you should also add yourself to CONTRIBUTORS. ;)
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 notifications@github.com wrote:
Prolly more than one line, as you should also add yourself to CONTRIBUTORS. ;)
— Reply to this email directly or view it on GitHub https://github.com/google/shaderc/issues/47#issuecomment-161045954.
Closing
While trying to compile on MacOS it works fine at first but stopped near the end, during linking:
I haven't found a work around yet (And I've never used ninja ...)