boostorg / build

B2 makes it easy to build C++ projects, everywhere.
Boost Software License 1.0
231 stars 49 forks source link

json is not in boost.jam #733

Closed UMU618 closed 3 years ago

UMU618 commented 3 years ago

I got an error:

error: Unable to find file or target named
error:     '/boost//json'
error: referred to from project at
error:     '.'

https://github.com/boostorg/build/blob/d52f1993d906aa3fd3649a8dd5134402794bf86e/src/contrib/boost.jam#L215

Add this?

boost_lib_std json                : BOOST_JSON_DYN_LINK ;
grisumbras commented 3 years ago

How did you get the error? The target for Boost.Json library is /boost/json//boost_json. By the way, this is the wrong project for this issue (the correct one is boostorg/json).

UMU618 commented 3 years ago

@grisumbras

  1. On Debian, install b2 and boost, and then delete the source.
  2. The target for Boost.Json library is /boost/json//boost_json, right, but it needs link from the source. I use the installed one, it should be /boost//json.
  3. I've tested /boost//date_time, /boost//thread, they work.
UMU618 commented 3 years ago

On macOS, can repro this issue: brew install boost now will install v1.76.0, but Boost.Json is added from 1.75, and build/src/contrib/boost.jam didn't add it.

grisumbras commented 3 years ago

It seems, I didn't understand your issue. Are you saying, you are trying to use build/src/contrib/boost.jam in a project built with b2?

UMU618 commented 3 years ago

@grisumbras Yes. I don't like cmake, so use b2 to build my projects.

This is one of my projects used b2: https://github.com/ksyun-kenc/liuguang/tree/main/src