Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem build on windows #233

Open
vega0 opened this issue Sep 30, 2022 · 4 comments
Open

problem build on windows #233

vega0 opened this issue Sep 30, 2022 · 4 comments

Comments

@vega0
Copy link

vega0 commented Sep 30, 2022

Happens it .

PS G:\Workspace\cpp.machinarium.gui\Стороннее\tgbot-cpp> cmake .\CMakeLists.txt
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
CMake Warning at C:/Program Files/CMake/share/cmake-3.24/Modules/FindBoost.cmake:1384 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.24/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.24/Modules/FindBoost.cmake:2118 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:65 (find_package)


CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Boost (missing: system) (found suitable version "1.81.0",
  minimum required is "1.59.0")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.24/Modules/FindBoost.cmake:2376 (find_package_handle_standard_args)
  CMakeLists.txt:65 (find_package)


-- Configuring incomplete, errors occurred!
See also "G:/Workspace/cpp.machinarium.gui/Стороннее/tgbot-cpp/CMakeFiles/CMakeOutput.log".
See also "G:/Workspace/cpp.machinarium.gui/Стороннее/tgbot-cpp/CMakeFiles/CMakeError.log".

image

all libraries are builden.

@llnulldisk
Copy link
Contributor

How did you install boost? Did you download it from boost.org or via vcpkg?

@vega0
Copy link
Author

vega0 commented Oct 4, 2022

How did you install boost? Did you download it from boost.org or via vcpkg?

git clone & static build

@llnulldisk
Copy link
Contributor

It seems like cmake can't find the static build of boost

Can you try this:

  1. Go to the directory of boost
  2. Run bootstrap.bat
  3. Run b2 install --prefix=PREFIX where PREFIX is the directory where you want Boost to be installed
  4. Add PREFIX\bin to your PATH environment variable.

@vega0
Copy link
Author

vega0 commented Oct 6, 2022

It seems like cmake can't find the static build of boost

Can you try this:

  1. Go to the directory of boost
  2. Run bootstrap.bat
  3. Run b2 install --prefix=PREFIX where PREFIX is the directory where you want Boost to be installed
  4. Add PREFIX\bin to your PATH environment variable.

Yes, adding it to the path is helped me. (almost)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants