0

I have a raspberry pi board and I want to cross compile the boost to use date_time lib form Ubuntu 22.04 host. every time I try to compile and check the file type using file command it gives this

libboost_date_time.so.1.66.0: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, with debug_info, not stripped

I want to compile this as SYSV to work on the board.

I also compiled other programs with the same compiler and it works - as long as I don't use the boost lib.

The output I want is ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, with debug_info, not stripped

To be specific

Host OS : Ubuntu 22.04 Target OS :raspbian gnu/linux 11 (bullseye) Compiler : cross-pi-gcc-10.3.0-2/bin/arm-linux-gnueabihf-gcc-10.3.1

I tried to use the user-config.jam to change the configuration but it is always the same .

My configuration is as follows


# Boost.Build Configuration
# Automatically generated by bootstrap.sh

import option ;
import feature ;

`# Compiler configuration. This definition will be used unless
# you already have defined some toolsets in your user-config.jam
# file.
if ! gcc in [ feature.values <toolset> ]
{
    using gcc : : "/home/hisham/Downloads/pi/cross-pi-gcc-10.3.0-2/bin/arm-linux-gnueabihf-gcc-10.3.1" ;
}

project : default-build <toolset>gcc ;

path-constant ICU_PATH : /usr ;


# List of --with-<library> and --without-<library>
# options. If left empty, all libraries will be built.
# Options specified on the command line completely
# override this variable.
libraries =  ;

# These settings are equivivalent to corresponding command-line
# options.
option.set prefix : /home/hisham/Desktop/newRS/usr/local ;
option.set exec-prefix : /home/hisham/Desktop/newRS/usr/local ;
option.set libdir : /home/hisham/Desktop/newRS/usr/local/lib ;
option.set includedir : /home/hisham/Desktop/newRS/usr/local/include ;


# Stop on first error
option.set keep-going : false ;

`

Can anyone help ?

0 Answers0