-
Notifications
You must be signed in to change notification settings - Fork 1
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
FOGL-9330 Update requirements.sh to allow build on Ubuntu 2x #52
base: develop
Are you sure you want to change the base?
Conversation
Error specific to Ubuntu 22.04 now
|
@Mohit04tomar For the test purpose I kept The compilation seems okay but some other errors:
|
Looks like: We need to make it any, lib or libs fledge-south-dnp3/CMakeLists.txt Line 71 in 57722d1
cpp/lib/include |
The new run fails to link find_library(LIBOPENDP3 libopendnp3.a "${OPENDNP3_LIB_DIR}/build") While we are getting .so
Build logs says
|
# stick with release 2.3.0 of opendnp3 | ||
git checkout tags/2.3.0 | ||
# Set TLS flag | ||
useTLS=1 | ||
elif [[ ${OS_NAME} == *"Ubuntu"* && ( ${OS_VERSION} == "22."* || ${OS_VERSION} == "24."* ) ]]; then | ||
# Set TLS flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it not a good idea to stick a fixed tag ..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally Yes.
Looks like there were compatibility issues hence this approach.
Though I can see this can be improved and tested with newer stable release.
Bullseye Raspberry Pi OS also can have TLS.
message(FATAL_ERROR "OPENDNP3_LIB_DIR ${OPENDNP3_LIB_DIR}/cpp/libs/include \n" | ||
"does not appear to be pointing at a valid OPENDNP3_LIB_DIR source tree") | ||
return() | ||
# Set the base directory where the 'lib' or 'libs' directories should be located |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the background for this change ..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 2.3.x tag does not work well with Ubuntu 22.04 with gcc11. There is a fix in 3.x.x release tag which has include limits.
There is a change in CMake that by default turned off static lib creation but shared lib.
And also 3.x.x has changed directory name - libs vs lib.
We can enable static lib with a new var in CMake.
With the last commit
|
Allow any Ubuntu 2x