trojan-gfw / openwrt-trojan

trojan and its dependencies for OpenWrt
266 stars 115 forks source link

CMake could not find Boost. #26

Open aon3ko opened 4 years ago

aon3ko commented 4 years ago
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 commented 4 years ago

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

inadavid commented 4 years ago

I have same issue. debian buster, openwrt sdk 19.07.2

wongsyrone commented 4 years ago

Will check the issue in several days

aon3ko commented 4 years ago

@wongsyrone ping

wongsyrone commented 4 years ago

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

siwind commented 4 years ago

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 commented 3 years ago

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 commented 2 years ago

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)