-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation errors #4
Comments
Hi @felmur , is it possible for you to install appropriate boost version locally? As I see in travis file https://github.com/qmule/libed2k/blob/master/.travis.yml Boost 1.55 should be ok. |
Hi @a-pavlov, my linux distro (Archlinux) only support boost 1.69. Regards. |
@felmur You can download boost 1.55 https://www.boost.org/users/history/version_1_55_0.html and build it manually. About updating libed2k sources to support boost 1.69 - actually this project development is on hold and I don't know who will work on this. |
@felmur, as an option, you could build libed2k inside isolated docker with boost 1.55 |
thank you all for your help. |
@isharov,
Moreover, docker-boost seems to install some include files but not called libraries, which could only exist by compiling the entire boost package <1.66. In this case, it no longer makes sense to use a docker: I remove the boost library installed on my system and proceed to compile the package directly on my system. Thanks anyway for letting me discover docker, which was a tool I didn't know. Greetings |
@a-pavlov, Greetings |
Any updates on this? |
Hi, i'm trying to compile your library under archlinux and I have got some errors.
I think that those errors are related to newer version of boost library.
First error:
/home/felice/libed2k/include/libed2k/error_code.hpp:174:29: error: ‘get_system_category’ is not a member of ‘boost::system’; did you mean ‘system_category’? 174 | { return boost::system::get_system_category(); } | ^~~~~~~~~~~~~~~~~~~ | system_category /home/felice/libed2k/include/libed2k/error_code.hpp: In function ‘const boost::system::error_category& libed2k::get_posix_category()’: /home/felice/libed2k/include/libed2k/error_code.hpp:181:29: error: ‘get_generic_category’ is not a member of ‘boost::system’; did you mean ‘generic_category’? 181 | { return boost::system::get_generic_category(); } | ^~~~~~~~~~~~~~~~~~~~ | generic_category
I solved these two errors by replacing "get_system_category" with "system_category" and "get_generic_category" with "generic_category".
The compilation goes on but stops again on the following error:
/home/felice/libed2k/src/broadcast_socket.cpp:284:69: error: no matching function for call to ‘boost::asio::basic_datagram_socket<boost::asio::ip::udp>::basic_datagram_socket(libed2k::io_service&)’ 284 | boost::shared_ptr<datagram_socket> s(new datagram_socket(ios)); | ^
Any ideas for this?
Regards.
The text was updated successfully, but these errors were encountered: