-
-
Notifications
You must be signed in to change notification settings - Fork 988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building fails on MacOS Mojave due to linker errors #894
Comments
can you try triggereing the build (from the build folder) as:
|
Done, I recreated the whole build folder, still no success, the exact same errors apply. Maybe, the CMake (without --build) output is interesting: (although, I have not used Xcode here)
|
can you try to disable the GL rendersystem (and use GL3+)? I just noticed that our builders do not test GL on OSX. |
Yes, of course. In the cmake output, OpenGL is not in the list of rendering systems anymore, OpenGL 3+ is now the only one, although Cmake says that (By the way, I have also tried to build without Xcode, just using Cmake. This works and confirms the Xcode issue.) But same issues: (need to say that I had the official download version and not the Github version before, so now I again use the Github version)
|
I suspect that it somehow tries to link the 64bit target using 32bit libraries, but I have no idea why.. |
Related but without answer, might be some Xcode bug: https://forums.developer.apple.com/thread/108726 |
our CI builds using xcode10 though. Can you try commenting this line out: (and doing a clean rebuild) |
This does not change much, still the same error of type:
So, to summarize, to reproduce this, I type the following: Being in the core directory, first, if build exists already:
Then:
, which builds in debug. Xcode is in version 10.0 (10A255), by the way. But this seems to be the first and only non-beta release version, anyway. My cmake version is 3.12.2, if this could make some difference. But if this works with your system, I have no clue... maybe, some library dependencies that change something? This is something external to OGRE... |
It is not exactly my system, but rather our CI server. You can take a look here: maybe you see so something different besides it being OSX 10.13.6 |
You do not seem to use the I'm starting to think, this is a CMake issue with the Xcode10-generator. They officially do not support Xcode10 anyways and clearly have issues with the generator: https://gitlab.kitware.com/cmake/cmake/issues/18088 I probably can work without this app bundle for now and will build that way. |
the xcode generator is specified here: another difference is that the CI server is using the older cmake 3.11.3 |
Hmm, ok, however, no xcodeproj files are created, when I use |
same error here 😢
|
also when generate a makefile build tree and build with cmake command
|
Same error, build failed on macOS. Please take a look... |
I currently dont have access to macOS Mojave, so this might take a while. Downgrading to Xcode9 should be a workaround according to the internet. |
ok, can you look out for (CMake)
and (compilation)
if you find both, then the problem is that the export headers are not properly written |
setting |
I've got MacOS High Sierra 10.13.6
|
I finally got ogre to build on macOS High Sierra 10.13.6 with Xcode 10.1. I'm just a weekend coder, so I'm not sure exactly what got things working, but I think a combination of these edits to
and
Then I changed these to get a working application:
Hope this helps the next person trying to get ogre to compile on a recent macOS! |
Finally works with greenermoosel. Appreciate. |
fixed in master |
System Information
Detailled description
I downloaded the latest source today, ran
cmake -GXcode ..
in abuild
subdirectory. Changing the architecture tox86_64
, I built the project. Compiling apparently runs through, but I get linker errors afterwards.Below is the complete log of the linking errors.
Ogre.log
The text was updated successfully, but these errors were encountered: