WYSIWYG editor for simple HTML

Date: Fri, 27 Aug 2004 18:54:17 -0700
To: wxPython-users@lists.wxwidgets.org
From: Cliff Wells <clifford.wells@comcast.net>
Subject: Re: [wxPython-users] WYSIWYG editor for simple HTML
Message-Id: <1093658057.3230.951.camel@devilbox.devilnet.internal>

With wxMozilla CVS HEAD and wxPython 2.5.2.7, things are much
easier so you may want to consider that route if at all possible.

Kevin,

Could you share your procedure for building wxMozilla (from CVS) with
wxPython 2.5.2? I tinkered around with it for a while but was unable to
get it to work.

Sorry for the late reply - I don't check this list as often as maybe I should. ;-/ To those who asked about this, basically, what you need to do is get wxMozilla CVS, then cd into "wxPython/contrib/mozilla25/" and run the following:

"python setup.py install WX_CONFIG=/usr/local/lib/wxPython-2.5.2.x"

Where the ".x" is .7 or .8 depending on which version of wxPython you have. Also, I've only got SWIGged files for Windows in CVS at the moment, meaning you'll have to either build with SWIG yourselves on *nix, or let me know and I'll try to SWIG the files this weekend. This is all still rather new, so let me know if things work OK for you.

HTH,

Kevin

···

On Thu, 2004-08-26 at 23:29, Kevin Ollivier wrote:

Kevin Ollivier wrote:

Date: Fri, 27 Aug 2004 18:54:17 -0700
To: wxPython-users@lists.wxwidgets.org
From: Cliff Wells <clifford.wells@comcast.net>
Subject: Re: [wxPython-users] WYSIWYG editor for simple HTML
Message-Id: <1093658057.3230.951.camel@devilbox.devilnet.internal>

With wxMozilla CVS HEAD and wxPython 2.5.2.7, things are much
easier so you may want to consider that route if at all possible.

Kevin,

Could you share your procedure for building wxMozilla (from CVS) with
wxPython 2.5.2? I tinkered around with it for a while but was unable to
get it to work.

Sorry for the late reply - I don't check this list as often as maybe I should. ;-/ To those who asked about this, basically, what you need to do is get wxMozilla CVS, then cd into "wxPython/contrib/mozilla25/" and run the following:

"python setup.py install WX_CONFIG=/usr/local/lib/wxPython-2.5.2.x"

That should probably be

  WX_CONFIG=/usr/local/lib/wxPython-2.5.2.x/wx-config

···

On Thu, 2004-08-26 at 23:29, Kevin Ollivier wrote:

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

Thanks both.

Hugh

Sorry for the late reply - I don't check this list as often as maybe I
should. ;-/ To those who asked about this, basically, what you need to
do is get wxMozilla CVS, then cd into "wxPython/contrib/mozilla25/" and
run the following:

"python setup.py install WX_CONFIG=/usr/local/lib/wxPython-2.5.2.x"

Where the ".x" is .7 or .8 depending on which version of wxPython you
have. Also, I've only got SWIGged files for Windows in CVS at the
moment, meaning you'll have to either build with SWIG yourselves on
*nix, or let me know and I'll try to SWIG the files this weekend. This
is all still rather new, so let me know if things work OK for you.

Kevin,

I'm trying to build wxMozilla on Linux (FC2, Mozilla 1.7.2, wxPython
2.5.2.8, wxMozilla CVS HEAD).

I generated the swig files, hacked a bit at the setup.py file and got it
to compile and install. Unfortunately, this is what I get when trying
to import wxMozilla:

