File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 21
21
* .log
22
22
* .tlog
23
23
build
24
+ .cache
Original file line number Diff line number Diff line change @@ -167,7 +167,28 @@ function(ocv_download)
167
167
set (${DL_STATUS} FALSE PARENT_SCOPE )
168
168
set (msg_level WARNING )
169
169
endif ()
170
- message (${msg_level} "${__msg_prefix} Download failed: ${status} " )
170
+ if (status MATCHES "Couldn't resolve host name" )
171
+ message (STATUS "
172
+ =======================================================================
173
+ Couldn't download files from the Internet.
174
+ Please check the Internet access on this host.
175
+ =======================================================================
176
+ " )
177
+ elseif (status MATCHES "Couldn't connect to server" )
178
+ message (STATUS "
179
+ =======================================================================
180
+ Couldn't connect to server from the Internet.
181
+ Perhaps direct connections are not allowed in the current network.
182
+ To use proxy please check/specify these environment variables:
183
+ - http_proxy/https_proxy
184
+ - and/or HTTP_PROXY/HTTPS_PROXY
185
+ =======================================================================
186
+ " )
187
+ endif ()
188
+ message (${msg_level} "${__msg_prefix} Download failed: ${status}
189
+ For details please refer to the download log file:
190
+ ${OPENCV_DOWNLOAD_LOG}
191
+ " )
171
192
return ()
172
193
endif ()
173
194
You can’t perform that action at this time.
0 commit comments