Closed adamleon closed 4 years ago
I don't know why the build isn't succeeding on that machine; however, there's no need to try to build it from windows unless you're trying to build all of ROS 2 from source. This package is included in the Windows archive shipped with ROS Eloquent releases. See the link ros2-eloquent-20200124-windows-release-amd64.zip
at https://github.com/ros2/ros2/releases/tag/release-eloquent-20200124
Also see the ROS 2 Windows install documentation.
If you really want to build it from source, the error is complaining about libcurl_vendor.dll
. I'd try rebuilding the package libcurl_vendor
with colcon build --merge-install --packages-select libcurl_vendor
. If that doesn't fix it, I'd try a clean build by deleting C:/dev/ros2_eloquent/install/
and C:/dev/ros2_eloquent/build/
and trying again.
I don't really need to build it, and I have successfully installed the release version. I just wanted to try to build it, and noticed the error.
Building libcurl_vendor
does not fix the problem and does not produce any errors, neither does cleaning and trying again.
It's a heads up that there is a problem in the code somewhere, but as I said earlier, I can use the release version no problem. If you want to try to fix the problem I can assist, but if not, I can just close the issue
It's a heads up that there is a problem in the code somewhere, but as I said earlier, I can use the release version no problem. If you want to try to fix the problem I can assist, but if not, I can just close the issue
Thanks for the report! It looks like resource_retriever
successfully built in the windows nightly. I don't have enough info to identify a problem in this repo, so I'll close this issue for now. I would be happy to reopen if that turns out not to be the case.
@adamleon I am running into the same problem. Do you have any new insights into this?
Reopened. This post in another project has the same error. Is something supposed to reference libcurl.lib instead of libcurl.dll?
https://www.codeproject.com/Questions/779686/Gets-fatal-error-LNK-invalid-or-corrupt-file-canno
I've just read a similar post. #39 tries to address this problem. At least it fixes it on my local workspace.
For the record, we're seeing this error on CI now, for example: https://ci.ros2.org/job/ci_windows/9849/console
Fixed by #40 :tada:
Hello, I've been struggling to build this package on ROS2 Eloquent on Windows 10.
All other packages (except those dependent on this) build fine, and running the command:
colcon build --merge-install --packages-select resource_retriever --event-handler console_cohesion+
Outputs
I've been looking at it and found that the source might come from
# TODO(wjwwood): remove libcurl_vendor and just use system curl when possible
find_package(libcurl_vendor REQUIRED)
In the CMakeLists.txt file, but I have no idea how to start and solve it.