-
Notifications
You must be signed in to change notification settings - Fork 305
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
macOS >=10.10 compilation issues #3161
Comments
Confirmed working, thanks! Re:compiling instructions/RawPedia, just for completeness sake:
|
Thank you @ion12, I made the changes. Working on libiconv now... |
Patch for libiconv 1.14 added to tools/osx/ |
@ion12 do OS X builders still need to download libiconv manually and patch it manually? |
@Beep6581
Is there any chance this problem can be resolved within RT source code, or is there a need to report a bug with Macports or libiconv devs?
Personally I would remove the reference to the llvm website all together, I find it confusing and if Macports' Clang works it's redundant. Currently with clang-3.7+openmp there is no need to manually add the -DCMAKE_C_FLAGS and -DCMAKE_CXX_FLAGS, Macports takes care of that internally. I think the instructions could still be improved a little, If you leave the issue open, I would love help with it next weekend when I have time again. |
Done.
I don't think there's much point in trying unstable compiler versions. |
Good catch. Compiler flags must be changed to:
Otherwise Macports will use the system Clang to compile. I also added:
are redundant as these options seem to be forced ON anyway for windows and mac in "/RawTherapee/CMakeLists.txt" |
Agreed on all points, changes applied. @heckflosse @adamreichold have you any idea whether this libiconv problem is something we can work around on our end? |
@Beep6581 From looking at the source (which does seem to have changed in |
@Beep6581 copied patch instructions from RawPedia verbatim into a shell script. Confirmed working. Also confirmed I understand that you want to keep things simple but I would at least copy
and
from the linux instructions, otherwise it's hard to make sense of the complete process. If it was the first time I've ever tried to compile something I think I would find it frustrating. Won't try to test unstable Clang, but still want to try compiling again on OS X 10.6, as well as testing the gtk3 branch. In the meantime, latest builds updated here |
I'll make the changes you propose later today, after work. About 10.6, RT now requires GCC minimum 4.9. I doubt OS X 10.6's CLANG/LLVM compiler conforms to that. I'm saying this so you don't waste time troubleshooting if the build fails. |
The final RT builds I was making last year on 10.6 and 10.8 were already using Macports' gcc-4.9, so I'm curious to see if it still works. |
I changed my mind, I won't duplicate the same text because that snowballs into something hard to maintain when changes need to be made. Instead, I linked to specific sections of the Linux article in key places of the OS X article. Now its easy to follow the complete process. Closing. |
Always found compiling on 10.6 and 10.8 with Macports very smooth.
First time trying to compile on 10.11, followed instruction on RawPedia.
The only real difference it seemed was that Clang needed to be compiled manually for openmp support.
Tried to compile first with clang 3.9 + libopenmp from svn trunk. Failed.
Installed Clang from Macports Clang 3.7 as it seemed it has openmp support as well using
sudo port install clang-3.7 +openmp.
Failed at first as well, until I realized that the patch for RawTherapee/rtengine/ipsharpen.cc still needs to be done manually, as described in
http://rawtherapee.com/oldforum/viewtopic.php?p=44395#p44395
(The code has changed a bit since then, it's on line 270 right now).
Build succeeded.
Tried again with clang from svn but still no go.
libiconv.2.dylib still needs to be manually patched as well, (otherwise RT will crash on startup without even reaching the splash screen), as described here:
http://rawtherapee.com/oldforum/viewtopic.php?f=10&t=6307#p44103
There are also a lot of warnings while compiling, which I'm guessing are Clang related incompatibilities, but it's above my head.
I'm not sure if there's any point in submitting error logs, because it seems like everything I've done to compile, and all the issues I've run up against have already been reported, it's just that it's scattered across different github issues and old forum posts.
I would be nice to update RawPedia to install "clang-3.7 +openmp" from Macports and maybe RawTherapee/rtengine/ipsharpen.cc can be patched?
seems like it was supposed to be anyway in issue 3003 but it never happened.
I don't know if libiconv could be downloaded, patched, compiled and bundled with RT (instead of the regular Macports version which causes RT to crash) by a script in the RT source itself? perhaps in /Users/Yonatan/builds/rtbuild/RawTherapee/rtdata/osx/macosx_bundle.sh ?
but if not it should be mentioned on RawPedia how to manually do it.
Willing to help out but will probably not have any more time until next weekend
In the meantime, release and debug builds done today, OSX_10.11_64_4.2.677
http://filebin.net/yhtmmcq79o
The text was updated successfully, but these errors were encountered: