-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
SSL error building/configuring library on Ubuntu 22.04 in WSL2 and building docs #2489
Comments
So it builds and installs OpenSSL properly: But then it finds the wrong one:
Finally it breaks with some undefined reference to SSL, which doesn't seem surprising given what happens before.
So now the question is: why does it not find the correct OpenSSL in WSL2? 😇 It seems like it works in CI (Ubuntu 22.04), so somehow something is different in WSL2. If someone can debug it, I would personally approach it like this:
From all those points, maybe the first question would be: which version of CMake are you running on your WSL2, and could you try an updated version? It should be possible to download the latest version from the CMake website and install it 👍. |
I think it doesn't find the correct OpenSSL in general. This is on my Ubuntu 24.04, with SUPERBUILD:
|
Which version of CMake do you have with Ubuntu 24.04? |
I don't think it's that. I think it's that we're not actually using Just testing that now, will make a PR soon. |
Hm, adding the manual |
Maybe we should throw out openssl and use boringssl instead, although not sure what Curl will do in that case. |
Adding this for debugging in src/CMakeLists.txt:
Ubuntu 22.04 with cmake 3.22.1:
Ubuntu 24.04 with cmake 3.28.3:
What a mess. |
I managed to copy over the FindOpenSSL.cmake file from 3.28.3 and add it to the modules carried by MAVSDK. This seems to work for |
So CMake 3.28.3 finds it, but CMake 3.22.1 doesn't?
Did you try adding it here? |
@JonasVautherin good idea. Let's see if this works: #2491 |
The build log for the docs is linked below. This is latest main as per today, set up as per the build instructions on Ubuntu 22.04. The environment was not completely clean, but the build was. Same error if I do the configure:
https://gist.github.com/hamishwillee/4b23a2ca97fb587a6e356bddb5ec63dd
Last few lines are:
The text was updated successfully, but these errors were encountered: