bfgroup / b2

B2 makes it easy to build C++ projects, everywhere.
https://www.bfgroup.xyz/b2/
Boost Software License 1.0
81 stars 230 forks source link

boost fail to be detected / No 'bootstrap.jam' was found by searching for / file STRINGS file "/usr/include/boost/version.hpp" cannot be read. #338

Open estatistics opened 1 year ago

estatistics commented 1 year ago

I try to install qbittorent that requires boost library.

I tried to install boost from source successfully (1.83)

sudo ./bootstrap.sh --prefix=/usr/local
and
sudo ./b2 install  --prefix=/usr/local

then... in outside the folder

b2 --version
Unable to load B2
-----------------
No 'bootstrap.jam' was found by searching for:
  /usr/bin/.b2/kernel/bootstrap.jam
  /usr/share/b2/kernel/bootstrap.jam
  /usr/share/b2/src/kernel/bootstrap.jam
  /usr/kernel/bootstrap.jam
  /usr/bin/src/kernel/bootstrap.jam
  /usr/bin/tools/build/src/kernel/bootstrap.jam
  /usr/bin/src/kernel/bootstrap.jam
  /usr/src/kernel/bootstrap.jam
  /src/kernel/bootstrap.jam

Please consult the documentation at 'https://www.bfgroup.xyz/b2/'.

but ...

cd ~/Downloads/_LINUX_PKGS/boost_1_83_0/tools/build$
b2 --version
B2 4.10-git

I had an directory of boost in usr/include that was detected from qbittorent and delete it. But it tries to look into that directory...

CMake Error at /usr/share/cmake-3.25/Modules/FindBoost.cmake:1825 (file):
  file STRINGS file "/usr/include/boost/version.hpp" cannot be read.
Call Stack (most recent call first):
  cmake/Modules/CheckPackages.cmake:46 (find_package)
  CMakeLists.txt:55 (include)

CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Boost: Found unsuitable version "0.0.0", but required is at
  least "1.76" (found /usr/include, )
Call Stack (most recent call first):
  /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.25/Modules/FindBoost.cmake:2376 (find_package_handle_standard_args)
  cmake/Modules/CheckPackages.cmake:46 (find_package)
  CMakeLists.txt:55 (include)

Then i downlaoded the experimental package of libboost-all-dev_1.81.0.1~exp1_amd64.deb

and installed it with `dpkg -i libboost-all-dev_1.81.0.1~exp1_amd64.deb succesfully. yet, b2 --version is not detecting boost library nor qbittorent (boost setup) detect it.

even export BOOST_BUILD_PATH=/home/elias/Downloads/_LINUX_PKGS/boost_1_83_0/tools/build/;b2 does not produce results

My system is linux bookworm

estatistics commented 1 year ago

weirdly, no bootstrap.jam of boost 1.83 was detected here

locate bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/boost_1_80_0/tools/build/src/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/boost_1_80_0/tools/build/src/kernel/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/buildtrees/boost-build/src/ost-1.80.0-d663e6deff.clean/src/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/buildtrees/boost-build/src/ost-1.80.0-d663e6deff.clean/src/kernel/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/installed/x64-linux/tools/boost-build/src/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/installed/x64-linux/tools/boost-build/src/kernel/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/packages/boost-build_x64-linux/tools/boost-build/src/bootstrap.jam
/home/elias/Downloads/_LINUX_PKGS/vcpkg/packages/boost-build_x64-linux/tools/boost-build/src/kernel/bootstrap.jam
/usr/share/boost-build/src/kernel/bootstrap.jam
estatistics commented 1 year ago

The below paths from what file/files are got? it is right to add somewhere /usr/share/boost-build/src/kernel/bootstrap.jam ? The b2options for config file dont work at all

-----------------
No 'bootstrap.jam' was found by searching for:
  /usr/bin/.b2/kernel/bootstrap.jam
  /usr/share/b2/kernel/bootstrap.jam
  /usr/share/b2/src/kernel/bootstrap.jam
  /usr/kernel/bootstrap.jam
  /usr/bin/src/kernel/bootstrap.jam
  /usr/bin/tools/build/src/kernel/bootstrap.jam
  /usr/bin/src/kernel/bootstrap.jam
  /usr/src/kernel/bootstrap.jam
  /src/kernel/bootstrap.jam

Please consult the documentation at 'https://www.bfgroup.xyz/b2/'.