EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   General::General Discussion (https://www.eqemulator.org/forums/forumdisplay.php?f=586)
-   -   EQEmu on Mac OSX? (https://www.eqemulator.org/forums/showthread.php?t=37314)

demonstar55 09-26-2013 07:03 PM

Our current min compiler targets are VS2010 and GCC 4.5 if I recall correctly. If OSX doesn't support GCC 4.5 you're shit out of luck. (Actually the main reason we chose that version is because of nullptr, but that can be fixed with a define since older GCCs had the same feature defined as something else, but no one has gotten around to fixing that)

Corysia 09-27-2013 11:34 AM

Quote:

Originally Posted by Vexyl (Post 224448)
I think it's time to update your compiler.

Unlike Linux and Cygwin under Windows, Apple is slow to adopt. This system is actually "up to date" as far as Apple is concerned.

I can update it using Mac Ports to get to libgcc @4.8.1_3 or even libgcc-devel @4.9-20130915, but I hesitate to do so. It complicates the steps to the guide.

On the other hand, the audience for this isn't my normal one. I usually have to write software in such a way I think my mom can install without having to call me and then I spend an hour walking her thru it over the phone.

lerxst2112 09-27-2013 01:18 PM

clang should be relatively up to date depending on which version of Xcode you have installed.

demonstar55 09-27-2013 01:38 PM

Running export CXX="clang++" then the normal cmake stuff and make should set the compiler to clang, but this fails to compile, so at the moment it's impossible to build EQEmu with clang (although the errors it spit out seem fixable so far)

edit: nevermind, the errors seem to be in PERL header files, not that easy :P

edit: also fails with just LUA in the LUA header files, there might be a flag to ignore those errors maybe?

Corysia 09-27-2013 02:23 PM

Quote:

Originally Posted by lerxst2112 (Post 224465)
clang should be relatively up to date depending on which version of Xcode you have installed.

This has Xcode 5 on it.

I've gone ahead and installed the Mac Ports version of gcc 4.8. After configuring cmake to point to the right dylibs for mysql and pointing the compilers to /opt/local, things chug along nicely up to shared_memory with only one source change. I needed to redefine MSG_NOSIGNAL to SO_NOSIGPIPE in common/TCPConnection.cpp (just like the FREEBSD change to map it to 0).

Shared memory is asking for librt.a, which Macs don't have. I've fixed that by adding an OS test in the CMakeList.txt files.

At this point, these compile:
common
shared_memory
world
zone
ucs
queryserv
eqlaunch
azone_common
awater
azone
listobj
cppunit
tests


loginserver needs libEQEmuAuthCrypto.a, which I don't know where to find the source for.

luabind doesn't compile with a long list of errors I haven't looked at yet.


All times are GMT -4. The time now is 12:45 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.