<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bitpost.com/w/index.php?action=history&amp;feed=atom&amp;title=Build_Qt_4.7_on_Windows</id>
	<title>Build Qt 4.7 on Windows - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bitpost.com/w/index.php?action=history&amp;feed=atom&amp;title=Build_Qt_4.7_on_Windows"/>
	<link rel="alternate" type="text/html" href="https://bitpost.com/w/index.php?title=Build_Qt_4.7_on_Windows&amp;action=history"/>
	<updated>2026-04-19T10:29:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://bitpost.com/w/index.php?title=Build_Qt_4.7_on_Windows&amp;diff=2911&amp;oldid=prev</id>
		<title>M at 03:14, 29 January 2014</title>
		<link rel="alternate" type="text/html" href="https://bitpost.com/w/index.php?title=Build_Qt_4.7_on_Windows&amp;diff=2911&amp;oldid=prev"/>
		<updated>2014-01-29T03:14:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:14, 29 January 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot;&gt;Line 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Open the project settings and add the Reusable code path to your include paths.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Open the project settings and add the Reusable code path to your include paths.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* You should be able to compile and debug just like you do with all your skanky (j/k) Windoze code.  Yay!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* You should be able to compile and debug just like you do with all your skanky (j/k) Windoze code.  Yay!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Regenerating Visual Studio solution on project changes:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* This must be done when the project changes (files added etc)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Run Visual Studio, but CLOSE THE CURRENT SOLUTION FIRST&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* select [Qt-&gt;Open Qt Project File...]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* open the same project from the same location&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** it will ask you if you want to regenerate, say yes&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;** it will ask a couple more times if you want to overwrite&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*** [OK] to saving current changes&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*** [Discard] changes and overwrite with new ones from file&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>M</name></author>
	</entry>
	<entry>
		<id>https://bitpost.com/w/index.php?title=Build_Qt_4.7_on_Windows&amp;diff=2908&amp;oldid=prev</id>
		<title>M: Created page with &quot;== Old Windoze instructions (deprecated) == To set up for Windows development with Visual Studio (PAIN in the ASS, only do this once central repo and another platform are up a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://bitpost.com/w/index.php?title=Build_Qt_4.7_on_Windows&amp;diff=2908&amp;oldid=prev"/>
		<updated>2014-01-28T12:59:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Old Windoze instructions (deprecated) == To set up for Windows development with Visual Studio (PAIN in the ASS, only do this once central repo and another platform are up a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Old Windoze instructions (deprecated) ==&lt;br /&gt;
To set up for Windows development with Visual Studio (PAIN in the ASS, only do this once central repo and another platform are up and working)..&lt;br /&gt;
* install Visual Studio 2010&lt;br /&gt;
* install the Qt Visual Studio Add-in from [http://qt.nokia.com/downloads/visual-studio-add-in here]&lt;br /&gt;
* set up git option 1: use eclipse + egit (easy but no scripting, ugg)&lt;br /&gt;
** install eclipse CDT and egit&lt;br /&gt;
** start eclipse and select File-&amp;gt;Import, select Projects from Git, hit Clone, set up remote repo and hit next, CHANGE crappy default location to C:\Michael&amp;#039;s Data\development\thedigitalage\hangthedj.&lt;br /&gt;
** repeat for other needed projects (Reusable, etc)&lt;br /&gt;
* set up git option 2: the nightmare that is msysgit (pain to set up, but scriptable and worth it)&lt;br /&gt;
** install the &amp;quot;official&amp;quot; Git for Windows&lt;br /&gt;
*** tie it to plink, not openssl, so you can use putty&amp;#039;s pageant.exe to serve up your ssh key&lt;br /&gt;
*** make it accessible from the Windows command prompt&lt;br /&gt;
** set up the notepad++ editor to work with git&lt;br /&gt;
*** set up a batch file to run notepad++; see hangthedj/windows_scripts/npp.bat; it needs to be in a path without spaces&lt;br /&gt;
*** configure git to use npp: git config --global core.editor C:/npp.bat (be careful, windows 7 may give you fits about putting stuff in root c:\)&lt;br /&gt;
** configure git with your u/p: git config --global user.name &amp;quot;Your Name&amp;quot; &amp;amp;&amp;amp; git config --global user.email you@example.com&lt;br /&gt;
** set up a script that calls git, similar to how you would do it in linux; see hangthedj/windows_scripts/hcm.bat and huc.bat&lt;br /&gt;
* now we have to build Qt libraries since for some reason they haven&amp;#039;t released a 2010 build yet (wtf!)&lt;br /&gt;
* Get a copy of the source for your cross-platform Qt app, ideally already tested and working on another platform, on your Windows box.  Use git, whee!&lt;br /&gt;
* Install Visual Studio 2010.&lt;br /&gt;
* Install [http://support.microsoft.com/kb/2280741 this patch] to fix support for 64-bit apps.&lt;br /&gt;
* Install the DirectX SDK&lt;br /&gt;
* Install OpenSSL&lt;br /&gt;
** prebuilt Windows binaries are [http://www.slproweb.com/products/Win32OpenSSL.html here]; Note that the &amp;quot;light&amp;quot; installer doesn&amp;#039;t have the include files you&amp;#039;ll need - get the full version.  You can ignore the installer&amp;#039;s VS2008 redistributable warnings.&lt;br /&gt;
** copy libeay32.dll and ssleay32.dll from the \bin folder to your project&amp;#039;s Debug and Release directories - you will need to ship these dll&amp;#039;s with your product.&lt;br /&gt;
* Download and unzip the [http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.2.zip Qt opensource code] to [c:\\Qt\4.7.2] (or whatever version you get).&lt;br /&gt;
* Open a &amp;quot;Visual Studio command prompt&amp;quot; and compile Qt as follows.  Note that for phonon, you MUST compile Qt as &amp;lt;strong&amp;gt;shared not static&amp;lt;/strong&amp;gt;; see hangthedj\windows_scripts\mdm_build.bat.&lt;br /&gt;
&amp;lt;pre&amp;gt;nmake confclean&lt;br /&gt;
nmake clean&lt;br /&gt;
echo yes &amp;gt;yes.txt&lt;br /&gt;
configure -debug-and-release -opensource -shared -nomake demos -nomake examples -no-qt3support -qt-sql-sqlite -phonon -phonon-backend -no-webkit -no-script -openssl -I C:\OpenSSL-Win32\include -L C:\OpenSSL-Win32\lib -platform win32-msvc2010 &amp;lt;yes.txt&lt;br /&gt;
nmake&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Wait a while for that to finish...  Definitely use the above settings to skip the demos and examples if you want to save time.&lt;br /&gt;
* Because we built shared, you should now have Qt dll&amp;#039;s (including phonon) in [c:\\Qt\4.7.2\bin].  Copy the debug versions of dll&amp;#039;s (*d4.dll) into the directory with your debug exe, and repeat with (*4.dll) for release.  Again, you will need to ship these dll&amp;#039;s with your product.  See hangthedj/windows_scripts/&lt;br /&gt;
* Install the [http://qt.nokia.com/downloads/visual-studio-add-in Qt Visual Studio Add-In] (this version works with Visual Studio 2010)&lt;br /&gt;
* Open Visual Studio.  You should see a nice new Qt menu item sandwiched between View and Project.  Select [Qt-&amp;gt;Qt Options], hit Add, and browse to the source directory.  With any luck Qt will enable the OK button for ya...&lt;br /&gt;
* Select [Qt-&amp;gt;Open Qt Project (.pro)], browse to your project, and load it up.  Visual Studio will spend a few minutes getting comfortable with all the Qt headers, and then you should have a *.sln file you can work with.&lt;br /&gt;
* Open the project settings and add the Reusable code path to your include paths.&lt;br /&gt;
* You should be able to compile and debug just like you do with all your skanky (j/k) Windoze code.  Yay!&lt;/div&gt;</summary>
		<author><name>M</name></author>
	</entry>
</feed>