I can understand wanting to deploy software to a computer without internet, but why do you need to compile it there? Qt takes about 12 hours to compile on Windows, just so you know. It takes more like an hour to compile on Linux in VirtualBox.
I have some handy build scripts for cross-compiling Qt statically here: https://github.com/DavidEGrayson/nixcrpkgs Download them to a Linux machine of some sort, then install the Nix functional package manager (nixos.org). Then, in nixcrpkgs directory, run "nix-build -A win32.pavr2". This will build a mingw-w64 toolchain, then build Qt, and then build a particular application from it. It uses static linking so you get a totally standalone executable at the end, which could be transported to your Windows 7 machine. I think the build time will be around 2 hours when you are starting from scratch. It rebuilds things smartly: if you change the recipes and run the build command again, it will only build those packages whose recipe changed, or packages that depend on packages whose recipes changed. --David On Sat, Jul 1, 2017 at 2:26 PM, Maarten Verhage <m_r_verh...@hotmail.com> wrote: > Dear people of Msys2, > > > > I hope someone can help me out. My objective is to build Qt on a Windows 7 > 64 bit computer. I already installed TDM-GCC-64 which includes the Mingw-w64 > windows API. > > > > I’m already able to compile and link some of my C++ code with GCC and > Mingw-w64, with makefiles. > > > > I’m familiar with compiling and linking my programs with MSVC on the command > prompt. But I want to turn away from Microsoft for software development in > C/C++. > > > > I read somewhere Msys2 is the easiest tool to use to reach the goal of > building Qt. Msys2-x86_64 is also installed and I can get to that command > prompt. > > > > Also I would like to have my development computer OFFLINE from the internet. > The pacman command seems to want to download stuff so that is not going to > work. > > > > So, I am basically stuck at how do I provide Qt to pacman. On the > development computer I do have for example the > qt-everywhere-opensource-src-5.3.2.zip file. Of course I can download > something else from the Qt Company. But at least I know a build of > qt-everywhere-opensource-src-5.3.2.zip on gcc with mingw-w64 is what solves > my goal. > > > > Please be specific in what you recommend me to do. Then I can use your > advice and I would be very grateful about it. > > > > Best regards, > > Maarten Verhage > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Msys2-users mailing list > Msys2-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/msys2-users > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Msys2-users mailing list Msys2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msys2-users