{"id":3593,"date":"2021-03-26T16:49:33","date_gmt":"2021-03-26T16:49:33","guid":{"rendered":"http:\/\/truelogic.org\/wordpress\/?p=3593"},"modified":"2021-12-01T09:33:34","modified_gmt":"2021-12-01T09:33:34","slug":"setup-wxwidgets-library-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/truelogic.org\/wordpress\/2021\/03\/26\/setup-wxwidgets-library-on-ubuntu-18-04\/","title":{"rendered":"Setup wxWidgets for C++ Library on Ubuntu 18.04"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Since the official Ubuntu repository is likely to have a dated wxWidgets version , the best option is to download the source code and compile it <\/li><li>From <a href=\"https:\/\/www.wxwidgets.org\/downloads\/\">https:\/\/www.wxwidgets.org\/downloads\/<\/a> under<em> Latest Development Release<\/em> click on<em> Source for Linux, MacOS etc.<\/em><\/li><li>This will download the tar file. Unzip the archive into a folder eg <em>wxGTK.<\/em><\/li><li>Make sure the basic development libraries are already present on the system:  <em> sudo apt-get install libgtk-3-dev build-essential checkinstall<\/em><\/li><li>Make the unzipped directory as current eg. <em>cd \/var\/wxGTk<\/em><\/li><li>Create a directory to build the library and start the build process:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>          mkdir gtk-build\n          cd gtk-build\/\n\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Configure the build flags and run configure followed by <em>make<\/em> <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>           ..\/configure --disable-shared --enable-unicode\n           sudo make install\n           sudo ldconfig<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Test the configuration with the following commands:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>wx-config --version \nwx-config --list <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Since the official Ubuntu repository is likely to have a dated wxWidgets version , the best option is to download the source code and compile <a class=\"mh-excerpt-more\" href=\"https:\/\/truelogic.org\/wordpress\/2021\/03\/26\/setup-wxwidgets-library-on-ubuntu-18-04\/\" title=\"Setup wxWidgets for C++ Library on Ubuntu 18.04\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":3595,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302,298],"tags":[],"class_list":["post-3593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cc","category-linux"],"_links":{"self":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/3593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/comments?post=3593"}],"version-history":[{"count":4,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/3593\/revisions"}],"predecessor-version":[{"id":3687,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/posts\/3593\/revisions\/3687"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media\/3595"}],"wp:attachment":[{"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/media?parent=3593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/categories?post=3593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truelogic.org\/wordpress\/wp-json\/wp\/v2\/tags?post=3593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}