top of page
Search
depbacabehump

CMake Download Proxy for Windows: How to Set Up and Use



I am running CMake through Qt Creator. At first I thought it might have something to do with the IDE. However Qt Creator has no proxy settings (at least none I could find) so it takes its proxy settings from the system-wise ones. And indeed checking for updates of the IDE using the "Check now" button in the updates section of the settings doesn't give any errors and say that there are no new versions (actually the case since I just downloaded the latest using the official installer).




cmake download proxy for windows



Some cmake presets for LAMMPS will attempt to download and install third party dependencies if they are not found. This can be a problem on CCI systems due to the security firewall. Fortunately, LAMMPS provides a pathway to pre-download these dependencies on your local machine instead.


1) CCI FirewallAs mentioned above on the specific cmake preset that you are trying to use for the building of LAMMPS, there will be various third party dependencies that LAMMPS will attempt to download and install.Due to the CCI security firewall. Unless you are attempting to download something from a pre-approved list of trusted domains via the Proxy ( ), any http(s) requests will be blocked. Many of the third-party dependencies thatLAMMPS attempts to download are from places that are not on the shortlist of pre-approved domains. This means that we need to set up LAMMPS dependencies in an "offline" mode. Fortunately, LAMMPS providesscripts to make this possible.


In this mode the tests will take longer and you need to be connected to the internet (and set the relevant "http_proxy" environment variable if you must use a proxy) so data files can be downloaded for the tests. You can however download all the data files in one go (See the data tarball link at the top of the Releases page)


Here is my error stacktrace from build.cmd:Starting package 4/178: qt5-base:x64-windowsBuilding package qt5-base[core]:x64-windows...CMake Warning at ports/qt5-base/portfile.cmake:5 (message):Qt5's buildsystem uses very long paths and may fail on your system.


-- Downloading _releases/qt/5.11/5.11.2/submodules/qtbase-everywhere-src-5.11.2.tar.xz...-- Downloading _releases/qt/5.11/5.11.2/submodules/qtbase-everywhere-src-5.11.2.tar.xz... Failed. Status: 22;"HTTP response code said error"CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:156 (message):


:: Proceed with installation? [Y/n]:: Retrieving packages...downloading msys2-runtime-3.1.4-3-x86_64.pkg.tar.xz...downloading bash-4.4.023-2-x86_64.pkg.tar.xz...downloading filesystem-2020.02-2-x86_64.pkg.tar.xz...downloading mintty-13.1.6-1-x86_64.pkg.tar.xz...downloading pacman-mirrors-20200329-1-any.pkg.tar.xz...downloading libzstd-1.4.4-2-x86_64.pkg.tar.xz...downloading zstd-1.4.4-2-x86_64.pkg.tar.xz...downloading pacman-5.2.1-8-x86_64.pkg.tar.xz...checking keyring...checking package integrity...loading package files...checking for file conflicts...checking available disk space...:: Processing package changes...upgrading msys2-runtime...upgrading bash...upgrading filesystem...upgrading mintty...upgrading pacman-mirrors...installing libzstd...installing zstd...upgrading pacman...warning: terminate MSYS2 without returning to shell and check for updates againwarning: for example close your terminal window instead of calling exit-- Acquiring MSYS2... OK-- Acquiring MSYS Packages...0 [main] bash (379456) shared_info::initialize: size of shared memory region changed from 51128 to 40888CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):Command failed:/slam6d-code-r2223-trunk/slam6d-code-r2223-trunk/windows/build/3rdparty/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe --noprofile --norc -c "pacman -Sy --noconfirm --needed make automake1.15"Working Directory:/slam6d-code-r2223-trunk/slam6d-code-r2223-trunk/windows/build/3rdparty/vcpkg/downloads/tools/msys2Error code: Access violationSee logs for more information:\slam6d-code-r2223-trunk\slam6d-code-r2223-trunk\windows\build\3rdparty\vcpkg\buildtrees\icu\msys-pacman-x64-windows-v141-err.log


The remote download functionality is supported only on remote repositories which proxy repositories on remote Artifactory instances. Downloading through a remote repository which proxies non Artifactory repositories is not supported. 2ff7e9595c


0 views0 comments

Recent Posts

See All

コメント


bottom of page