Jump to content
  • 0

haiTheaGamerX

Question

I am trying to compile ManGOS-One on Ubuntu 12.04 x64 Server (VPS).

I have installed all the required tools but when I compile, I end up with the following errors:

-- Build files have been written to: /home/tester123/server/build
-------------------------
Compiling MaNGOS One...
-------------------------
Scanning dependencies of target genrev
Scanning dependencies of target bzip2
Scanning dependencies of target lualib
Scanning dependencies of target recast
Scanning dependencies of target detour
[  0%] Building CXX object CMakeFiles/genrev.dir/src/tools/genrevision/genrevision.cpp.o
[  0%] cc1plus: error: unrecognized command line option ‘-std=c++11’
make[2]: *** [CMakeFiles/genrev.dir/src/tools/genrevision/genrevision.cpp.o] Error 1
make[1]: *** [CMakeFiles/genrev.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  0%] [  0%] Building C object dep/bzip2/CMakeFiles/bzip2.dir/huffman.c.o
Building CXX object dep/recastnavigation/Recast/CMakeFiles/recast.dir/Source/RecastFilter.cpp.o
Building C object dep/bzip2/CMakeFiles/bzip2.dir/compress.c.o
[  0%] Scanning dependencies of target ace
Building CXX object dep/recastnavigation/Detour/Source/CMakeFiles/detour.dir/DetourAlloc.cpp.o
cc1plus: error: unrecognized command line option ‘-std=c++11’
make[2]: *** [dep/recastnavigation/Recast/CMakeFiles/recast.dir/Source/RecastFilter.cpp.o] Error 1
make[1]: *** [dep/recastnavigation/Recast/CMakeFiles/recast.dir/all] Error 2
cc1plus: error: unrecognized command line option ‘-std=c++11’
make[2]: *** [dep/recastnavigation/Detour/Source/CMakeFiles/detour.dir/DetourAlloc.cpp.o] Error 1
make[1]: *** [dep/recastnavigation/Detour/Source/CMakeFiles/detour.dir/all] Error 2
[  0%] [  1%] Building C object dep/bzip2/CMakeFiles/bzip2.dir/blocksort.c.o
Building C object dep/bzip2/CMakeFiles/bzip2.dir/decompress.c.o
[  1%] Building C object dep/lualib/CMakeFiles/lualib.dir/ldump.c.o
[  1%] [  1%] Building C object dep/lualib/CMakeFiles/lualib.dir/lstring.c.o
Building C object dep/bzip2/CMakeFiles/bzip2.dir/bzlib.c.o
[  1%] Building C object dep/lualib/CMakeFiles/lualib.dir/lvm.c.o
[  1%] Building C object dep/bzip2/CMakeFiles/bzip2.dir/crctable.c.o
[  1%] Building C object dep/bzip2/CMakeFiles/bzip2.dir/randtable.c.o
[  1%] Building C object dep/lualib/CMakeFiles/lualib.dir/lgc.c.o
[  1%] Building C object dep/lualib/CMakeFiles/lualib.dir/lobject.c.o
[  1%] Building C object dep/lualib/CMakeFiles/lualib.dir/lauxlib.c.o
[  1%] Building C object dep/lualib/CMakeFiles/lualib.dir/ltm.c.o
[  2%] Building C object dep/lualib/CMakeFiles/lualib.dir/ldblib.c.o
[  2%] Building C object dep/lualib/CMakeFiles/lualib.dir/lfunc.c.o
[  2%] Building C object dep/lualib/CMakeFiles/lualib.dir/lundump.c.o
[  2%] Building C object dep/lualib/CMakeFiles/lualib.dir/llex.c.o
[  2%] [  2%] Building C object dep/lualib/CMakeFiles/lualib.dir/lmem.c.o
Building C object dep/lualib/CMakeFiles/lualib.dir/ltable.c.o
[  2%] Building C object dep/lualib/CMakeFiles/lualib.dir/lctype.c.o
[  2%] Building C object dep/lualib/CMakeFiles/lualib.dir/lbitlib.c.o
[  2%] Building C object dep/lualib/CMakeFiles/lualib.dir/lzio.c.o
[  2%] [  3%] Building C object dep/lualib/CMakeFiles/lualib.dir/ltablib.c.o
Building C object dep/lualib/CMakeFiles/lualib.dir/liolib.c.o
[  3%] Building C object dep/lualib/CMakeFiles/lualib.dir/linit.c.o
[  3%] Building C object dep/lualib/CMakeFiles/lualib.dir/lstate.c.o
[  3%] Building C object dep/lualib/CMakeFiles/lualib.dir/lcorolib.c.o
[  3%] Building C object dep/lualib/CMakeFiles/lualib.dir/lcode.c.o
[  3%] Building CXX object dep/acelite/ace/CMakeFiles/ace.dir/ACE.cpp.o
cc1plus: error: unrecognized command line option ‘-std=c++11’
make[2]: *** [dep/acelite/ace/CMakeFiles/ace.dir/ACE.cpp.o] Error 1
make[1]: *** [dep/acelite/ace/CMakeFiles/ace.dir/all] Error 2
[  3%] [  3%] Building C object dep/lualib/CMakeFiles/lualib.dir/ldebug.c.o
[  3%] Building C object dep/lualib/CMakeFiles/lualib.dir/ldo.c.o
Building C object dep/lualib/CMakeFiles/lualib.dir/lapi.c.o
[  3%] Building C object dep/lualib/CMakeFiles/lualib.dir/lopcodes.c.o
[  3%] Building C object dep/lualib/CMakeFiles/lualib.dir/lstrlib.c.o
Linking C static library libbzip2.a
[  3%] Built target bzip2
[  4%] Building C object dep/lualib/CMakeFiles/lualib.dir/loadlib.c.o
[  4%] Building C object dep/lualib/CMakeFiles/lualib.dir/lmathlib.c.o
[  4%] Building C object dep/lualib/CMakeFiles/lualib.dir/lparser.c.o
[  4%] Building C object dep/lualib/CMakeFiles/lualib.dir/loslib.c.o
[  4%] Building C object dep/lualib/CMakeFiles/lualib.dir/lbaselib.c.o
Linking C static library liblualib.a
[  4%] Built target lualib
make: *** [all] Error 2

