Hi there,
Tried again with Sierra, but to no avail.
Eldarion wrote:Hi, Just ran into the same issue with OSX 10.11.6 (El Capitan). This is what worked for me:
- upgraded using MacPorts
- zlib, libpng, xz (contains liblzma), lzo2, freetype, icu
I tried to, and was able to upgrade most of them (not all). The activated versions of these ports I'm using are the following:
Code: Select all
zlib @1.2.8_0+universal
libpng @1.4.8_0+universal
xz @5.0.5_0+universal
lzo2 @2.06_0
freetype @2.5.3_1+universal
icu @51.2_1
When I tried to upgrade "icu", I got an error upgrading "python27": and when I explicitly tried to upgrade python27, I got an error upgrading "librsvg" (all those dependencies are so annoying!)
Also, the "libpng" I'm using is not the latest version: I had to revert back to 1.4, because version 1.6 caused my GrfCodec to crash (I need grfcodec to code my set: can't do without it).
Eldarion wrote:
- configured with
- .configure LDFLAGS="-stdlib=libstdc++"
When I do this, I still get the same "clang" errors as in my first post.
Eldarion wrote:
- ran make
Did that, and I got a lot of warnings: plus, a linking error at the end. Attached is the text of the linking error.
Eldarion wrote:
Regarding all the "unused local typedef" warnings: It was mentioned on stackexchange that -Wunused-local-typedef is part of -Wall. When configuring with "-Wno-unused-local-typedef" the option is placed before -Wall so the latter turns it back on.
Regarding your clang problem: If, what I wrote before, works for you, don't worry about the clang errors during configure. It complains about an option that gcc has and clang doesn't. If you really want to mess about with configure options, put the CC= after .configure. On OSX 10.11.6 clang is installed in /usr/bin. MacPorts stuff gets installed in /opt/local by default.
Could you please elaborate this a bit? I'm not sure if I get what you're saying...
On another note, I also tried to include the patches in this page:
https://bugs.openttd.org/task/6380
To apply those patches, I typed "patch -p0 < patchname.diff" in the Terminal window (as instructed
here).
The message I get when trying to apply either of these patches was the following:
Code: Select all
patching file src/video/cocoa/wnd_quartz.mm
Hunk #1 FAILED at 110.
1 out of 1 hunk FAILED -- saving rejects to file src/video/cocoa/wnd_quartz.mm.rej
and
Code: Select all
patching file src/music/cocoa_m.cpp
Hunk #1 FAILED at 67.
1 out of 1 hunk FAILED -- saving rejects to file src/music/cocoa_m.cpp.rej
Any ideas?