Open djekl opened 6 years ago
I am having the same problem :(
OS: Macos High Sierra 10.13.4 (also happens in Macos Sierra)
I am getting this :(
[ 98%] Linking CXX executable server
Undefined symbols for architecture i386:
"std::1::basic_ostream<char, std::__1::char_traits
Same here on Sierra 10.12.6:
[ 48%] Building CXX object CMakeFiles/server.dir/src/common/extract.cpp.o [ 49%] Building CXX object CMakeFiles/server.dir/src/common/path_helper.cpp.o [ 50%] Building CXX object CMakeFiles/server.dir/src/common/log.cpp.o [ 51%] Building CXX object CMakeFiles/server.dir/src/minecraft/symbols.cpp.o [ 52%] Building CXX object CMakeFiles/server.dir/src/common/modloader.cpp.o [ 53%] Building CXX object CMakeFiles/server.dir/src/minecraft/std/string_darwin.cpp.o [ 54%] Building CXX object CMakeFiles/server.dir/src/server/server.cpp.o [ 56%] Building CXX object CMakeFiles/server.dir/src/server/server_properties.cpp.o [ 57%] Linking CXX executable server Undefined symbols for architecture i386: "std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::operator<<<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from: operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, mcpe::string const&) in string_darwin.cpp.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [server] Error 1 make[1]: *** [CMakeFiles/server.dir/all] Error 2 make: *** [all] Error 2
Could compile and run from the "fix Darwin" branch, with the patch to string_darwin.cpp
https://github.com/MCMrARM/mcpelauncher-linux/pull/367#discussion-diff-178462844R56
iMac (non retina) OS 10.13.3 High Sierra
Below is my output to
make -j$(sysctl -n hw.ncpu)