Jump to content

How To Compile EnhanceMT Server Sources - Windows


Recommended Posts

i get cmake errors while create vs 2013 project sln file help me

 

The C compiler identification is unknown

The CXX compiler identification is unknown

CMake Error at CMakeLists.txt:10 (project):

No CMAKE_C_COMPILER could be found.

 

CMake Error at CMakeLists.txt:10 (project):

No CMAKE_CXX_COMPILER could be found.

 

Configuring incomplete, errors occurred!

See also "C:/Users/ANERMUS/Desktop/source/Server/build/CMakeFiles/CMakeOutput.log".

See also "C:/Users/ANERMUS/Desktop/source/Server/build/CMakeFiles/CMakeError.log".

 

Install Visual Studio 2013

Link to comment
Share on other sites

  • 1 month later...
  • Premium

 

 

 

 

Hey,

 

Giovy : Some boost libs where missing, I updated Server and Extern, can you try again please ?

Galet : It's already on FE, just waiting to be approved  :)

 

Hello, I have my skill problems. I give skill points, but does not increase my skills.

 

/setsk 3 59 == Perfect Dash :'(

Where is the problem :'(

 

Help me please

 

 

Sorry my bad english

I'm using Google Translate :D :D

 

I had this problem too and its from skill_proto table...

 

How can I fix this? :( :(

HELP ME PLEASE :(

 

 

Anyone know fix for this?

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 5 months later...

My CMakeLists.txt:

set(EXTERN_DIR ${CMAKE_SOURCE_DIR}/Extern)

set(ENV{BOOST_ROOT} ${EXTERN_DIR}/boost)
set(ENV{BOOST_INCLUDEDIR} ${EXTERN_DIR}/boost/include)
set(ENV{BOOST_LIBRARYDIR} ${EXTERN_DIR}/boost/lib)

set(CRYPTOPP_INCLUDE_DIRS ${EXTERN_DIR}/cryptopp/include)
set(CRYPTOPP_LIBRARY_DIR ${EXTERN_DIR}/cryptopp/lib)

set(MYSQL_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/shared/libmysql/6.0.2/win32)    
set(MYSQL_LIBRARIES ${CMAKE_SOURCE_DIR}/src/shared/libmysql/6.0.2/win32/lib)

set(OPENSSL_LIBRARIES ${EXTERN_DIR}/OpenSSL-Win32/lib)
set(OPENSSL_INCLUDE_DIR ${EXTERN_DIR}/OpenSSL-Win32/include)

# Boost
include(ConfigureBoost)
set(BOOST_INCLUDE_DIR ${Boost_INCLUDE_DIRS})

link_directories(
	${Boost_LIBRARY_DIRS}
	${CRYPTOPP_LIBRARY_DIR}
	${MYSQL_LIBRARY}
	${OPENSSL_LIBRARIES}
)

Folder structure: https://metin2.download/picture/9btULl2cbhCdUe0vGPHBULkiBjlr4LT5/.png

CMakeFiles.txt doesn't retrieve the following informations on CMake's GUI:

  • Boost_DIR: NOTFOUND
  • Boost_INCLUDE_DIR: NOTFOUND
  • Boost_SYSTEM_LIBRARY_DEBUG: NOTFOUND
  • Boost_SYSTEM_LIBRARY_RELEASE: NOTFOUND
  • Boost_THREAD_LIBRARY_DEBUG: NOTFOUND
  • Boost_THREAD_LIBRARY_RELEASE: NOTFOUND
  • CRYPTOPP_LIBRARY: NOTFOUND
  • CRYPTOPP_LIBRARY_DEBUG: NOTFOUND

So, I've then setup them all manully on CMake's GUI by myself:

  • Boost_DIR: C:/Users/DevKit/Desktop/enhanceMT/Extern/boost
  • Boost_INCLUDE_DIR: C:/Users/DevKit/Desktop/enhanceMT/Extern/boost/include
  • Boost_SYSTEM_LIBRARY_DEBUG: C:/Users/DevKit/Desktop/enhanceMT/Extern/boost/lib/libboost_system-vc120-mt-sgd-1_57.lib
  • Boost_SYSTEM_LIBRARY_RELEASE: C:/Users/DevKit/Desktop/enhanceMT/Extern/boost/lib/libboost_system-vc120-mt-sgd-1_57.lib
  • Boost_THREAD_LIBRARY_DEBUG: C:/Users/DevKit/Desktop/enhanceMT/Extern/boost/lib/libboost_thread-vc120-mt-sgd-1_57.lib
  • Boost_THREAD_LIBRARY_RELEASE: C:/Users/DevKit/Desktop/enhanceMT/Extern/boost/lib/libboost_thread-vc120-mt-sgd-1_57.lib
  • CRYPTOPP_LIBRARY: C:/Users/DevKit/Desktop/enhanceMT/Extern/cryptopp/lib/cryptlib.lib
  • CRYPTOPP_LIBRARY_DEBUG: C:/Users/DevKit/Desktop/enhanceMT/Extern/cryptopp/lib/cryptlib.lib

Configuration done and generation done. Anyhow, can somebody confirm me that my manual setup is correct?

I'm telling you that because I get tons of errors and warnings on VS2015 compiling the solution. I'll add a screenshot later!

 

PS: I managed to run Korya's (aka Pasha37) Windows server based serverfiles on Hamachi (not local!) with success and people could join as well, guys wanna know how? :lol:

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 3 years later...
  • 3 months later...
  • 2 months later...
  • 5 months later...

Hello, I have an error with cmake

The C compiler identification is MSVC 17.0.50727.1
The CXX compiler identification is MSVC 17.0.50727.1
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy):
  The OLD behavior for policy CMP0005 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
  The OLD behavior for policy CMP0043 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


MSVC: Enabled large address awareness
MSVC: Enabled SSE2 support
MSVC: Disabled Safe Exception Handlers for debug builds
MSVC: Overloaded standard names
MSVC: Disabled NON-SECURE warnings
MSVC: Disabled POSIX warnings
CMake Warning (dev) at cmake/macros/ConfigureBoost.cmake:28 (find_package):
  Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
  Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Environment variable Boost_ROOT is set to:

    C:/Boost/include/boost-1_57

  For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
  CMakeLists.txt:66 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at cmake/macros/FindBoost.cmake:1115 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  cmake/macros/ConfigureBoost.cmake:28 (find_package)
  CMakeLists.txt:66 (include)


Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Failed

* Install core to        : E:/Dylan/Documents/DevEmu/EnhanceMT/Server/Build

* Libraries :
  - Boost include : Boost_INCLUDE_DIR-NOTFOUND
  - Boost library dir : 
  - CryptoPP : C:/cryptopp/include
  - MySQL : E:/Dylan/Documents/DevEmu/EnhanceMT/Server/src/shared/libmysql/6.0.2/win32
  - OpenSSL : C:/OpenSSL-Win32/include

* Build Game server       : Yes (default)

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
   used as include directory in directory E:/Dylan/Documents/DevEmu/EnhanceMT/Server/src/shared
   used as include directory in directory E:/Dylan/Documents/DevEmu/EnhanceMT/Server/src/db
   used as include directory in directory E:/Dylan/Documents/DevEmu/EnhanceMT/Server/src/libthecore
   used as include directory in directory E:/Dylan/Documents/DevEmu/EnhanceMT/Server/src/game
CRYPTOPP_LIBRARY
    linked by target "game" in directory E:/Dylan/Documents/DevEmu/EnhanceMT/Server/src/game

Configuring incomplete, errors occurred!
See also "E:/Dylan/Documents/DevEmu/EnhanceMT/Server/build/CMakeFiles/CMakeOutput.log".
See also "E:/Dylan/Documents/DevEmu/EnhanceMT/Server/build/CMakeFiles/CMakeError.log".

Can you help me please ?

Link to comment
Share on other sites

  • 1 year later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.