WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Compiling wxpython on tiny core linux.  (Read 3986 times)

Offline perry

  • Newbie
  • *
  • Posts: 16
Compiling wxpython on tiny core linux.
« on: October 19, 2010, 06:22:04 AM »
Hi,

I try to compile wxpython, but i get the following build error.
Wat can i change to be able to build wxpython on tiny core linux.

Perry

WARNING: WXWIN not set in environment. Assuming '..'
Found wx-config: /usr/local/bin/wx-config
    Using flags:  --toolkit=gtk2 --unicode=yes --version=2.8

  Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --unicode=yes --version=2.8 --cxxflags
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.


  Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --unicode=yes --version=2.8 --libs
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.


  Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --unicode=yes --version=2.8 --basename
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.


  Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --unicode=yes --version=2.8 --release
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.


  Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --unicode=yes --version=2.8 --prefix
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

Preparing CORE...
Preparing GLCANVAS...

  Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --unicode=yes --version=2.8 --libs
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.


  Warning: No config found to match: /usr/local/bin/wx-config --toolkit=gtk2 --unicode=yes --version=2.8 --libs gl
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

Preparing STC...
Preparing GIZMOS...
running build
running build_py
copying wx/__version__.py -> build-gtk2.unicode/lib.linux-i686-2.4/wx
copying wx/build/build_options.py -> build-gtk2.unicode/lib.linux-i686-2.4/wx/build
package init file 'wx/tools/XRCed/plugins/__init__.py' not found (or not a regular file)
package init file 'wx/tools/XRCed/plugins/__init__.py' not found (or not a regular file)
running build_ext
building '_core_' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -Iinclude -Isrc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/python2.4 -c src/gtk/_core_wrap.cpp -o build-gtk2.unicode/temp.linux-i686-2.4/src/gtk/_core_wrap.o -O3
In file included from src/gtk/_core_wrap.cpp:2713:
include/wx/wxPython/wxPython_int.h:19:19: error: wx/wx.h: No such file or directory
include/wx/wxPython/wxPython_int.h:21:25: error: wx/busyinfo.h: No such file or directory
include/wx/wxPython/wxPython_int.h:22:22: error: wx/caret.h: No such file or directory
include/wx/wxPython/wxPython_int.h:23:25: error: wx/choicebk.h: No such file or directory
include/wx/wxPython/wxPython_int.h:24:24: error: wx/clipbrd.h: No such file or directory
include/wx/wxPython/wxPython_int.h:25:25: error: wx/colordlg.h: No such file or directory
include/wx/wxPython/wxPython_int.h:26:23: error: wx/config.h: No such file or directory
include/wx/wxPython/wxPython_int.h:27:23: error: wx/cshelp.h: No such file or directory
include/wx/wxPython/wxPython_int.h:28:25: error: wx/dcmirror.h: No such file or directory
include/wx/wxPython/wxPython_int.h:29:21: error: wx/dcps.h: No such file or directory
include/wx/wxPython/wxPython_int.h:30:24: error: wx/dirctrl.h: No such file or directory
include/wx/wxPython/wxPython_int.h:31:23: error: wx/dirdlg.h: No such file or directory
include/wx/wxPython/wxPython_int.h:32:23: error: wx/numdlg.h: No such file or directory
include/wx/wxPython/wxPython_int.h:33:20: error: wx/dnd.h: No such file or directory
include/wx/wxPython/wxPython_int.h:34:24: error: wx/docview.h: No such file or directory
include/wx/wxPython/wxPython_int.h:35:24: error: wx/encconv.h: No such file or directory
include/wx/wxPython/wxPython_int.h:36:25: error: wx/fdrepdlg.h: No such file or directory
include/wx/wxPython/wxPython_int.h:37:25: error: wx/fileconf.h: No such file or directory
include/wx/wxPython/wxPython_int.h:38:24: error: wx/filesys.h: No such file or directory
include/wx/wxPython/wxPython_int.h:39:24: error: wx/fontdlg.h: No such file or directory
include/wx/wxPython/wxPython_int.h:40:24: error: wx/fs_inet.h: No such file or directory
include/wx/wxPython/wxPython_int.h:41:23: error: wx/fs_mem.h: No such file or directory
include/wx/wxPython/wxPython_int.h:42:23: error: wx/fs_zip.h: No such file or directory
include/wx/wxPython/wxPython_int.h:43:24: error: wx/gbsizer.h: No such file or directory
include/wx/wxPython/wxPython_int.h:44:25: error: wx/geometry.h: No such file or directory
include/wx/wxPython/wxPython_int.h:45:25: error: wx/htmllbox.h: No such file or directory
include/wx/wxPython/wxPython_int.h:46:22: error: wx/image.h: No such file or directory
include/wx/wxPython/wxPython_int.h:47:25: error: wx/imaglist.h: No such file or directory
include/wx/wxPython/wxPython_int.h:48:21: error: wx/intl.h: No such file or directory
include/wx/wxPython/wxPython_int.h:49:23: error: wx/laywin.h: No such file or directory
include/wx/wxPython/wxPython_int.h:50:25: error: wx/listbook.h: No such file or directory
include/wx/wxPython/wxPython_int.h:51:25: error: wx/minifram.h: No such file or directory
include/wx/wxPython/wxPython_int.h:52:25: error: wx/notebook.h: No such file or directory
include/wx/wxPython/wxPython_int.h:53:22: error: wx/print.h: No such file or directory
include/wx/wxPython/wxPython_int.h:54:25: error: wx/printdlg.h: No such file or directory
include/wx/wxPython/wxPython_int.h:55:24: error: wx/process.h: No such file or directory
include/wx/wxPython/wxPython_int.h:56:24: error: wx/progdlg.h: No such file or directory
include/wx/wxPython/wxPython_int.h:57:24: error: wx/sashwin.h: No such file or directory
include/wx/wxPython/wxPython_int.h:58:25: error: wx/spinbutt.h: No such file or directory
include/wx/wxPython/wxPython_int.h:59:25: error: wx/spinctrl.h: No such file or directory
include/wx/wxPython/wxPython_int.h:60:23: error: wx/splash.h: No such file or directory
include/wx/wxPython/wxPython_int.h:61:25: error: wx/splitter.h: No such file or directory
include/wx/wxPython/wxPython_int.h:62:25: error: wx/statline.h: No such file or directory
include/wx/wxPython/wxPython_int.h:63:23: error: wx/stream.h: No such file or directory
include/wx/wxPython/wxPython_int.h:64:23: error: wx/sysopt.h: No such file or directory
include/wx/wxPython/wxPython_int.h:65:24: error: wx/taskbar.h: No such file or directory
include/wx/wxPython/wxPython_int.h:66:23: error: wx/tglbtn.h: No such file or directory
include/wx/wxPython/wxPython_int.h:67:23: error: wx/tipwin.h: No such file or directory
include/wx/wxPython/wxPython_int.h:68:25: error: wx/toolbook.h: No such file or directory
include/wx/wxPython/wxPython_int.h:69:24: error: wx/tooltip.h: No such file or directory
include/wx/wxPython/wxPython_int.h:70:25: error: wx/treebook.h: No such file or directory
include/wx/wxPython/wxPython_int.h:71:22: error: wx/vlbox.h: No such file or directory
include/wx/wxPython/wxPython_int.h:72:24: error: wx/vscroll.h: No such file or directory
include/wx/wxPython/wxPython_int.h:73:24: error: wx/dateevt.h: No such file or directory
include/wx/wxPython/wxPython_int.h:74:25: error: wx/datectrl.h: No such file or directory
include/wx/wxPython/wxPython_int.h:75:22: error: wx/power.h: No such file or directory
include/wx/wxPython/wxPython_int.h:76:26: error: wx/hyperlink.h: No such file or directory
include/wx/wxPython/wxPython_int.h:77:27: error: wx/pickerbase.h: No such file or directory
include/wx/wxPython/wxPython_int.h:78:26: error: wx/clrpicker.h: No such file or directory
include/wx/wxPython/wxPython_int.h:79:27: error: wx/filepicker.h: No such file or directory
include/wx/wxPython/wxPython_int.h:80:31: error: wx/fontpicker.h: No such file or directory
include/wx/wxPython/wxPython_int.h:81:25: error: wx/collpane.h: No such file or directory
include/wx/wxPython/wxPython_int.h:82:25: error: wx/srchctrl.h: No such file or directory
include/wx/wxPython/wxPython_int.h:83:33: error: wx/generic/datectrl.h: No such file or directory

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: Compiling wxpython on tiny core linux.
« Reply #1 on: October 27, 2010, 05:54:56 PM »
Looks like the wxwidgets part isn't installed.

