I am trying to cross compile boost 1.65.0 libraries on windows 11 for raspberry pi 3b+.
I am using the VS2019 developer command prompt to build the libraries.
I have configured the user-config.jam file in the home directory with the following line:
using gcc : arm : C:/SysGCC/raspberry/bin/arm-linux-gnueabihf-g++.exe ;
and have run the .\bootstrap command on the prompt window.
Further, I have run the following command specifying the following details:
.\b2 -j8 toolset=arm-linux-gnueabihf-g++ link=static threading=multi runtime-link=shared stage --stagedir=stage/aarch64
Unfortunately, I am getting error as follows:
arm.jam: No such file or directory
Error details:
D:\Dev\boost_1_65_0>.\b2 -j8 toolset=arm-linux-gnueabihf-g++ target-os=linux link=static threading=multi runtime-link=shared stage --stagedir=stage/aarch64
warning: Did not find command for MSVC toolset. If you have Visual Studio 2017 installed you will need to TOOLS for your installation, or build from the 'Visual Studio Command Prompt for VS 2017'.
"'D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/vcvarsall. command,
operable program or batch file.
"'D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/vcvarsall.bat'"
command,
coperable program or batch file.
D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/vcvarsall.bat'"
command,
operable program or batch file.
"'D:/Program Files/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/vcvarsall.bat'"
command,
operable program or batch file. arm.jam: No such file or directory
D:/Dev/boost_1_65_0/tools/build/src/build\toolset.jam:43: in toolset.using
ERROR: rule "arm.init" unknown in module "toolset".
D:/Dev/boost_1_65_0/tools/build/src\build-system.jam:461: in process-explicit-toolset-requests
D:/Dev/boost_1_65_0/tools/build/src\build-system.jam:527: in load
D:\Dev\boost_1_65_0\tools\build\src/kernel\modules.jam:295: in import
D:\Dev\boost_1_65_0\tools\build\src/kernel/bootstrap.jam:139: in boost-build D:\Dev\boost_1_65_0\boost-build.jam:17: in module scope
How to resolve this issue to build the libraries successfully?
Please note: I am relatively new to using Linux and cross-compilation from windows and looking forward to understand the concepts better.