Python 2.3.3 (#1, May 7 2004, 10:31:40)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx
import wx.mozilla

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/wx/mozilla.py", line 5, in ?
    import _mozilla
ImportError: /usr/lib/python2.3/site-packages/wx/_mozilla.so: undefined
symbol: _ZTI23nsSupportsWeakReference>>>

Some googling suggested that I define XP_UNIX, so I added that to the
'defines' array in setup.py but still no luck. I also used the
'strings' command to find which mozilla libraries referenced
'nsSupportsWeakReference' and made sure that they were included
'libraries' line in setup.py, all to no avail.

Any further suggestions?

Regards,
Cliff

···

On Wed, 2004-09-01 at 15:43, Kevin Ollivier wrote:

--
Cliff Wells <clifford.wells@comcast.net>

My colleague who is working on this wrote:

I have just compiled wxMozilla under wxPython2.5.2.8 and win32.

As there was not much documents ATM I would like to share my experiences,
and please feel free to ask me about it.

My steps are:

1. Download win32.zip from

http://prdownloads.sourceforge.net/wxmozilla/wxMozilla-0.5.3-win32.zip?dow
nload

win32 installer from

http://prdownloads.sourceforge.net/wxmozilla/wxMozilla-0.5.3-Py2.3.exe?dow
nload

and download wx25 source from

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/wxmozilla login

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/wxmozilla co
wxMozilla

I based on the source from cvs.

2. First put the source from CVS under MOZILLA_DIR, and then
extract mozilla folder from wxMozilla-0.5.3-win32.zip to MOZILLA_DIR.
Create folder MOZILLA_DIR/mozilla/dist, and put
MOZILLA_DIR/mozilla/include and
MOZILLA_DIR/mozilla/lib into it. That is the mozilla source code.

3. Compile it.
Now go to MOZILLA_DIR\wxPython\contrib\mozilla25, and run
setup.py install WX_CONFIG=WX_DIR
WX_DIR is the wx installation, probably like
%PYTHONPATH%\Lib\site-packages\wx

Use MSVC6 to compile it. I won't elaborate my silly problems and solutions
here :wink:

4. Install.
Now _mozilla.pyd and mozilla has been copied to your wx installation.
Run wxMozilla-0.5.3-Py2.3.exe and install wxMozilla. This will bring dlls
and registry.

Congratulations!

Maybe this is not a very succinct way. Surely things will be much easier
after the formal support for py25 released.

Best regards.

ZhangYue
zhangyue99@tsinghua.org.cn
2004-09-03

Hi Cliff,

Sorry for the late reply - I don't check this list as often as maybe I
should. ;-/ To those who asked about this, basically, what you need to
do is get wxMozilla CVS, then cd into "wxPython/contrib/mozilla25/" and
run the following:

"python setup.py install WX_CONFIG=/usr/local/lib/wxPython-2.5.2.x"

Where the ".x" is .7 or .8 depending on which version of wxPython you
have. Also, I've only got SWIGged files for Windows in CVS at the
moment, meaning you'll have to either build with SWIG yourselves on
*nix, or let me know and I'll try to SWIG the files this weekend. This
is all still rather new, so let me know if things work OK for you.

Kevin,

I'm trying to build wxMozilla on Linux (FC2, Mozilla 1.7.2, wxPython
2.5.2.8, wxMozilla CVS HEAD).

I generated the swig files, hacked a bit at the setup.py file and got it
to compile and install. Unfortunately, this is what I get when trying
to import wxMozilla:

Python 2.3.3 (#1, May 7 2004, 10:31:40)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import wx
import wx.mozilla

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/wx/mozilla.py", line 5, in ?
    import _mozilla
ImportError: /usr/lib/python2.3/site-packages/wx/_mozilla.so: undefined
symbol: _ZTI23nsSupportsWeakReference>>>

Some googling suggested that I define XP_UNIX, so I added that to the
'defines' array in setup.py but still no luck. I also used the
'strings' command to find which mozilla libraries referenced
'nsSupportsWeakReference' and made sure that they were included
'libraries' line in setup.py, all to no avail.

Any further suggestions?

I'm forwarding this along to wxMozilla-devel, as often these kinds of errors mean you've got two (or more) Mozilla installations on your machine, and you're building and linking against one, and then loading another. (Typically due to the 'other' one being on the PATH, too.)

XP_UNIX should already be defined because there is a header file in the root of the Mozilla includes folder (moz-config.h or something like that) that defines all necessary defines for that particular build of Mozilla and wxMozilla does include this file.

In any case, I don't work with Linux too much so maybe someone who uses Linux might be able to offer more help.

Kevin

···

On Sep 6, 2004, at 1:17 AM, Cliff Wells wrote:

On Wed, 2004-09-01 at 15:43, Kevin Ollivier wrote: