meson: Boost not detected on Fedora

I’m using Fedora 26 and can’t use Boost like this:

boost_dep = dependency('boost', modules : [
	'serialization',
	'system',
	'filesystem',
])

Output is:

Dependency Boost (serialization, system, filesystem) found: NO

meson-log.txt doesn’t show any more information.

It works if I do this though:

cxx = meson.get_compiler('cpp')
boost_dep = [
	cxx.find_library('boost_serialization'),
	cxx.find_library('boost_system'),
	cxx.find_library('boost_filesystem'),
]

Changing the libraries to something simpler (e.g. only threads) doesn’t seem to help.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 20 (20 by maintainers)

Most upvoted comments

Dependency Boost (thread, system) found: YES 1.64

Meson encountered an error in file meson.build, line 13, column 0:
Requested Boost library 'thread' not found

the error message is confused, first, threads is found, then is prompt not found

the error message should be user frendly,

how about: Requested static Boost library 'thread' not found