===== JUICERECIEVER ===== I built a deb for [[Debian]]/[[Ubuntu]] from [[CVS]] tree of this PodCast SoftWare in PythoN, check on my repo : * http://rzr.online.fr/apt/ * test a package I build while ago : http://ppa.launchpad.net/rzr-team/ubuntu/pool/main/j/juicereceiver-snapshot/ @tag: [[Python]] [[Error]] : [[ImportError]] * http://sourceforge.net/tracker/index.php?func=detail&aid=1796976&group_id=151000&atid=779484 Error: a install python-wxgtk2.6 /opt/juicereceiver-snapshot/iPodderGui.py #| /opt/juicereceiver-snapshot/ipodder/core.py:27: DeprecationWarning: the sha module is deprecated; use the hashlib module instead from sha import * Traceback (most recent call last): File "/opt/juicereceiver-snapshot/iPodderGui.py", line 39, in import gui.iPodderWindows File "/opt/juicereceiver-snapshot/gui/iPodderWindows.py", line 5, in import gui.tree File "/opt/juicereceiver-snapshot/gui/tree.py", line 15, in from ipodder import outlines File "/opt/juicereceiver-snapshot/ipodder/__init__.py", line 22, in from ipodder.core import Enclosure File "/opt/juicereceiver-snapshot/ipodder/core.py", line 36, in from ipodder import configuration File "/opt/juicereceiver-snapshot/ipodder/configuration.py", line 15, in import players File "/opt/juicereceiver-snapshot/ipodder/players.py", line 9, in import misc File "/opt/juicereceiver-snapshot/ipodder/misc.py", line 179 def encode(msg, encoding=None, replace=True, with=None): ... ImportError: No module named localization touch localization/__init__.py PACKAGE=juicereceiver cvs -d:pserver:anonymous@${PACKAGE}.cvs.sourceforge.net:/cvsroot/${PACKAGE} login && \ cvs -z3 -d:pserver:anonymous@${PACKAGE}.cvs.sourceforge.net:/cvsroot/${PACKAGE} co -d ${PACKAGE}-snapshot . /opt/juicereceiver-snapshot/iPodderGui.py Traceback (most recent call last): File "/opt/juicereceiver-snapshot/iPodderGui.py", line 18 , in import wx ToDo : * http://sourceforge.net/p/juicereceiver/code/68/log/?path= * http://forum.ubuntu-fr.org/viewtopic.php?pid=1591993#p1591993 * https://sourceforge.net/projects/juicereceiver/forums/forum/504368/topic/3787381/index/page/1 ===== WXWidgets ===== * http://wiki.wxwidgets.org/wiki.pl?WxGLCanvas On [[Debian]] apt-get install wxwin2.4-headers libwxbase2.4-dev libwxgtk2.4-dev Tools : * wxglade : http://wxglade.sourceforge.net/ * Dialog Blocks : http://www.anthemion.co.uk/dialogblocks/ * wxdesigner : http://www.roebling.de/download.html * visualWX : http://visualwx.altervista.org/ ===== WX @ [[Windows]] ===== to use OpenGL before recompiling wx locate setup.h #define wxUSE_GLCANVAS 1 * http://wiki.wxwidgets.org/wiki.pl?WxActiveX * http://members.optusnet.com.au/~blackpaw1/wxactivex.html * http://wxwindows.org/manuals/2.4.2/wx220.htm#wximage Link : opengl32.lib wxmsw.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib /nologo /subsystem:windows /incremental:no /pdb:"Release/wxgltest.pdb" /machine:I386 /out:"Release/wxgltest.exe" else you'll get this error : MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external symbol [[_main]] ===== WX @ [[Cygwin]] @ 20040513 ===== $ ./configure --prefix=$HOME/opt/cygwin/wxWindows-2.4.2 --with-opengl \ && make && make install && make clean ... c++ -shared -Wl,--out-implib,lib/wxmsw242.dll.a -o lib/wxmsw242.dll \ ... glcanvas.o ... -Wl,--version-script,./version-script ... \ *lopengl32 -lglu32 $ ls /opt/wxwidgets/lib/ libwx_msw-2.4.dll libwx_msw-2.4.dll.0 wx wxmsw242.dll wxmsw242.dll.a $ cd wxWindows-2.4.2/samples/opengl/penguin $ $EDIT Makefile #LIBRARIES=$(top_builddir)/lib/wxmsw_gl242.dll $(OPENGLLIBS) LIBRARIES=`wx-config --libs --gl-libs` $ make c++ -o penguin.exe penguin.o lw.o trackball.o ../../../lib/wxmsw242.dll -Wl,--version-script,../../../version-script -lpng -ljpeg -ltiff -lz -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32 -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lopengl32 -lglu32 `wx-config --libs --gl-libs` penguin_resources.o /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: cannot find -lwxmsw_gl242 $ $EDIT Makefile #LIBRARIES=$(top_builddir)/lib/wxmsw_gl242.dll $(OPENGLLIBS) LIBRARIES=`wx-config --libs` $(OPENGLLIBS) c++ -o penguin.exe \ penguin.o lw.o trackball.o \ ../../../lib/wxmsw242.dll -Wl,--version-script,../../../version-script \ *lpng -ljpeg -ltiff -lz \ *lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 \ *lctl3d32 -ladvapi32 -lwsock32 -lkernel32 -luser32 -lgdi32 -lcomdlg32 \ *lopengl32 -lglu32 `wx-config --libs` -lopengl32 -lglu32 \ penguin_resources.o $ ./penguin.exe # it works finally [[ToDo]] ===== WXWidgets bug ===== $ uname CYGWIN_NT-5.0 $ gcc --version gcc (GCC) 3.3.1 (cygming special) $ autoconf --version autoconf (GNU Autoconf) 2.59 $ automake --version automake (GNU automake) 1.7.9 ./configure --prefix=$HOME/opt/cygwin/wxWindows-2.5.1 --with-opengl && make && make install && make clean ... config.status: error: cannot find input file: samples/taskbar/Makefile.in ===== MISC ===== * http://bugs.debian.org/391137 ===== MORE ===== @TaG: [[GUI]] [[Windows]] [[GCC]]