Jump to content
  • 0

rAthena compiling on macOS


Question

Posted

Hello,

After the rathena changed to c++11 support I can't successful compile the server on macOS (High Sierra).

Even using gcc-6/g++-6 from homebrew the compilation fails. 

The error is the following:

...
	LD	char-server
Undefined symbols for architecture x86_64:
  "std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find_last_not_of(char, unsigned long) const", referenced from:
      YAML::ScanScalar[abi:cxx11](YAML::Stream&, YAML::ScanScalarParams&) in yaml-cpp.a(scanscalar.o)
...

The undefined symbols error repeats many times.

So I ask if someone have successfully compiled on macOS can tell how this was done?

Thanks!

1 answer to this question

Recommended Posts

  • 2
Posted

I've successfully compiled on macOS High Sierra with the following steps:

  1. Install the latest Xcode from Apple App Store
  2. Install homebrew https://brew.sh
  3. Install the following packages using homebrew on Terminal
    1. brew install mysql
    2. brew install pcre
  4. Go to the server directory on Terminal and type
    1. ./configure CC=clang CXX=clang++ --with-mysql=/usr/local/opt/mysql/bin/mysql_config --with-pcre=/usr/local/opt/pcre/
    2. make clean && make server

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...