Offline perry

  • Newbie
  • *
  • Posts: 16
Re: Compiling wxpython on tiny core linux.
« Reply #2 on: October 29, 2010, 05:36:34 PM »
I got it to work.

Below is the build script, when i have more time, i wil create multiple packages.

Perry

Looks like the wxwidgets part isn't installed.

#!/bin/sh

export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export LDFLAGS="-Wl,-O1"

# Create mark file.
touch /tmp/mark

# Compile and install wxgtk.
tar -xjvf wxPython-src-2.8.11.0.tar.bz2
cd wxPython-src-2.8.11.0/

./configure --enable-unicode --with-gtk
make  -C locale allmo

make install
ldconfig

make  -C contrib/src/stc
make  -C contrib/src/stc install
make  -C contrib/src/ogl
make  -C contrib/src/ogl install
make  -C contrib/src/gizmos
make  -C contrib/src/gizmos install
make  -C contrib/src/svg
make  -C contrib/src/svg install
ldconfig

# Compile and install wxPython.
cd wxPython/
patch < ../../wxpython-glcanvas.patch
python setup.py build
python setup.py install
ldconfig

cd ../..

# Compile and install Twisted.
tar -xjvf Twisted-10.1.0.tar.bz2
cd Twisted-10.1.0
python setup.py build
python setup.py install
ldconfig

