Jump to content
  • 0

rAthena compiling on macOS


Digos

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   23
  • Joined:  01/30/12
  • Last Seen:  

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!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 2

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   23
  • Joined:  01/30/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...