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

CMake could not find Boost. #26

Open
aon3ko opened this issue Apr 29, 2020 · 8 comments
Open

CMake could not find Boost. #26

aon3ko opened this issue Apr 29, 2020 · 8 comments

Comments

@aon3ko
Copy link

aon3ko commented Apr 29, 2020

CMake Error at /home/user1/openwrt/staging_dir/host/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Boost (missing: system program_options) (found suitable
  version "1.72.0", minimum required is "1.66.0")
Call Stack (most recent call first):
  /home/user1/openwrt/staging_dir/host/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /home/user1/openwrt/staging_dir/host/share/cmake-3.17/Modules/FindBoost.cmake:2145 (find_package_handle_standard_args)
  CMakeLists.txt:39 (find_package)


-- Configuring incomplete, errors occurred!

Build against OpenWrt master r13124-3f660249e6
Build command:

make package/openwrt-trojan/trojan/compile V=s
@bigcat133
Copy link

i have the same question
my system:
ubuntu 18.04
openwrt sdk 19.07.2

@inadavid
Copy link

inadavid commented May 7, 2020

I have same issue. debian buster, openwrt sdk 19.07.2

@wongsyrone
Copy link
Contributor

Will check the issue in several days

@aon3ko
Copy link
Author

aon3ko commented May 16, 2020

@wongsyrone ping

@wongsyrone
Copy link
Contributor

I cannot reproduce this issue using OpenWrt trunk and packages feed master branch.

@siwind
Copy link

siwind commented Oct 25, 2020

Maybe CMake cause this problem.

same problem, openwrt-19.07.4 and CMake version 3.15.
But openwrt-master is ok and CMake version is 3.18

@hexchain
Copy link

hexchain commented Feb 19, 2021

Under openwrt-19.07 one needs to explicitly enable the required boost libraries. In make menuconfig, enable Libraries -> boost, and enable program_options and system under "Select boost libraries".

EDIT: The boost libraries should be automatically selected according to the dependencies of the package, and on another try, this is indeed the case. I have no idea why it needs manual intervention the first time, though.

@shyn
Copy link

shyn commented Dec 9, 2021

Same here.
openwrt-sdk-21.02.0
cmake: 3.19.1

What I did:

./scripts/feeds update -a
make menuconfig
# no Libraries -> boost found
make make package/openwrt-trojan/trojan/compile V=s

error log:

 CMake Error at /home/neo/openwrt-sdk-21.02.0-apm821xx-sata_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
  Could NOT find Boost (missing: Boost_INCLUDE_DIR system program_options)
  (Required is at least version "1.66.0")
Call Stack (most recent call first):
  /home/neo/openwrt-sdk-21.02.0-apm821xx-sata_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:577 (_FPHSA_FAILURE_MESSAGE)
  /home/neo/openwrt-sdk-21.02.0-apm821xx-sata_gcc-8.4.0_musl.Linux-x86_64/staging_dir/host/share/cmake-3.19/Modules/FindBoost.cmake:2193 (find_package_handle_standard_args)
  CMakeLists.txt:39 (find_package)

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

No branches or pull requests

7 participants