otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.59k stars 1.06k forks source link

Error in Compile Debian 6 #57

Closed fabianobn closed 11 years ago

fabianobn commented 11 years ago

I test the Compile in Debian 6

------ And I received this error ------

root@~:/forgottenserver/build# cmake .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Performing Test COMPILER_KNOWS_CXX11 -- Performing Test COMPILER_KNOWS_CXX11 - Failed -- Performing Test COMPILER_KNOWS_CXX0X -- Performing Test COMPILER_KNOWS_CXX0X - Success -- Found LibXml2: /usr/lib/libxml2.so -- Found GMP: /usr/include -- MySQL Include dir: /usr/include/mysql library dir: /usr/lib -- MySQL client libraries: mysqlclient_r -- REQUIRED_VARS (missing: LUA_LIBRARIES LUA_INCLUDE_DIR VERSION_VAR LUAJIT_VERSION_STRING) -- REQUIRED_VARS (missing: VERSION_VAR) -- Boost version: 1.42.0 -- Found the following Boost libraries: -- system -- thread -- Configuring done CMake Error in CMakeLists.txt: Cannot find source file "actions.cpp". Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

-- Build files have been written to: /forgottenserver/build root@~:/forgottenserver/build# make make: *\ No targets specified and no makefile found. Stop.

------ The CMakeError.log ------

Performing C++ SOURCE FILE Test COMPILER_KNOWS_CXX11 failed with the following output: Change Dir: /forgottenserver/build/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory /forgottenserver/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /forgottenserver/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec.dir/src.cxx.o /usr/bin/c++ -Wall -Werror -DCOMPILER_KNOWS_CXX11 -std=c++11 -o CMakeFiles/cmTryCompileExec.dir/src.cxx.o -c /forgottenserver/build/CMakeFiles/CMakeTmp/src.cxx cc1plus: error: unrecognized command line option "-std=c++11" make[1]: *** [CMakeFiles/cmTryCompileExec.dir/src.cxx.o] Error 1 make[1]: Leaving directory/forgottenserver/build/CMakeFiles/CMakeTmp' make: *\ [cmTryCompileExec/fast] Error 2

Source file was: int main() { return 0;}

marksamman commented 11 years ago

Have you installed Lua? Which g++ version do you have installed?

fabianobn commented 11 years ago

Yes I have installed all library! I send this command: g++ -v Using built-in specs. Target: x86_64-linux-gnu gcc version 4.4.5 (Debian 4.4.5-8)

fabianobn commented 11 years ago

The version of my LUA is 5.1

marksamman commented 11 years ago

4.4.5 doesn't support C++11. You need to upgrade to upgrade to Debian Wheezy (Debian 7).