{"id":110,"date":"2007-03-31T18:57:00","date_gmt":"2007-03-31T16:57:00","guid":{"rendered":"http:\/\/www.thelins.se\/johan\/blog\/2007\/03\/windows-cmake-and-console\/"},"modified":"2007-03-31T18:57:00","modified_gmt":"2007-03-31T16:57:00","slug":"windows-cmake-and-console","status":"publish","type":"post","link":"https:\/\/www.thelins.se\/johan\/blog\/2007\/03\/windows-cmake-and-console\/","title":{"rendered":">Windows, CMake and console"},"content":{"rendered":"<p>>When playing around with Qt on Windows one always runs into the console issue. Some sooner, others later. The problem is that a Windows application does not have a console by default. When thinking about this, it is pretty obvious, given the nature of Windows.<\/p>\n<p>This means that qDebug and friends cannot output to anything, so you don&#8217;t get any feedback at run-time. The solution to this has always been to add a line reading CONFIG += console in the project file.<\/p>\n<p>Now I&#8217;m trying to find out how this is handles when I&#8217;m building using CMake. Does anybody know? Please leave a comment!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>>When playing around with Qt on Windows one always runs into the console issue. Some sooner, others later. The problem is that a Windows application does not have a console by default. When thinking about this, it is pretty obvious, given the nature of Windows. This means that qDebug and friends cannot output to anything, &hellip; <a href=\"https:\/\/www.thelins.se\/johan\/blog\/2007\/03\/windows-cmake-and-console\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">>Windows, CMake and console<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-110","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":0,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts\/110\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/media?parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/categories?post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/tags?post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}