Currentur new edit don't work on ubuntu 18 and when back to compile old source game don't open anymore idk why lol :S
and when compile ur new source edit by old commands lik
sh autogen.sh && ./configure --enable-server-diag --enable-mysql --enable-debug-symbols && make
compile done and game open but get bug with magiclevel don't go up and always 0
CMakeLists.txt
does not work on Ubuntu 18. It cannot detect SQLite libraries.Version without SQLite and with
${LIBXML2_INCLUDE_DIR}
added to include_directories
:
Bash:
cmake_minimum_required(VERSION 3.10)
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
project(theforgottenserver CXX)
add_subdirectory(src)
add_executable(theforgottenserver ${theforgottenserver_SRC})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
add_definitions(-D__USE_MYSQL__ -D__ROOT_PERMISSION__ -D__ENABLE_SERVER_DIAGNOSTIC__)
set(CMAKE_CXX_FLAGS "-Ofast -DNDEBUG")
include(FindCXX11)
find_package(GMP REQUIRED)
find_package(MySQL REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(LibXml2 REQUIRED)
find_package(ZLIB REQUIRED)
find_package(Boost REQUIRED COMPONENTS filesystem regex thread)
if(NOT LuaJIT)
find_package(Lua 5.1 REQUIRED)
endif()
include_directories(
${LIBXML2_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
${LUA_INCLUDE_DIR}
${MYSQL_INCLUDE_DIR}
${GMP_INCLUDE_DIR}
)
target_link_libraries(theforgottenserver PRIVATE
Boost::filesystem
Boost::regex
Boost::thread
OpenSSL::SSL
${LIBXML2_LIBRARIES}
ZLIB::ZLIB
${LUA_LIBRARIES}
${MYSQL_CLIENT_LIBS}
${GMP_LIBRARY}
)