Open votecoffee opened 3 years ago
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/ I am installing Foxy
All right, can you give the exact steps you used to get to this point then?
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y python --version 3.8.5 choco install -y vcredist2013 vcredist2017 vcredist140
setx -m OpenCV_DIR C:\opencv
choco install -y -s C:\dev\src asio cunit eigen tinyxml-usestl tinyxml2 log4cxx bullet --force --pre python.exe -m pip install -U catkin_pkg cryptography empy ifcfg lark-parser lxml netifaces numpy opencv-python pyparsing pyyaml setuptools c:\Python38\python.exe -m pip install -U catkin_pkg cryptography empy ifcfg lark-parser lxml netifaces numpy opencv-python pyparsing pyyaml setuptools pip install -U pytest pytest-mock coverage mock pip3 install -U pytest pytest-mock coverage mock python -m pip install -U pydot PyQt5 c:\Python38\python.exe -m pip install -U pydot PyQt5 choco install graphviz --force
choco install -y git choco install -y patch pip install -U vcstool pip3 install -U vcstool pip install -U colcon-common-extensions pip3 install -U colcon-common-extensions choco install -y curl c:\python38\python.exe -m pip install -U setuptools pip pip install -U catkin_pkg EmPy lark-parser lxml numpy pyparsing pyyaml pip3 install -U catkin_pkg EmPy lark-parser lxml numpy pyparsing pyyaml pip install -U pytest coverage mock pip3 install -U pytest coverage mock pip install -U flake8 flake8-blind-except flake8-builtins flake8-class-newline flake8-comprehensions flake8-deprecated flake8-docstrings flake8-import-order flake8-quotes mypy pep8 pydocstyle pip3 install -U flake8 flake8-blind-except flake8-builtins flake8-class-newline flake8-comprehensions flake8-deprecated flake8-docstrings flake8-import-order flake8-quotes mypy pep8 pydocstyle choco install -y cppcheck
setx -m Qt5_DIR C:\Qt\5.15.0\msvc2019_64 pip install -U pydot PyQt5 pip3 install -U pydot PyQt5
choco upgrade all pip install pipupgrade pipupgrade --verbose --latest --yes
md \dev\ros2_foxy\src cd \dev\ros2_foxy curl -sk https://raw.githubusercontent.com/ros2/ros2/foxy/ros2.repos -o ros2.repos vcs import src < ros2.repos colcon build --merge-install
I also verified my QT path matched I have python 3.9 installed as well but only the directory for python 3.8.5 is in my path variable
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?
That’s a good tip. I’ll start again with a clean vm and see what I can figure out.
Get Outlook for iOShttps://aka.ms/o0ukef
From: Chris Lalancette notifications@github.com Sent: Wednesday, November 11, 2020 1:04:17 PM To: osrf/osrf_testing_tools_cpp osrf_testing_tools_cpp@noreply.github.com Cc: votecoffee votecoffee@outlook.com; Author author@noreply.github.com Subject: Re: [osrf/osrf_testing_tools_cpp] ROS2 Foxy fails to build osrf_testing_tools_cpp because of unresolved external symbol pthread_atfork (#56)
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?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fosrf%2Fosrf_testing_tools_cpp%2Fissues%2F56%23issuecomment-725575079&data=04%7C01%7C%7Cd610814ae3cc476ad76308d8866c35a5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637407146592283183%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=E2V%2F0mNmkDYNVquptg12LICeAbImjIHFooxsCOl%2BOF4%3D&reserved=0, or unsubscribehttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABY3FIYIT2FQPDVHI4C5GY3SPLG2DANCNFSM4TLKHLKQ&data=04%7C01%7C%7Cd610814ae3cc476ad76308d8866c35a5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637407146592303177%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=u3abslVBkEcwEFTYd%2BRCk3aYVgAmpSrxOfZhIktieQE%3D&reserved=0.
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: