Guest User

Untitled

a guest
Jun 18th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. brew install python2 boost boost-python
  2.  
  3. cmake_minimum_required(VERSION 3.6)
  4. project(game-client)
  5.  
  6. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}-std=c++1z -Wall -Wextra -Wno-unused-parameter -pthread")
  7.  
  8. # configure boost
  9. set(Boost_USE_STATIC_LIBS ON)
  10. set(Boost_USE_MULTITHREADED ON)
  11.  
  12. find_package(Boost COMPONENTS filesystem system python REQUIRED)
  13. if (NOT Boost_FOUND)
  14. MESSAGE(FATAL_ERROR "Could not find boost library")
  15. endif ()
  16.  
  17. # configure python
  18. find_package(PythonLibs 2.7 REQUIRED)
  19. if (NOT PYTHONLIBS_FOUND)
  20. MESSAGE(FATAL_ERROR "Could not find python library")
  21. endif ()
  22.  
  23. include_directories(${Boost_INCLUDE_DIRS})
  24. include_directories(${PYTHON_INCLUDE_DIRS})
  25.  
  26. # configure preprocessor flags for internal classlogs
  27. add_definitions(-DDUMP_GOOD_PACKETS)
  28. # add_definitions(-DCLASSLOG)
  29.  
  30. set(SOURCE_FILES src/main.cpp src/Config.cpp include/Config.hpp src/SequenceTable.cpp include/SequenceTable.hpp
  31. include/Singleton.hpp include/Logger.hpp src/NetworkStream.cpp include/NetworkStream.hpp
  32. include/packets/incoming/in.hpp include/packets/outcoming/out.hpp src/Buffer.cpp include/Buffer.hpp
  33. include/Packet.hpp src/PacketHandler.cpp include/PacketHandler.hpp src/Core.cpp
  34. include/Core.hpp src/Cipher.cpp include/Cipher.hpp src/KeyAgreement.cpp include/KeyAgreement.hpp
  35. src/AuthInput.cpp include/AuthInput.hpp src/MainInput.cpp include/MainInput.hpp include/PythonManager.hpp
  36. src/PythonManager.cpp include/PythonInstance.hpp src/PythonInstance.cpp include/packets/common/common.hpp
  37. src/Entity.cpp include/Entity.hpp include/Item.hpp src/Item.cpp src/Environment.cpp include/Environment.hpp)
  38. add_executable(game-client ${SOURCE_FILES})
  39. target_link_libraries(game-client ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} cryptopp)
  40.  
  41. memcpys-MBP:build memcpy$ cmake ..
  42. -- The C compiler identification is Clang 6.0.0
  43. -- The CXX compiler identification is Clang 6.0.0
  44. -- Check for working C compiler: /usr/local/opt/llvm/bin/clang
  45. -- Check for working C compiler: /usr/local/opt/llvm/bin/clang -- works
  46. -- Detecting C compiler ABI info
  47. -- Detecting C compiler ABI info - done
  48. -- Detecting C compile features
  49. -- Detecting C compile features - done
  50. -- Check for working CXX compiler: /usr/local/opt/llvm/bin/clang++
  51. -- Check for working CXX compiler: /usr/local/opt/llvm/bin/clang++ -- works
  52. -- Detecting CXX compiler ABI info
  53. -- Detecting CXX compiler ABI info - done
  54. -- Detecting CXX compile features
  55. -- Detecting CXX compile features - done
  56. CMake Error at /usr/local/Cellar/cmake/3.11.4/share/cmake/Modules/FindBoost.cmake:2044 (message):
  57. Unable to find the requested Boost libraries.
  58.  
  59. Boost version: 1.67.0
  60.  
  61. Boost include path: /usr/local/include
  62.  
  63. Could not find the following static Boost libraries:
  64.  
  65. boost_python
  66.  
  67. Some (but not all) of the required Boost libraries were found. You may
  68. need to install these additional Boost libraries. Alternatively, set
  69. BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  70. to the location of Boost.
  71. Call Stack (most recent call first):
  72. CMakeLists.txt:10 (find_package)
  73.  
  74.  
  75. CMake Error at CMakeLists.txt:12 (MESSAGE):
  76. Could not find boost library
  77.  
  78.  
  79. -- Configuring incomplete, errors occurred!
  80. See also "/Users/memcpy/git-repos/game- client/build/CMakeFiles/CMakeOutput.log".
Add Comment
Please, Sign In to add comment