{"id":35,"date":"2009-02-04T16:00:25","date_gmt":"2009-02-04T23:00:25","guid":{"rendered":"http:\/\/www.reisun.com\/?p=35"},"modified":"2009-02-04T16:00:25","modified_gmt":"2009-02-04T23:00:25","slug":"statically-linking-python-25-wxpython-numpy","status":"publish","type":"post","link":"https:\/\/www.reisun.com\/?p=35","title":{"rendered":"Statically Linking Python 2.5, wxPython, Numpy"},"content":{"rendered":"<ul>\n<li>These instructions still do not work (I get a seg fault) so this will be updated until I get a working setup.<\/li>\n<li>Follow these <a href=\"http:\/\/osdir.com\/ml\/osaf.devel\/2003-05\/msg00055.html\">instructions<\/a>, but note the following caveats<\/li>\n<\/ul>\n<ol><\/ol>\n<blockquote>\n<ul>\n<li>Instead of &#8211;enable-static, use &#8211;disable-shared<\/li>\n<li>Copy distrib\/make_static_setup.py to the top level wxPython directory and save its output to Setup.local<\/li>\n<li>Copy Setup.local to the Python src\/Modules directory<\/li>\n<li>On my setup, I had to edit Setup.local and delete all -pthread instances<\/li>\n<li>After configuring Python, edit the Makefile so thatlib stdc++ is linked in.<\/li>\n<li>If you get a libinstall error when you run make install, use make -i install<\/li>\n<\/ul>\n<\/blockquote>\n<ul>\n<li>Copy the wx and wx_addons directories from the wxPython source directory<\/li>\n<li>If you have trouble with import wx, edit the Setup file in the Python src\/Modules directory and add _random operator, and other modules.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>These instructions still do not work (I get a seg fault) so this will be updated until I get a working setup. Follow these instructions, but note the following caveats Instead of &#8211;enable-static, use &#8211;disable-shared Copy distrib\/make_static_setup.py to the top level wxPython directory and save its output to Setup.local Copy Setup.local to the Python src\/Modules [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,13],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-linux","category-python"],"_links":{"self":[{"href":"https:\/\/www.reisun.com\/index.php?rest_route=\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reisun.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reisun.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reisun.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reisun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=35"}],"version-history":[{"count":0,"href":"https:\/\/www.reisun.com\/index.php?rest_route=\/wp\/v2\/posts\/35\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reisun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reisun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reisun.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}