compile problem with wxPython 2.5.4.1

Hi list,

We have a problem with the installation from source on SuSE 9.2. We installed
in /opt/wx/2.5, and after that we ran from the wxPython directory python
setup.py install UNICODE=1.

After some time (so some programs where succesfully compiled), it gave the
message:
contrib/stc/gtk/stc_wrap.cpp:1383:24: wx/stc/stc.h: Onbekend bestand of map

Which means that it cannot find stc.h. Well it is definitely there, but I do
not know what triggered this error. Anyone any ideas?

Thanks in advance

···

--
****************************************************************************
****************************************************************************
This is an e-mail message from Lindix. The information contained in this
communication is intended solely for use by the individual or entity to
whom it is addressed. Use of this communication by others is prohibited.
If the e-mail message was sent to you by mistake, please destroy it without
reading, using, copying or disclosing its contents to any other person.
Sender accepts no liability for damage related to data and/or documents
which are communicated by electronic mail.
****************************************************************************
****************************************************************************

D.Kniep
Lindix BV.

Dick Kniep wrote:

Hi list,

We have a problem with the installation from source on SuSE 9.2. We installed in /opt/wx/2.5, and after that we ran from the wxPython directory python setup.py install UNICODE=1.

After some time (so some programs where succesfully compiled), it gave the message:
contrib/stc/gtk/stc_wrap.cpp:1383:24: wx/stc/stc.h: Onbekend bestand of map

Which means that it cannot find stc.h. Well it is definitely there, but I do not know what triggered this error. Anyone any ideas?

Did the stc lib get built and installed? IOW, is there a stc.h under /opt/wx/2.5/include?)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

I just experienced the same problem when trying to build wxWidgets and
wxPython (both from source and the latest CVS). What appears to happen is
the following.

1. libraries get built / installed (/usr/lib/libwx_gtk2u_stc-2.5.so.1.0.0)
2. Header files do not get installed (no /usr/include/wx-2.5/wx/stc)

The only two directories from the contrib subdirectory I see are the xml
and xrc directories.

My configure command for wxWidgets on Fedora Core 3:

./configure --with-gtk --enable-gtk2 \
  --enable-unicode --with-opengl --prefix=/usr

followed by the normal make and make install.

I then modified config.py to include STC and compile for UNICODE.

python setup.py build

then works and produces no errors.

After all of that, I then install SPE. However, when I attempt to run
SPE, I get the following error.

ImportError:
/usr/lib/python2.3/site-packages/wx-2.5.5-gtk2-unicode/wx/_stc.so:
undefined symbol: _ZN16wxStyledTextCtrl26GetWrapVisualFlagsLocationEv

Most of the demos seems to work (python Main.py in demos), although OGL
didn't do anything and I got some unicode decode errors in _controls.py.

The entire point of this exercise was to get SPE up and running.

Thoughts greatly appreciated. Solutions appreciated even more.

Thanks . . . .

/mde/

···

On Thu, 31 Mar 2005 14:55:03 -0800, Robin Dunn wrote:

Dick Kniep wrote:

Hi list,

We have a problem with the installation from source on SuSE 9.2. We
installed in /opt/wx/2.5, and after that we ran from the wxPython
directory python setup.py install UNICODE=1.

After some time (so some programs where succesfully compiled), it gave
the message:
contrib/stc/gtk/stc_wrap.cpp:1383:24: wx/stc/stc.h: Onbekend bestand
of map

Which means that it cannot find stc.h. Well it is definitely there, but
I do not know what triggered this error. Anyone any ideas?

Did the stc lib get built and installed? IOW, is there a stc.h under
/opt/wx/2.5/include?)

Mark Eggers wrote:

Dick Kniep wrote:

Hi list,

We have a problem with the installation from source on SuSE 9.2. We
installed in /opt/wx/2.5, and after that we ran from the wxPython
directory python setup.py install UNICODE=1.

After some time (so some programs where succesfully compiled), it gave
the message:
contrib/stc/gtk/stc_wrap.cpp:1383:24: wx/stc/stc.h: Onbekend bestand
of map

Which means that it cannot find stc.h. Well it is definitely there, but
I do not know what triggered this error. Anyone any ideas?

Did the stc lib get built and installed? IOW, is there a stc.h under
/opt/wx/2.5/include?)

I just experienced the same problem when trying to build wxWidgets and
wxPython (both from source and the latest CVS). What appears to happen is
the following.

1. libraries get built / installed (/usr/lib/libwx_gtk2u_stc-2.5.so.1.0.0)
2. Header files do not get installed (no /usr/include/wx-2.5/wx/stc)

The only two directories from the contrib subdirectory I see are the xml
and xrc directories.

Those are no longer in contribs. I've never seen it install a contrib lib and not its headers.

My configure command for wxWidgets on Fedora Core 3:

./configure --with-gtk --enable-gtk2 \
  --enable-unicode --with-opengl --prefix=/usr

followed by the normal make and make install.

Did you also do a make and make install for the contribs that you want?

···

On Thu, 31 Mar 2005 14:55:03 -0800, Robin Dunn wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Ummm, no. I just thought that if I had those options configured in that
the make and make install would build and install them.

I went back into wxWidgets/contrib, did a make (verified that all
subdirectories were built), and then did a make install. Timestamps on
the installed headers and libraries showed me the files were installed.

I then went into wxWidgets/wxPython and ran python setup,py build (after
deleting the earlier build directory), followed by a python setup.py
install as root.

This solved my problem.

In short, building and installing the contrib subdirectory of wxWidgets
separately was the required step. I imagine that the contributed
libraries were installed from an earlier attempt to install wxWidgets.

spe now works (or at least starts up, which is a good sign).

Thanks for your patience.

/mde/

···

On Mon, 04 Apr 2005 14:49:03 -0700, Robin Dunn wrote:

Did you also do a make and make install for the contribs that you want?

Mark Eggers wrote:

···

On Mon, 04 Apr 2005 14:49:03 -0700, Robin Dunn wrote:

Did you also do a make and make install for the contribs that you want?

Ummm, no. I just thought that if I had those options configured in that
the make and make install would build and install them.

I guess you skipped reading step #2 at http://wxpython.org/builddoc.php

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!