Hello all,
I am trying to build wxPython under cygwin. However, I keep having some problems and maybe someone can help me with it.
First, the wxWindows compilation does not create a version of the opengl version of wxmswXXX.dll. I am not sure whether I need one, but the build of the opengl demos also fails, because it cannot find the ogl libraries.
Second, the setup.py script fails on linking the htmlc.dll, with the error:
build/temp.cygwin-1.5.9-i686-2.3/src/msw/htmlhelp.o(.text+0x308e): In function `_wrap_wxHtmlSearchStatus_Search':
/cygdrive/d/home/work/wxPython/wxPython/src/msw/htmlhelp.cpp:751: undefined reference to `wxHtmlSearchStatus::Search()'
To check whether this function is available, I ran
nm /usr/local/lib/wxmsw242.dll.a | grep wxHtmlSearchStatus
This did show a line 10252c40 T __ZN18wxHtmlSearchStatus6SearchEv, but I am not sure this is actually the correct function reference. I have no idea how to do further troubleshooting. Can anyone help me out?
Thanks in advance,
Regards,
Hans Then
I am using the wxPythonSrc2.4.2.4.tar.gz from the wxPython website.
Before starting the installation I have adapted the wxPython setup.py to handle a posix-cygwin target, like this:
···
#---------------------------------------------------------------------
elif os.name == 'posix' and sys.platform[:6] == "cygwin":
# Flags and such for a cygwin build of Python
WXDIR = '..' # assumes IN_CVS_TREE
WXPLAT = '__WXMSW__'
GENDIR = 'msw'
includes = ['src']
defines = [('SWIG_GLOBAL', None),
('HAVE_CONFIG_H', None),
('WXP_USE_THREAD', '1'),
]
libdirs = []
libs = []
cflags = os.popen(WX_CONFIG + ' --cxxflags', 'r').read()[:-1]
cflags = cflags.split()
if UNDEF_NDEBUG:
cflags.append('-UNDEBUG')
lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1]
lflags = lflags.split()
I am using the instructions to compile the wxWindows sources from the wxPython tree.
cd WXROOT
mkdir build
cd build
../configure --enable-shared --with-opengl
make; make install
cd ..wxPython
python setup.py WX_CONFIG=/usr/local/bin/wx-config build