Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- brew install python2 boost boost-python
- cmake_minimum_required(VERSION 3.6)
- project(game-client)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}-std=c++1z -Wall -Wextra -Wno-unused-parameter -pthread")
- # configure boost
- set(Boost_USE_STATIC_LIBS ON)
- set(Boost_USE_MULTITHREADED ON)
- find_package(Boost COMPONENTS filesystem system python REQUIRED)
- if (NOT Boost_FOUND)
- MESSAGE(FATAL_ERROR "Could not find boost library")
- endif ()
- # configure python
- find_package(PythonLibs 2.7 REQUIRED)
- if (NOT PYTHONLIBS_FOUND)
- MESSAGE(FATAL_ERROR "Could not find python library")
- endif ()
- include_directories(${Boost_INCLUDE_DIRS})
- include_directories(${PYTHON_INCLUDE_DIRS})
- # configure preprocessor flags for internal classlogs
- add_definitions(-DDUMP_GOOD_PACKETS)
- # add_definitions(-DCLASSLOG)
- set(SOURCE_FILES src/main.cpp src/Config.cpp include/Config.hpp src/SequenceTable.cpp include/SequenceTable.hpp
- include/Singleton.hpp include/Logger.hpp src/NetworkStream.cpp include/NetworkStream.hpp
- include/packets/incoming/in.hpp include/packets/outcoming/out.hpp src/Buffer.cpp include/Buffer.hpp
- include/Packet.hpp src/PacketHandler.cpp include/PacketHandler.hpp src/Core.cpp
- include/Core.hpp src/Cipher.cpp include/Cipher.hpp src/KeyAgreement.cpp include/KeyAgreement.hpp
- src/AuthInput.cpp include/AuthInput.hpp src/MainInput.cpp include/MainInput.hpp include/PythonManager.hpp
- src/PythonManager.cpp include/PythonInstance.hpp src/PythonInstance.cpp include/packets/common/common.hpp
- src/Entity.cpp include/Entity.hpp include/Item.hpp src/Item.cpp src/Environment.cpp include/Environment.hpp)
- add_executable(game-client ${SOURCE_FILES})
- target_link_libraries(game-client ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} cryptopp)
- memcpys-MBP:build memcpy$ cmake ..
- -- The C compiler identification is Clang 6.0.0
- -- The CXX compiler identification is Clang 6.0.0
- -- Check for working C compiler: /usr/local/opt/llvm/bin/clang
- -- Check for working C compiler: /usr/local/opt/llvm/bin/clang -- 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: /usr/local/opt/llvm/bin/clang++
- -- Check for working CXX compiler: /usr/local/opt/llvm/bin/clang++ -- works
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
- CMake Error at /usr/local/Cellar/cmake/3.11.4/share/cmake/Modules/FindBoost.cmake:2044 (message):
- Unable to find the requested Boost libraries.
- Boost version: 1.67.0
- Boost include path: /usr/local/include
- Could not find the following static Boost libraries:
- boost_python
- Some (but not all) of the required Boost libraries were found. You may
- need to install these additional Boost libraries. Alternatively, set
- BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
- to the location of Boost.
- Call Stack (most recent call first):
- CMakeLists.txt:10 (find_package)
- CMake Error at CMakeLists.txt:12 (MESSAGE):
- Could not find boost library
- -- Configuring incomplete, errors occurred!
- See also "/Users/memcpy/git-repos/game- client/build/CMakeFiles/CMakeOutput.log".
Add Comment
Please, Sign In to add comment