Other kind of things I am using for the compile:

-develop21 branch

-lazymangos.sh installer

-Ubuntu 12.04 Server x64

-Eluna + SD2 + Player Bots (option within the lazymangos installer)

Is there anyone that knows how to resolve the issues?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Citation from another discussion:

So, g++ --version will show the version. I have 4.8.2 at not the newest Ubuntu install.

Cannot say anything about lazymangos.sh, but the playerbot seemingly is not incorporated into MangosOne.

I have just tried that. I got the same G++ and GCC versions (both 4.8.1) but the error still occurs. I tried tore-clone ManGOS-One from the Github repository but it's still the same.

Thanks for your reply anyway.

Link to comment
Share on other sites

git clone --recursive -b develop21 https://github.com/mangosone/server.git

Here, "recursive" is substantial. Do not use "Get ZIP file" github option.

Looks strangely enough: C++ compiler is unable to do anything due to the "wrong" option. Not many ideas...

* Maybe it would be better to update your compilers, but check the installed package integrity at least.

* Try to avoid lazymangos.sh script. From main dir of the repo, execute:

mkdir build
cd build
cmake ..
make
make install

Link to comment
Share on other sites

Citation from another discussion:

yes, this is a problem with g++, you need a 4.7.0 or newer version.

So, g++ --version will show the version. I have 4.8.2 at not the newest Ubuntu install.

Cannot say anything about lazymangos.sh, but the playerbot seemingly is not incorporated into MangosOne.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use