Skip to content

Problems with ASIO #295

@paulocoutinhox

Description

@paulocoutinhox

Priority

Low

Area

  • Data
  • Source
  • Docker
  • Other

What happened?

Hi,

When i try execute cmake, i get an error about asio not found.

cmake \     
  -DUSE_STATIC_LIBS=OFF \
  -DLUA_LIBRARY=/opt/homebrew/Cellar/lua@5.1/5.1.5_8/lib/liblua.5.1.5.dylib \
  -DLUA_INCLUDE_DIR=/opt/homebrew/Cellar/lua@5.1/5.1.5_8/include/lua5.1/ \
  -DBoost_INCLUDE_DIR=/opt/homebrew/Cellar/boost@1.76/1.76.0_1/include/ \
  -DOPENSSL_INCLUDE_DIR=/opt/homebrew/Cellar/openssl@1.1/1.1.1p/include/ \
  -DGMP_INCLUDE_DIR=/opt/homebrew/Cellar/gmp/6.2.1_1/include/ \
  -DGMP_LIBRARY=/opt/homebrew/Cellar/gmp/6.2.1_1/lib/libgmp.dylib \
  ../

-- The C compiler identification is AppleClang 13.1.6.13160021
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Enabled: ipo
-- Found Protobuf: /opt/homebrew/lib/libprotobuf.dylib (found version "3.19.4") 
-- Found Protobuf Compiler: /opt/homebrew/bin/protoc
-- Bot protection: ON
-- Use precompiled header: OFF
-- Disabled: asan
-- Disabled: DEBUG LOG
-- Build type: 
-- Build commit: 
-- Build revision: 
-- Found PhysFS: /opt/homebrew/lib/libphysfs.dylib  
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd  
-- Looking for lzma_auto_decoder in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/liblzma.tbd
-- Looking for lzma_auto_decoder in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/liblzma.tbd - found
-- Looking for lzma_easy_encoder in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/liblzma.tbd
-- Looking for lzma_easy_encoder in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/liblzma.tbd - found
-- Looking for lzma_lzma_preset in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/liblzma.tbd
-- Looking for lzma_lzma_preset in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/liblzma.tbd - found
-- Found LibLZMA: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/liblzma.tbd (found version "5.2.5") 
-- Found nlohmann_json: /opt/homebrew/lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found version "3.10.5") 
CMake Error at src/CMakeLists.txt:169 (find_package):
  By not providing "Findasio.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "asio", but
  CMake did not find one.

  Could not find a package configuration file provided by "asio" with any of
  the following names:

    asioConfig.cmake
    asio-config.cmake

  Add the installation prefix of "asio" to CMAKE_PREFIX_PATH or set
  "asio_DIR" to a directory containing one of the above files.  If "asio"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/Users/paulo/Developer/workspaces/cpp/otclient_mehah/otclient/build/CMakeFiles/CMakeOutput.log".
See also "/Users/paulo/Developer/workspaces/cpp/otclient_mehah/otclient/build/CMakeFiles/CMakeError.log".

What OS are you seeing the problem on?

MacOS

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: LowMinor impactStaleStatus: Pending TestThis PR or Issue requires more testingType: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions