{"id":265,"date":"2024-12-09T16:26:11","date_gmt":"2024-12-09T15:26:11","guid":{"rendered":"http:\/\/indonesiafoto.ddns.net\/?p=265"},"modified":"2025-12-17T09:24:25","modified_gmt":"2025-12-17T08:24:25","slug":"installing-ride-on-raspi","status":"publish","type":"post","link":"http:\/\/indonesiafoto.ddns.net\/index.php\/2024\/12\/09\/installing-ride-on-raspi\/","title":{"rendered":"Build wxPython On Raspberry Pi Bookworm"},"content":{"rendered":"\n<p><strong>set pyenv to your python version<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>env PYTHON_CONFIGURE_OPTS=\"--enable-shared\" pyenv install &lt;your python version&gt;\n\nexample: env PYTHON_CONFIGURE_OPTS=\"--enable-shared\" pyenv install 3.10.16<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>switch to your project directory:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/&lt;Project&gt;\n\npyenv local 3.10.16<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>First update these following Package for you PI:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install python3-dev libgtk2.0-dev libgtkd-3-dev\n\nsudo apt install python3-wxgtk4.0 wxglade python-wxtools<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install dpkg-dev build-essential libjpeg-dev libtiff-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev libgstreamer-plugins-base1.0-dev libnotify-dev freeglut3-dev libwebkitgtk-6.0-dev libghc-gtk3-dev libwxgtk3.2-dev libwxgtk-gl3.2-1 ibwebkit2gtk-4.0-dev<\/code><\/pre>\n\n\n\n<p><strong>create virtualenv with pipenv: <\/strong> <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>python3 -m pipenv shell<\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Start Build wxPython in your PI:<\/strong><br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 -m pip download wxpython==4.2.1\n\ntar xf wxPython-4.2.1.tar.gz<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>start build process in wxPython-4.2.1 folder:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd wxPython-4.2.1\n\npython3 -m pip install -r requirements.txt\n\npython3 build.py build bdist_wheel --jobs=2 <\/code><\/pre>\n\n\n\n<p><strong>Created .whl file is in ~\/wxPython-4.2.2\/dist\/<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>andie@raspi-dev02:~\/projects\/demo-02\/wxPython-4.2.2\/dist $ python3\n\n<strong>Check Installation of wxpython:<\/strong>\n\nPython 3.10.16 (main, Apr 20 2025, 09:26:24) &#91;GCC 12.2.0] on linux\n\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\n>>> import wx\n>>> print(wx.VERSION)\n(4, 2, 1, '')\n<\/code><\/pre>\n\n\n\n<p><strong>Ref:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/wiki.wxpython.org\/BuildWxPythonOnRaspberryPi\">python.org\/BuildWxPythonOnRaspberryPi<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/wxWidgets\/Phoenix\n\nhttps:\/\/wxpython.org\/blog\/2017-08-17-builds-for-linux-with-pip\/\">https:\/\/github.com\/wxWidgets\/Phoenix<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/wxWidgets\/Phoenix\n\nhttps:\/\/wxpython.org\/blog\/2017-08-17-builds-for-linux-with-pip\/\">https:\/\/wxpython.org\/blog\/2017-08-17-builds-for-linux-with-pip\/<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>set pyenv to your python version: switch to your project directory: First update these following Package for you PI: create virtualenv with pipenv: Start Build wxPython in your PI: start build process in wxPython-4.2.1 folder: Created .whl file is in ~\/wxPython-4.2.2\/dist\/ Ref:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[7,3,4],"class_list":["post-265","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","tag-raspberry-pi","tag-robotframework","tag-sw-testing"],"_links":{"self":[{"href":"http:\/\/indonesiafoto.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/indonesiafoto.ddns.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/indonesiafoto.ddns.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/indonesiafoto.ddns.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/indonesiafoto.ddns.net\/index.php\/wp-json\/wp\/v2\/comments?post=265"}],"version-history":[{"count":56,"href":"http:\/\/indonesiafoto.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":527,"href":"http:\/\/indonesiafoto.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/265\/revisions\/527"}],"wp:attachment":[{"href":"http:\/\/indonesiafoto.ddns.net\/index.php\/wp-json\/wp\/v2\/media?parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/indonesiafoto.ddns.net\/index.php\/wp-json\/wp\/v2\/categories?post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/indonesiafoto.ddns.net\/index.php\/wp-json\/wp\/v2\/tags?post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}