09-04-2014, 06:16 AM
(This post was last modified: 09-04-2014, 06:46 AM by Immanuel94.)
Hey guys!
I have a problem at compiling the sourcefiles. I did it like in the COMPILING.md.
Im using Linux Debian and use the following commands for compiling (or trying it):
mkdir MCServer
cd MCServer
git clone https://github.com/mc-server/MCServer.git .
git submodule init
git submodule update
mkdir Release
cd Release
----
Edit file (/home/skyroadtestserver/MCServer/lib/polarssl.cmake) to: (Because https://forum.cuberite.org/showthread.php?tid=1556 )
----
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
make
Hopefully, i did everything correct..^^
But now, i get a error, i didnt found anything here, to fix it.
git, cmake, gcc and g++ are installed and "already the newest version".
Im very grateful for every hint.
Greetings,
Immanuel94
I have a problem at compiling the sourcefiles. I did it like in the COMPILING.md.
Im using Linux Debian and use the following commands for compiling (or trying it):
mkdir MCServer
cd MCServer
git clone https://github.com/mc-server/MCServer.git .
git submodule init
git submodule update
mkdir Release
cd Release
----
Edit file (/home/skyroadtestserver/MCServer/lib/polarssl.cmake) to: (Because https://forum.cuberite.org/showthread.php?tid=1556 )
Code:
if(NOT TARGET polarssl)
message("including polarssl")
set(ENABLE_TESTING OFF CACHE BOOL "Disable tests")
set(ENABLE_PROGRAMS OFF CACHE BOOL "Disable programs")
if (SELF_TEST)
add_subdirectory(/home/skyroadtestserver/MCServer/lib/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl)
else()
add_subdirectory(/home/skyroadtestserver/MCServer/lib/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl EXCLUDE_FROM_ALL)
endif()
endif()
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
make
Hopefully, i did everything correct..^^
But now, i get a error, i didnt found anything here, to fix it.
Code:
[ 17%] Building CXX object lib/SQLiteCpp/CMakeFiles/SQLiteCpp.dir/src/Column.cpp.o
cc1plus: error: unrecognized command line option "-Wsuggest-attribute=pure"
cc1plus: error: unrecognized command line option "-Wsuggest-attribute=const"
make[2]: *** [lib/SQLiteCpp/CMakeFiles/SQLiteCpp.dir/src/Column.cpp.o] Error 1
make[1]: *** [lib/SQLiteCpp/CMakeFiles/SQLiteCpp.dir/all] Error 2
make: *** [all] Error 2
git, cmake, gcc and g++ are installed and "already the newest version".
Im very grateful for every hint.
Greetings,
Immanuel94