{"id":1081,"date":"2018-09-29T14:29:16","date_gmt":"2018-09-29T12:29:16","guid":{"rendered":"https:\/\/hannes.enjoys.it\/blog\/?p=1081"},"modified":"2018-09-29T14:34:26","modified_gmt":"2018-09-29T12:34:26","slug":"building-qgis-with-debugging-symbols","status":"publish","type":"post","link":"https:\/\/hannes.enjoys.it\/blog\/2018\/09\/building-qgis-with-debugging-symbols\/","title":{"rendered":"Building QGIS with debugging symbols"},"content":{"rendered":"<p>As I keep searching the web for way too long again and again, I hope this post will be #1 next I forget how to build QGIS with debugging symbols.<\/p>\n<p>Add <code>CMAKE_BUILD_TYPE=Debug<\/code> to the <code>cmake<\/code> invocation.<\/p>\n<p>E.g.:<\/p>\n<pre>cmake -G \"Unix Makefiles\" ..\/ \\\r\n    -DCMAKE_BUILD_TYPE=Debug\r\n    ...<\/pre>\n<p>For a not as safe but more performant compilation, you can use <a href=\"https:\/\/cmake.org\/cmake\/help\/latest\/variable\/CMAKE_BUILD_TYPE.html\">RelWithDebInfo<\/a>. I just found out today but <strong>will use that in the future rather than the full-blown Debug<\/strong>. See <a href=\"https:\/\/cmake.org\/pipermail\/cmake\/2001-October\/002479.html\">https:\/\/cmake.org\/pipermail\/cmake\/2001-October\/002479.html<\/a> for some background.<\/p>\n<p>On Archlinux, also add <code>options=(debug !strip)<\/code> in your PKGBUILD to have them not stripped away later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I keep searching the web for way too long again and again, I hope this post will be #1 next I forget how to build QGIS with debugging symbols. Add CMAKE_BUILD_TYPE=Debug to the cmake invocation. E.g.: cmake -G &#8220;Unix Makefiles&#8221; ..\/ \\ -DCMAKE_BUILD_TYPE=Debug &#8230; For a not as safe but more performant compilation, you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,31,40],"tags":[],"class_list":["post-1081","post","type-post","status-publish","format-standard","hentry","category-linux","category-qgis","category-small-things"],"_links":{"self":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/1081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/comments?post=1081"}],"version-history":[{"count":5,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/1081\/revisions"}],"predecessor-version":[{"id":1086,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/1081\/revisions\/1086"}],"wp:attachment":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/media?parent=1081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/categories?post=1081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/tags?post=1081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}