Vulsan Bianca
Vulsan Bianca

Reputation: 189

How can I build the boost libraries 1_72_0 on a windows host for a linux target?

Trying to build the boost libraries, I followed the steps:

  1. open cmd in boost_1_72_0 folder
  2. bootstrap.bat gcc
  3. set cfalgs, cxxflags and linker flags to use the sysroot folder that came with the compiler:

cflags="-std=c11 -O2 --sysroot=C:\toolchain\sysroot-newlib-arm-2019.01-aarch64-elf -Wall -O0 -std=c11 -D_GLIBC_USE_NANOSLEEP -DLINUX -std=c11 -g"

cxxflags="-std=c++11 -O2 --sysroot=C:\toolchain\sysroot-newlib-arm-2019.01-aarch64-elf -Wall -O0 -std=c++11 -static-libstdc++ -D_GLIBCXX_USE_NANOSLEEP -DLINUX -std=c++11 -g"

linkerflags="--sysroot=C:\toolchain\sysroot-newlib-arm-2019.01-aarch64-elf"

  1. run the b2 command with the following options:

    .\b2.exe -d+3 --debug-configuration target-os=linux toolset=gcc-aarch64 architecture=arm address-model=64 cflags="%cflags%" cxxflags="%cxxflags%" linkflags="%linkerflags%" --with-iostreams --with-filesystem --with-regex --with-locale --with-headers --with-date_time --with-random --with-thread --with-timer --with-system -q threading=multi variant=release link=static --prefix=../boost-test/ install

I used the 8.2-2019.01, AArch64 ELF bare-metal target (aarch64-elf), compiler from this website.

After running the b2 command, I get the following message: "...failed updating 8 targets..." and the boost-test/lib folder is empty. Do you have any idea what might be the problem?

Upvotes: 3

Views: 320

Answers (0)

Related Questions