Robotics StackExchange | Archived questions

Error downloading curl while building a ROS2 code for windows

While building a ROS2 code on windows, there is a step called Process package 'libcurl_vendor' with context:,

it tries to download curl from this url :

Using src='https://github.com/curl/curl/releases/download/curl-7_57_0/curl-7.57.0.tar.gz'

but there is no such url. you can check it by directly entering the url in a web browser. So while building it tries to connect to this address but since there is no such address, it throws an error :

CUSTOMBUILD : error : downloading 'https://github.com/curl/curl/releases/download/curl-7_57_0/curl-7.57.0.tar.gz' failed [C:\dev\ros2\build\libcurl_vendor\curl-7.57.0.vcxproj]

followed by

Command 'C:\dev\ros2\build\libcurl_vendor\cmake__build.bat C:\Program Files (x86)\MSBuild\14.0\bin\amd64\msbuild.EXE /m:4 /p:Configuration=Release C:\dev\ros2\build\libcurl_vendor\libcurl_vendor.sln' failed in 'C:\dev\ros2\build\libcurl_vendor' with exit code '1'

What is the alternative to this ? How can I direct the builder to look at the correct url ?

EDIT 1:

error while building the \dev\ros2 folder tree

EDIT 2 :

opening the link inside VM

Asked by aks on 2018-06-15 05:36:25 UTC

Comments

Can you please format your question a bit better? It's a bit of a wall-of-text right now.

Asked by gvdhoorn on 2018-06-15 05:44:17 UTC

@gvdhoorn : edited

Asked by aks on 2018-06-15 06:21:16 UTC

Maybe the URL was temporarily down? It works when I copy/paste it into my browser.

Asked by sloretz on 2018-06-15 09:24:22 UTC

Yes, now i see that the link works manually but not while building. I am trying to build it on a Virtual Machine. Could this be a problem as it says again and again port 443 time out which is basically a https connection. I have attached a screenshot.

Asked by aks on 2018-06-15 10:35:21 UTC

When you say the link works manually, was that inside the VM or outside the VM? Does the link work manually in a browser inside the VM?

Asked by sloretz on 2018-06-15 10:43:01 UTC

@sloretz...good question. I checked the link on my host machine and it worked. Opening it manually inside the VM opens up a document structure as attached.

Asked by aks on 2018-06-15 10:47:38 UTC

@aakash_sehgal Please don't use an image to display text. Images are not searchable and people cannot copy and paste the text from the image. Please update your question with a copy and paste of the error instead.

Asked by jayess on 2018-06-15 12:22:57 UTC

Answers

If your VM has an invalid date SSL connections may fail. Though from your error it appears that you have a name resolution issue which is also different.

Asked by tfoote on 2018-06-15 16:32:46 UTC

Comments

@tfoote : what could be a possible solution which i can discuss with my network administrator.

Asked by aks on 2018-06-15 16:35:08 UTC

You need to diagnose the underlying problem before you can get help solving it. Once you can manually download it in the VM then you can try the automated techniques. If it works on your desktop it's likely an issue with your VM not with the network.

Asked by tfoote on 2018-06-15 16:41:53 UTC