Code Monkey home page Code Monkey logo

Comments (12)

mosra avatar mosra commented on May 3, 2024

/opt/local/bin/cmake -E cmake_symlink_library /Users/michaelchung/CodeWorkSpaces/XCodeWorkSpace/Projects/magnum/build/src/Debug/libMagnum.dylib /Users/michaelchung/CodeWorkSpaces/XCodeWorkSpace/Projects/magnum/build/src/Debug/libMagnum.dylib /Users/michaelchung/CodeWorkSpaces/XCodeWorkSpace/Projects/magnum/build/src/Debug/libMagnum.dylib

This looks like CMake is trying to symlink a file to itself, but I have no idea why it would try to do that. It then complains about nonexistent /Users/michaelchung/CodeWorkSpaces/XCodeWorkSpace/Projects/magnum/build/src/Debug/libMagnum.dylib, thus there is really something wrong with that file.

Google search did not found anything particularly helpful, most of the issues related to cmake_symlink_library were related either to insufficient permissions (which is not the case here) or to incapable filesystem. Is it possible that you have a filesystem which doesn't support symlinks (some shared drive, FAT or similar)?

In case this is really a problem with CMake creating circular symlink (which would be shameful), the workaround would be to set some library version (so it would then link libMagnum.dylib.0.1.0 to libMagnum.dylib.0 to libMagnum.dylib), but I hope this is not needed.

from magnum.

mosra avatar mosra commented on May 3, 2024

I tried to dig deeper and it seems that this might actually be a bug in CMake 2.8.12, which added shared library versioning for XCode. Could you please try building with CMake 2.8.11, if possible?

from magnum.

ArEnSc avatar ArEnSc commented on May 3, 2024

I will try it out and hopefully not run into the xcode5 support issues that occurred with version 11 or 10, and let you know.

from magnum.

mosra avatar mosra commented on May 3, 2024

Okay, so does it work with 2.8.11 or not?

from magnum.

ArEnSc avatar ArEnSc commented on May 3, 2024

I am going to test this sometime today. It is hard to    test this because darwin ports only has 2.8.10.1 and 2.8.10.2 and then 2.8.12.0 I am going to look for the binaries sometime today when I have a stable internet connection. From: Vladimír VondrušSent: Thursday, December 26, 2013 12:21 PMTo: mosra/magnumReply To: mosra/magnumCc: ArEnScSubject: Re: [magnum] Cmake Xcode generated project fails to build using most recent cmake 2.8.12.0 (#37)Okay, so does it work with 2.8.11 or not?

—Reply to this email directly or view it on GitHub.

from magnum.

mosra avatar mosra commented on May 3, 2024

No need to rush :-) Thank you very much for looking into this.

Anyway, I'll keep this bug open until this CMake bug is fixed or worked around.

from magnum.

ArEnSc avatar ArEnSc commented on May 3, 2024

I have tried 2.8.11.2 It still fails in the exact same way. I guess ill be using sublime text 2 to edit.

from magnum.

mosra avatar mosra commented on May 3, 2024

Can you please try this patch if it fixes the issue? https://gist.github.com/mosra/2d133eb5ced36f4f92ce (apply with git apply xcode.patch). I hope this works, since the same thing is done in Corrade and it appears to be working flawlessly with XCode.

If the patch helps, I'll commit it to master and mark this issue as resolved (although this is only a workaround and the CMake bug still needs to be fixed).

from magnum.

ArEnSc avatar ArEnSc commented on May 3, 2024

== BUILD TARGET Magnum OF PROJECT Magnum WITH THE DEFAULT CONFIGURATION (Debug) ===

Check dependencies

PhaseScriptExecution CMake\ PostBuild\ Rules build/src/Magnum.build/Debug/Magnum.build/Script-FF41B1CE2D984D36819F1BCA.sh
cd /Users/michaelchung/CodeWorkSpaces/XCodeWorkSpace/Projects/magnum
/bin/sh -c /Users/michaelchung/CodeWorkSpaces/XCodeWorkSpace/Projects/magnum/build/src/Magnum.build/Debug/Magnum.build/Script-FF41B1CE2D984D36819F1BCA.sh
echo "Creating symlinks"
Creating symlinks
/Applications/CMake\ 2.8-12.app/Contents/bin/cmake -E cmake_symlink_library /Users/michaelchung/CodeWorkSpaces/XCodeWorkSpace/Projects/magnum/build/src/Debug/libMagnum.0.1.dylib /Users/michaelchung/CodeWorkSpaces/XCodeWorkSpace/Projects/magnum/build/src/Debug/libMagnum.0.dylib /Users/michaelchung/CodeWorkSpaces/XCodeWorkSpace/Projects/magnum/build/src/Debug/libMagnum.dylib
CMake Error: cmake_symlink_library: System Error: No such file or directory
CMake Error: cmake_symlink_library: System Error: No such file or directory
make: *** [Magnum_buildpart_0] Error 1

** BUILD FAILED **

The following build commands failed:
PhaseScriptExecution CMake\ PostBuild\ Rules build/src/Magnum.build/Debug/Magnum.build/Script-FF41B1CE2D984D36819F1BCA.sh
(1 failure)

Different issue but were getting somewhere.

from magnum.

mosra avatar mosra commented on May 3, 2024

Huh, okay, so the bug is somewhere else than I thought. It looks to me that CMake isn't able to properly generate build commands for Magnum library (which is composed only of OBJECT libraries and not any source files) and thus the library file is not create at all. Could you please try this patch instead? https://gist.github.com/mosra/68e26fdb8d1cd721f807 This is only a dirty hack and I'll fix work around the issue properly, if it works. Thanks again.

from magnum.

ArEnSc avatar ArEnSc commented on May 3, 2024

The patch worked!!! thanks!

from magnum.

mosra avatar mosra commented on May 3, 2024

Glad the issue is finally solved. The proper fix is in 24f7de8, please reopen if you still encounter the problem.

from magnum.

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.