-
Notifications
You must be signed in to change notification settings - Fork 29
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
ROS2 Foxy fails to build osrf_testing_tools_cpp because of unresolved external symbol pthread_atfork #56
Comments
It looks like you are mixing Dashing and Foxy here. You shouldn't do that; it definitely won't work, there are a lot of changes between them. What version are you actually trying to build? |
Sorry, I meant https://index.ros.org/doc/ros2/Installation/Foxy/Windows-Development-Setup/ |
All right, can you give the exact steps you used to get to this point then? |
#Install Chocolatey #Install prereqs #Install OpenSSL #Install Visual Studio 2019 #Install opencv #Install CMake #Install dependencies #Build from source |
I also verified my QT path matched |
I gave a quick try reproducing here, and I couldn't do it. It's also not failing on the Foxy CI jobs we've run recently (like https://ci.ros2.org/job/ci_windows/12997). Unfortunately, I don't know what else to suggest. It probably is some difference in how the environment is setup, but it's not clear to me what that is. One thing you could do is to use the Windows binaries from https://github.com/ros2/ros2/releases . That will at least get you past this issue. |
Thanks for the effort and help. I created a clean VM and retried but that also failed. It was a different message but the same underlying cause. It appears to be related to a pthreads dependency. I installed pthreads using mingw and vcpkg (both x64 and x86). I'm compiling as x64. Any thoughts on how you fulfilled the pthreads requirement? I'm pretty sure that's the underlying problem on my end. |
That's part of the thing that is weird; it shouldn't even be trying to build that stuff on Windows. That is Linux-only. But maybe the fact that MinGW is in the mix is causing our detection logic to mistake it for something else. If you remove MinGW, does it work then? |
I ran through the steps to build from source in a VS Command Prompt elevated to admin.
I am following the steps from here: https://index.ros.org/doc/ros2/Installation/Dashing/Windows-Development-Setup/
I get this error:
The log file is C:\dev\ros2_foxy\build\osrf_testing_tools_cpp\CMakeFiles shows this:
The full log file:
The text was updated successfully, but these errors were encountered: