Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixed building on RHEL/CentOS 8. There were three main issues
with compiling on RHEL/CentOS 8:
boost::asio::io_service
was deprecated in 1.66. Thecommon/io_service.h
header creates a typedefs io_contextto io_service if the boost version is greater than or equal
to 1.66.
boost::asio::basic_stream_socket
native()
method deprecatedin 1.47. The version of boost is checked when the
native()
is used and switches to
native_handle()
if the version isgreater than 1.47.
proj_api.h
is deprecated. Added a define tosrc/CMakeLists.txt
forACCEPT_USE_OF_DEPRECATED_PROJ_API_H
.Tested on CentOS 7 and CentOS 8.
Fixes #51.
Additional Note:
src/CMakeLists.txt
definesMOOS_LIBRARIES
to beMOOS
. This should possibly get changed to using the namespaced versionMOOS::MOOS
.