Installing Boost to custom directory

Installing Boost to custom directory

I have tried following&nbsp;<a href="https://www.boost.org/doc/libs/1_66_0/more/getting_started/unix-variants.html" target="_blank">the tutorial</a>&nbsp;Boost gives on their documentation for installing boost and have looked at a few other questions here to try to determine why I can't install Boost at a custom location. Perhaps I'm misunderstanding, but the&nbsp;<code>--prefix</code>&nbsp;option is supposed to specify where the Boost headers and libs will go, then&nbsp;<code>bootstrapper.sh</code>&nbsp;creates a&nbsp;<code>.jam</code>&nbsp;file that is used when&nbsp;<code>b2</code>&nbsp;or&nbsp;<code>bjam</code>&nbsp;is run.

I have tried following the tutorial Boost gives on their documentation for installing boost and have looked at a few other questions here to try to determine why I can't install Boost at a custom location. Perhaps I'm misunderstanding, but the --prefix option is supposed to specify where the Boost headers and libs will go, then bootstrapper.sh creates a .jam file that is used when b2 or bjam is run.

When I issue the following command

 ./bootstrap.sh --prefix="$HOME/dev/emulator/src/boost" --includedir=headers --libdir=dist --with-libraries=date_time

I see that the correct lines are added to the generated project-config.jam file

option.set prefix : /home/liam/dev/emulator/src/boost ;
option.set exec-prefix : /home/liam/dev/emulator/src/boost ;
option.set libdir : dist ;
option.set includedir : headers ;

However, when I run ./b2 as instructed by the documentation, it installs the Boost libraries to the source folder; i.e.

The following directory should be added to compiler include paths:

/home/liam/Downloads/brave/boost_1_66_0

The following directory should be added to linker library paths:

/home/liam/Downloads/brave/boost_1_66_0/stage/lib

And running ./b2 install gives me no file output to the intended directory either.

c++

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Dicey Issues in C/C++

C/C++ problems. If you are familiar with C/C++then you must have come across some unusual things and if you haven’t, then you are about to. The below codes are checked twice before adding, so feel free to share this article with your friends.

Loops in C++ | For, While, and Do While Loops in C++

In this Video We are going to see how to use Loops in C++. We will see How to use For, While, and Do While Loops in C++.

Using isdigit() in C/C++

In this article, we'll take a look at using the isdigit() function in C/C++. This is a very simple way to check if any value is a digit or not. Let's look

Object Oriented Programming in C++ | C++ OOPs Concepts | Learn Object Oriented C++

C++ is general purpose, compiled, object-oriented programming language and its concepts served as the basis for several other languages such as Java, Python, Ruby, Perl etc.

A Complete Guide to fread() in C/C++

In this article, we’ll take a look at using fread() in C/C++.