mqtt_cpp icon indicating copy to clipboard operation
mqtt_cpp copied to clipboard

CMake propblem with boost

Open karimnorouzi opened this issue 2 years ago • 2 comments

I get this weierd propblem with boost:

CMake Error at C:/.../cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Boost (missing: system date_time log filesystem thread program_options) (found suitable version "1.74.0", minimum required is "1.74.0") Call Stack (most recent call first): C:/.../cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) C:/cmake-3.22.0-windows-x86_64/share/cmake-3.22/Modules/FindBoost.cmake:2360 (find_package_handle_standard_args) CMakeLists.txt:139 (FIND_PACKAGE)

karimnorouzi avatar Sep 06 '22 18:09 karimnorouzi

It seems that the issue is caused by your environment. cmake couldn't find boost on your environment.

Here is my way to find boost on Azure build pipelines. I'm not cmake expert it is extremelty difficult for me but the following setting might help you. https://github.com/redboltz/mqtt_cpp/blob/6d6ff054dce4a775db6c5a435bd9b6d078eb56d8/azure-pipelines.yml#L134-L152

See https://cmake.org/cmake/help/latest/module/FindBoost.html

redboltz avatar Sep 07 '22 03:09 redboltz

@karimnorouzi I am by no means an expert on CMake build files and boost, but it seems that all libraries that can't be found are libraries that are not header-only, that is regular library (static or dynamic) is required. I would check if you have installed them.

ineffective avatar Oct 12 '22 12:10 ineffective