Comments (12)
/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.
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.
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.
Okay, so does it work with 2.8.11 or not?
from magnum.
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.
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.
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.
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.
== 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.
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.
The patch worked!!! thanks!
from magnum.
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)
- MacOS: GlfwApplication.cpp::currentGlfwModifiers wrongly detects modifiers in mouseMoveEvent HOT 7
- magnum example code can't find SDL2 file HOT 2
- CorradeMain.lib - unresolved external symbol main HOT 3
- Provide a passthrough access to image data from scene importers HOT 1
- Update vcpkg packages to include EmscriptenApplication on Emscripten HOT 2
- Failing to link Magnum::Math? HOT 3
- few compile warnings HOT 1
- How to point to a local installation of `corrade` without using the bootstrap project? HOT 3
- undefined symbol: flextGLInit HOT 4
- Image rendered in gray since 1847c72 HOT 18
- Emscripten 3.1.21+ crashes EmscriptenApplication: "AsciiToString is not defined" HOT 4
- How to build from source on MSYS2 MINGW64? HOT 1
- keyReleaseEvent not triggered after printscreen on OSX HOT 6
- Conversion from CubicHermite to Bezier is wrong
- Mixing with raw openGL calls and Context::current().resetState() HOT 3
- C Bindings HOT 5
- WebGPU backend HOT 2
- Parallel rendering with glb files HOT 5
- Conflict with near and far Macros When Including WinSock2.h After Matrix4.h HOT 2
- emsdk compile error: typedef redefinition with different types HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magnum.