[Solved] Problem while compiling (17%)
#1
Question 
Hey guys! Smile

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. Huh
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. Smile


Greetings,

Immanuel94
Reply
Thanks given by:


Messages In This Thread
[Solved] Problem while compiling (17%) - by Immanuel94 - 09-04-2014, 06:16 AM
RE: Problem while compiling (17%) - by xoft - 09-04-2014, 06:29 AM
RE: Problem while compiling (17%) - by Immanuel94 - 09-04-2014, 06:32 AM



Users browsing this thread: 1 Guest(s)