{"id":1054,"date":"2011-02-21T21:13:18","date_gmt":"2011-02-22T02:13:18","guid":{"rendered":"http:\/\/bitpost.com\/news\/?p=1054"},"modified":"2011-04-15T20:49:49","modified_gmt":"2011-04-16T01:49:49","slug":"using-visual-studio-2010-with-qt-creator-including-debugger","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2011\/using-visual-studio-2010-with-qt-creator-including-debugger\/","title":{"rendered":"Using Visual Studio 2010 with QT Creator including debugger"},"content":{"rendered":"<p><strong>UPDATE<\/strong>: CDB (the Qt name for the Windows debugger) sucks &#8211; no variable monitoring, etc.  Useless.  If you can, switch to Visual Studio to build Qt apps under windoze.  See <a href=\"http:\/\/bitpost.com\/news\/2011\/03\/02\/compiling-and-debugging-your-qt-47-phonon-app-with-visual-studio-2010\/\">these<\/a> <a href=\"http:\/\/bitpost.com\/news\/2011\/03\/21\/advantages-of-using-the-visual-studio-2010-debugger-with-your-qt-app\/\">posts<\/a> instead.<\/p>\n<p>The last time I set up to build my Qt apps under Windoze, I just selected the Mingw option and everything seemed to work just fine.  For some reason I fell down the rabbit hole of using Visual Studio this time.  I could give two craps about that, I just want it to work and get out of the way.  But I had to stumble through these steps first:<\/p>\n<ul>\n<li>Install Visual Studio 2010<\/li>\n<li>Install <a href=\"http:\/\/qt.nokia.com\/downloads\/sdk-windows-cpp\">LGPL Qt SDK for Windows<\/a><\/li>\n<li>Also install <a href=\"http:\/\/qt.nokia.com\/downloads\/visual-studio-add-in\">Visual Studio Add-in<\/a> from the same page<\/li>\n<li>Add c:\\Qt\\4.7.1\\bin to the PATH variable.<\/li>\n<li>Build Qt from a Visual Studio prompt:\n<pre>cd C:\\Qt\\2010.05\\qt\r\nrm \/S \/Q c:\\Qt\\2010.05\\qt\\tmp\r\nnmake confclean\r\nnmake clean\r\nconfigure -debug-and-release -opensource -shared -no-qt3support -qt-sql-sqlite -phonon -phonon-backend -webkit -platform win32-msvc2003\r\nnmake<\/pre>\n<\/li>\n<li>Install <a href=\"http:\/\/www.microsoft.com\/whdc\/devtools\/debugging\/installx86.Mspx\">Debugging Tools for Windows 32-bit Version<\/a>.  Only install the shit in the red circle:\n<p><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/thedigitalmachine.com\/images\/news\/2011\/Debugging%20Tools%20from%20the%20Windows%20SDK.png\" alt=\"Debugging Tools options\" \/><\/li>\n<li>Then browse here:\n<pre>C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\Redist\\Debugging Tools for Windows<\/pre>\n<p> and run dbg_x86.msi to install the 32-bit stuff&#8230;<\/li>\n<li>Then run QT, select Tools->Options, and select this path in the CDB tab:\n<pre>C:\\Program Files (x86)\\Debugging Tools for Windows (x86)<\/pre>\n<p>&#8230; what bs&#8230;<\/li>\n<li>Write some freakin&#8217; QT code, geesh&#8230;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>UPDATE: CDB (the Qt name for the Windows debugger) sucks &#8211; no variable monitoring, etc. Useless. If you can, switch to Visual Studio to build Qt apps under windoze. See these posts instead. The last time I set up to build my Qt apps under Windoze, I just selected the Mingw option and everything seemed [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[2],"tags":[26,28,25],"class_list":["post-1054","post","type-post","status-publish","format-standard","hentry","category-chatter","tag-debugging","tag-qt","tag-visual-studio"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-h0","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=1054"}],"version-history":[{"count":13,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1054\/revisions"}],"predecessor-version":[{"id":1226,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1054\/revisions\/1226"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=1054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=1054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=1054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}