OpenJade and Cygwin
I’ve spent more time with OpenSP/OpenJade trying to get everything working under Cygwin, and I think I’ve finally got it.
Here’s what I had to change:
- OpenSP 1.5.1
- Edit config.h.in, and comment out
#define SP_HAVE_LOCALEOpenSP will work with this turned on, but OpenJade will break. Better to just disable locale support in OpenSP and let OpenJade figure it out later. - Run
configure --with-included-gettextCygwin’s gettext support is lacking bindtextdomain or something. - Ditch the
#pragmas Cygwin doesn’t support #pragma interface and #pragma implementation, and it results in undefined symbols during linking. This is in a lot of the source files, you’ll probably want to write a perl or awk script to take care of it.
- Edit config.h.in, and comment out
- OpenJade 1.3.2
- Edit grove/Node.h, and change the
#ifdef SP_WCHAR_T_USHORTto#ifdef SP_WCHAR_T_USHORT_OpenJade defines it’sChartype as aUnsigned32. This is apparently incompatible with grove’s definition ofGroveCharas awchar_t. Cant’ we all just get along? - Edit msggen.pl, and add a second
chop;- gotta love window’s CRLF linefeed sequence, and the way it confuses perl.
- Edit grove/Node.h, and change the
At this point, I know I can run the openjade.exe binary. I haven’t really fiddled with it any more, but I have an article I want to format as HTML.. so that’s next.
June 17th, 2004 at 8:53 am
Alec, I was trying to build openjade under cygwin (apparently it’s needed in the dependency list to build glib, go figure), and came across your comment. Very timely
Are your patches going to be incorporated in openjade CVS, or are they available as a diff? Any plans on submitting this to the cygwin distribution?
Maarten
June 18th, 2004 at 1:37 am
Hi Alec,
great news. I’ll try if I’m also able to build Openjade with your suggested changes.
A chomp instead of chop should do it in msggen.pl?
Regards,
Gerrit
June 18th, 2004 at 2:11 am
My OpenSP conig.h says:
/* The size of a `unsigned short’, as computed by sizeof. */
#define SIZEOF_UNSIGNED_SHORT 2
/* The size of a `wchar_t’, as computed by sizeof. */
#define SIZEOF_WCHAR_T 2
Openjade 1.3.3 config.h says:
// wchar_t’s base type is an unsigned short
#define SP_WCHAR_T_USHORT
So where is the problem with wchar_t if they are the same size?
Gerrit
June 18th, 2004 at 7:11 am
First off, My patches aren’t going into OpenSP/OpenJade any time soon.. I don’t have time to put together any more than a hack.
Let me know if it builds ok with SP_WCHAR_T_USHORT - last I tried it did NOT work.. maybe they fixed something in OpenJade 1.3.3? But I was having trouble making wchar_t cast to Unsigned32.
Alec
June 18th, 2004 at 8:07 am
If you’re having trouble with your openjade binary, you may try an older version, I have it online here:
http://anfaenger.de/cygwin/docbook/openjade
or point Cygwin setup.exe to http://anfaenger.de/cygwin to install it with setup.exe.
It works well for my needs, unfortunately it never made it into the Cygwin netrelease.
Gerrit