cd ..

# Unpack wxPython demo.
tar -C /usr/local -xjvf wxPython-demo-2.8.11.0.tar.bz2
cp wxdemo /usr/local/bin
chmod +x /usr/local/bin/wxdemo
chown -R -v tc:staff /home/tc/wxPython-2.8.11.0/

# Create tar with all files.
find /usr/local -newer /tmp/mark -not -type d   > /tmp/list1
find /usr/local -not -type d|grep -i wx        >> /tmp/list1
find /usr/local -not -type d|grep -i twisted   >> /tmp/list1
find /usr/local -not -type d|grep -i zope      >> /tmp/list1
find /home/tc/wxPython-2.8.11.0 -not -type d   >> /tmp/list1
find /home/tc/start.sh -not -type d            >> /tmp/list1
cat /tmp/list1|sort|uniq > /tmp/list2
tar -T /tmp/list2 -czvf /tmp/nerdbox-sb.tar.gz

# Create the package.
mkdir /tmp/pkg
cd /tmp/pkg
tar -xf /tmp/nerdbox-sb.tar.gz #'install' the extension in tmp
cd /tmp
mksquashfs pkg/ nerdbox-sb.tcz

Offline hsiehlc

  • Newbie
  • *
  • Posts: 2
Re: Compiling wxpython on tiny core linux.
« Reply #3 on: November 15, 2013, 12:20:41 AM »
hi,

After loaded nerdbox-sb.tcz (wxPython.tcz) which is built by the shell script Perry provided on to my Tiny Core linux, trying to run my program that would need import wx module still not working with the error message as follows:
 
    File "pos_main.py", line 7, in <module>
          import wx
ImportError: No module named 'wx'

Could be something easy that I just missed? any prompt hints would be appreciated.

Thanks,
Richard