Replies: 3 comments 2 replies
-
clearly ninja can't find the boost headers. You probably want to look at the cmake output around |
Beta Was this translation helpful? Give feedback.
-
Hi Arvidn, thank so much for the suggestions. I did some tests, and it seems that the build went through the two functions you mentioned and failed later. Just to show the whole picture, I have to paste the entire message dumped. I am sorry if this post looks awfully long. I am wondering if you would have more comments on how to address the issue. [0/1] Re-running CMake...
-- The following RECOMMENDED packages have been found:
-- The following REQUIRED packages have been found:
-- The following features have been disabled:
-- Configuring done [1/150] Building CXX object CMakeFiles/torrent-rasterbar.dir/src/disabled_disk_io.cpp.o |
Beta Was this translation helpful? Give feedback.
-
I am just going to guess it's the boost version being
I am pretty sure you need to use a more modern version. You can do this by downloading it, extracting it, and point cmake to this instead. |
Beta Was this translation helpful? Give feedback.
-
Hi Arvidn, I am trying to build the library of the latest libtorrent myself. I tried to build with cmake. So, I have cmake, ninja, an boost installed. I was able to get went throught step 1 withour any error. However, when I tried to execute "ninja", the build failed with the following error:
/usr/bin/c++ -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_HAS_STD_CHRONO -DBOOST_ASIO_NO_DEPRECATED -DBOOST_EXCEPTION_DISABLE -DOPENSSL_NO_SSL2 -DTORRENT_BUILDING_LIBRARY -DTORRENT_BUILDING_SHARED -DTORRENT_SSL_PEERS -DTORRENT_USE_LIBCRYPTO -DTORRENT_USE_OPENSSL -D_FILE_OFFSET_BITS=64 -Dtorrent_rasterbar_EXPORTS -I../include -I../deps/try_signal -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wpedantic -Wvla -Wno-noexcept-type -Wno-format-zero-length -ftemplate-depth=512 -fexceptions -pthread -std=gnu++14 -MD -MT CMakeFiles/torrent-rasterbar.dir/src/alert_manager.cpp.o -MF CMakeFiles/torrent-rasterbar.dir/src/alert_manager.cpp.o.d -o CMakeFiles/torrent-rasterbar.dir/src/alert_manager.cpp.o -c ../src/alert_manager.cpp
In file included from ../include/libtorrent/torrent_handle.hpp:71:0,
from ../include/libtorrent/alert_types.hpp:50,
from ../include/libtorrent/aux_/alert_manager.hpp:42,
from ../src/alert_manager.cpp:37:
../include/libtorrent/address.hpp:47:40: fatal error: boost/asio/ip/network_v4.hpp: No such file or directory
#include <boost/asio/ip/network_v4.hpp>
Do you happen to know what caused this?
Beta Was this translation helpful? Give feedback.
All reactions