Trying to compile libtorrent-daemon (recursive git checkout) ends up failing because no toolset is found. I've tried to setup the environment as textproc/kenlm but it still fails with the same error. On Debian you just need to run 'bjam' and it works so I guess it's some quirk regarding FreeBSD.
setenv BOOST_BUILD_PATH /usr/local/share/boost_build
diizzy@hanekawa:~/libtorrent-bjam/libtorrent-daemon % bjam
OS = FREEBSD
warning: No toolsets are configured.
warning: Configuring default toolset "gcc".
warning: If the default is wrong, you may not be able to build C++ programs.
warning: Use the "--toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warn: Unable to construct ./libtorrent-daemon
error: no generators were found for type 'EXE'
error: and the requested properties
error: make sure you've configured the needed tools
To debug this problem, try the --debug-generators option.
Not setting a BOOST_BUILD_PATH at all results in bjam not finding jam-files at all. Setting clang as toolset doesn't work as boost doesn't know about clang or so it says.
This is on FreeBSD 11.1 and a current version of the ports tree.
(In reply to daniel.engberg.lists from comment #0)
> setenv BOOST_BUILD_PATH /usr/local/share/boost_build
No one maintains boost_build, not even upstream. What Debian probably does is install *.jam files from tools/build/ that match installed boost-jam version.
Try the following workaround:
% cd /usr/ports/devel/boost-libs
% make clean patch BATCH=
% setenv BOOST_BUILD_PATH `make -V WRKSRC`/tools/build/
% cd ~/libtorrent-bjam/libtorrent-daemon
Many thanks for the instructions, libtorrent-daemon (https://github.com/arvidn/libtorrent-daemon/) compile unfortunately the code is broken in libtorrent-webui but that's not related to bjam.
Sorry for the late reply