• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling error: "boost::asio header not found."

Morteusz

New Member
Joined
Oct 22, 2023
Messages
11
Reaction score
3
Hey guys,

trying to compile source but unable to do so, getting error:
checking for __gmpz_init2 in -lgmp... yes
checking for main in -lboost_thread-gcc-mt... no
checking for main in -lboost_thread-mt... no
checking for main in -lboost_thread... yes
checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... no
checking for main in -lboost_regex... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... no
checking for main in -lboost_system... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... no
checking for main in -lboost_date_time... yes
checking for main in -lboost_filesystem-gcc-mt... no
checking for main in -lboost_filesystem-mt... no
checking for main in -lboost_filesystem... yes
checking for boost/asio.hpp... no
configure: error: "boost::asio header not found."

Is anyone able to help me solve the issue?
Thanks
 
Was able to go pass asio error but now I am getting unordered_set.

Was using Gesior tutorial to change /tr1/ and std but it didnt help.

configure: error: "boost::unordered_set header not found."
 
Was able to go pass asio error but now I am getting unordered_set.

Was using Gesior tutorial to change /tr1/ and std but it didnt help.
Bash:
apt-get install libasio-dev
Then replace these strings in all CPP and H files:
Code:
boost::asio:: => asio::
boost::system:: => asio::
boost/asio.hpp => asio.hpp

Then open configure.ac. Delete these lines:
Code:
AC_CHECK_LIB(boost_system-gcc-mt, main, , [
       AC_CHECK_LIB(boost_system-mt, main, , [
               AC_CHECK_LIB(boost_system, main, , [
                       AC_MSG_ERROR("Linking against boost::system library failed.")])
       ])
])

Find this line:
Code:
AC_CHECK_HEADERS([boost/asio.hpp], ,[AC_MSG_ERROR("boost::asio header not found.")])

and turn it into:
Code:
AC_CHECK_HEADERS([asio.hpp], ,[AC_MSG_ERROR("boost::asio header not found.")])


Solution by

Tiranow

 
Back
Top