[CMake] downloading ftp URL problems
Kris Thielemans
kris.f.thielemans at gmail.com
Sat Jan 27 07:42:48 EST 2018
Thanks Cristian
I'll look at curl.
Https links work instantly but there isn't one for FFTW....
Kris
On 27 Jan 2018 12:07, "Cristian Adam" <cristian.adam at gmail.com> wrote:
> On Sat, Jan 27, 2018 at 12:12 PM, Kris Thielemans <
> kris.f.thielemans at gmail.com> wrote:
>
>> Dear all
>>
>>
>>
>> I have had no response to this. The problem continues with CMake 3.10.2.
>> I have no idea what causes this or how to fix it. Any help would be much
>> appreciated.
>>
>>
>>
>> Kris
>>
>>
>>
>> *From:* Kris Thielemans
>>
>> *Sent:* 19 December 2017 08:15
>> *To:* cmake at cmake.org
>> *Subject:* downloading ftp URL problems
>>
>>
>>
>> Hi
>>
>>
>>
>> I’m try to get a file via ftp in EXTERNAL_PROJECT_ADD by specifying the
>> URL. This takes a long time on my Windows machine using CMake 3.10.1 (and
>> previous versions of CMake) as it needs multiple retries:
>>
>>
>>
>> 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip'
>>
>> 2> -- Retrying...
>>
>> 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip'
>>
>> 2> -- Retry after 5 seconds (attempt #2) ...
>>
>> 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip'
>>
>> 2> -- Retry after 5 seconds (attempt #3) ...
>>
>> 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip'
>>
>> 2> -- Retry after 15 seconds (attempt #4) ...
>>
>> 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip'
>>
>> 2> -- Retry after 60 seconds (attempt #5) ...
>>
>> 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip'
>>
>> -- [download 0% complete]
>>
>> ...
>>
>>
>>
>> When using on https link, the download starts immediately.
>>
>>
>>
>> Any suggestions why this happens, what I can do about it, or how I could
>> specify an initial sleep period to skip the first retries (but I’m not sure
>> if that’d help)?
>>
>>
>>
>> Some more detail:
>>
>> I’m using Windows 10 home with latest CMake installed via the msi.
>>
>>
>>
>> Using the URL in a browser (firefox) works fine but does need a ~5s wait
>> before I get the “save” dialog box.
>>
>>
>>
>> Checking the created download.cmake, it is just a loop with different
>> sleep_seconds doing the following
>>
>>
>>
>> Set(url “ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip”)
>>
>> execute_process(COMMAND "${CMAKE_COMMAND}" -E sleep "${sleep_seconds}")
>>
>>
>>
>> file(
>>
>> DOWNLOAD
>>
>> "${url}" "C:/Users/krisf/Documents/devel/fftw-3.3.5-dll64.zip"
>>
>> SHOW_PROGRESS
>>
>> # no TIMEOUT
>>
>> STATUS status
>>
>> LOG log
>>
>> )
>>
>>
>>
>> Thanks for your help
>>
>>
>>
>
> CMake, as far as I know, uses libcurl to handle network transfers.
> You should compare cmake downloading with a curl build
> <https://curl.haxx.se/download.html>not with Firefox.
> Rumor has it that curl is part of Windows now.
>
> If the https link works instantly, why not use it also with cmake?
>
> Cheers,
> Cristian.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180127/d8c98529/attachment.html>
More information about the CMake
mailing list