Discussion:
Gimp on hobbes
Franz Bakan
2005-08-04 19:40:46 UTC
Permalink
This is the OS/2 port of version 2.2.8 of The GIMP to be run on XFree86/OS2.
...

WOW! it works. Congratulations !!!

I got some error-messages in the shell-window though (examples):

Xlib: unexpected async reply (sequence 0x3a794)!
Xlib: unexpected async reply (sequence 0x3b7d2)!
Xlib: unexpected async reply (sequence 0x3c06c)!
and
(png:286): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.

But these errors are not fatal and in a short test I could
capture some screenshots and save as png files.

Big thanks!

When I get some time I'll try to compile XSane using GTK2
Which version of gcc you did you use for compiling gimp?

Franz
Christian Hennecke
2005-08-05 01:21:43 UTC
Permalink
Still in /pub/incoming. I had to rename gtk+-2.6.8 to gtk-2.6.8, so the
readme is already wrong :-(
He, just when I've finished overhauling a web page...

Thanks a lot!

Christian Hennecke
Dave Yeo
2005-08-05 03:32:52 UTC
Permalink
Post by Franz Bakan
But these errors are not fatal and in a short test I could
capture some screenshots and save as png files.
Which window manager are you using. I use Blackbox which works fine as far as
capturing screen shots. Others have complained that most window managers (except
blackbox and one other which I forget right now) don't work as far as screen captures
work with the older Gimp and XFree86 3.3.6
Dave
Franz Bakan
2005-08-05 14:48:11 UTC
Permalink
Post by Dave Yeo
Post by Franz Bakan
But these errors are not fatal and in a short test I could
capture some screenshots and save as png files.
Which window manager are you using. I use Blackbox which works fine as far as
capturing screen shots. Others have complained that most window managers (except
blackbox and one other which I forget right now) don't work as far as screen captures
work with the older Gimp and XFree86 3.3.6
I'm using Blackbox with XFree86 4.5.0

Franz
Dave Yeo
2005-08-05 03:39:49 UTC
Permalink
o No print support
o No help browser because of the ridiculously long list of gnome libraries
it depends on. They will probably take months to compile. You can,
however,
configure it to use Mozilla, but you have to switch to the WPS each time.
Well first I have to say thanks for the port.
Did you look at the print routine in the older gimps? It seems to work fine.
Also for a help browser I wonder if the older Gnome help browser will work? Guess I'll try it later when everything finishes DLing. If anyone else wants to try the older Gnome help browser the gotta that screwed me up for longest time was that %HOME% had to be set with backslashes instead of slashes.
As well there is the older 0.96 release of Mozilla that uses X (Hobbes) and also glinks compiles fine using X as the display, at that you can compile it with both X and the PM as display options and pick between them based on the command line options
Dave
Frank Gießler
2005-08-05 07:04:12 UTC
Permalink
Post by Dave Yeo
o No print support
o No help browser because of the ridiculously long list of gnome libraries
it depends on. They will probably take months to compile. You can,
however,
configure it to use Mozilla, but you have to switch to the WPS each time.
Well first I have to say thanks for the port.
Did you look at the print routine in the older gimps? It seems to work fine.
No, I didn't. The whole thing started out of curiosity ("How far will I
get?") and printing didn't have priority. Maybe later. I know that these
things are nice to have, but if I held the release back until
*everything* works, there would be probably no release at all. That's
why I said it's not perfect, but a starting point.
Post by Dave Yeo
Also for a help browser I wonder if the older Gnome help browser will work? Guess I'll try it later when everything finishes DLing. If anyone else wants to try the older Gnome help browser the gotta that screwed me up for longest time was that %HOME% had to be set with backslashes instead of slashes.
As well there is the older 0.96 release of Mozilla that uses X (Hobbes) and also glinks compiles fine using X as the display, at that you can compile it with both X and the PM as display options and pick between them based on the command line options
This is indeed possible. I haven't tried. Can you check and post the
results here?

Regards,
Frank.
--
Frank Giessler
Klinikum der Universitaet Jena Tel.: +49-3641-9 32 57 80
Biomagnetisches Zentrum Fax : +49-3641-9 32 57 72
Christian Hennecke
2005-08-05 08:39:17 UTC
Permalink
Post by Dave Yeo
Also for a help browser I wonder if the older Gnome help browser will work? Guess I'll try it later when everything finishes DLing. If anyone else wants to try the older Gnome help browser the gotta that screwed me up for longest time was that %HOME% had to be set with backslashes instead of slashes.
If you change that, it's going to break a number of other applications.

Christian Hennecke
Frank Gießler
2005-08-05 06:46:07 UTC
Permalink
Post by Franz Bakan
WOW! it works. Congratulations !!!
Xlib: unexpected async reply (sequence 0x3a794)!
Xlib: unexpected async reply (sequence 0x3b7d2)!
Xlib: unexpected async reply (sequence 0x3c06c)!
Yes, this sometimes happens. I don't know where it comes from. Maybe a
race condition. Usually, exiting gimp and restarting it cures this.
Post by Franz Bakan
and
(png:286): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Your LANG environment variable is probably set to 'de_DE_EURO' which is
not supported by EMX's setlocale(). Set it to de_DE.ISO-8859-15 and the
warning should go away.
Post by Franz Bakan
But these errors are not fatal and in a short test I could
capture some screenshots and save as png files.
Big thanks!
When I get some time I'll try to compile XSane using GTK2
Which version of gcc you did you use for compiling gimp?
Gcc-3.0.3, as usual ;-)

Regards,
Frank.
--
Frank Giessler
Klinikum der Universitaet Jena Tel.: +49-3641-9 32 57 80
Biomagnetisches Zentrum Fax : +49-3641-9 32 57 72
Frank Gießler
2005-08-04 14:09:58 UTC
Permalink
Still in /pub/incoming. I had to rename gtk+-2.6.8 to gtk-2.6.8, so the
readme is already wrong :-(



Here's the readme:

Welcome!
========

This is the OS/2 port of version 2.2.8 of The GIMP to be run on XFree86/OS2.

Do not expect this port to be perfect. Consider it a starting point.
However,
it seems to run reasonably well, and is, btw, better than nothing.


Limitations:
============

o No print support

o No help browser because of the ridiculously long list of gnome libraries
it depends on. They will probably take months to compile. You can,
however,
configure it to use Mozilla, but you have to switch to the WPS each time.

o Some image formats are not supported because the needed libraries are
not available yet.


Minimum requirements:
=====================

(Don't shoot me; such is life!)

o XFree86 v4.5 and the latest fixes for libXft and libfreetype:

ftp://ftp.netlabs.org/pub/xfree86/4.5.0
ftp://ftp.netlabs.org/pub/xfree86/4.5.0/fixes

o Libraries:

fontconfig v2.3.2
http://hobbes.nmsu.edu/pub/os2/util/font/fontconfig-2.3.2.zip

gettext-runtime v0.14.5
http://hobbes.nmsu.edu/pub/os2/dev/unix/gettext-runtime-0.14.5.zip

Libpng v1.0.18
http://hobbes.nmsu.edu/pub/os2/dev/mm/libpng-1.0.18.zip

Glib-2.0 v2.6.5
http://hobbes.nmsu.edu/pub/os2/apps/graphics/gimp/glib-2.6.5.zip

Atk v1.9.0
http://hobbes.nmsu.edu/pub/os2/apps/graphics/gimp/atk-1.9.0.zip

Pango v1.8.1
http://hobbes.nmsu.edu/pub/os2/apps/graphics/gimp/pango-1.8.1.zip

Gtk-2.0 v2.6.8
http://hobbes.nmsu.edu/pub/os2/apps/graphics/gimp/gtk+-2.6.8.zip

Exif v0.6.12
http://hobbes.nmsu.edu/pub/os2/dev/mm/libexif-0.6.12.zip

Libart LGPL v2.3.17

http://hobbes.nmsu.edu/pub/os2/apps/graphics/gimp/libart_lgpl-2.3.17.zip

jpeg6b, tiff (maybe others):
http://hobbes.nmsu.edu/pub/os2/dev/mm/jpeg6b.zip
http://hobbes.nmsu.edu/pub/os2/dev/mm/tiff34.zip
(tiff.dll needs z.dll)

o The GIMP itself
http://hobbes.nmsu.edu/pub/os2/apps/graphics/gimp/gimp-2.2.8.zip

o Optional:

WGET
GhostScript
Helpfiles
http://hobbes.nmsu.edu/pub/os2/apps/graphics/gimp/gimp-help-2.0.7.zip

Installation:
=============

o If you haven't already done so, install XFree86/OS2 4.5.0 and make sure it
works. This is described elsewhere. Other servers have not been
tested and
very likely won't work. If you want to run GIMP with a different X-server
you're completely on your own.

o Copy the libXft and libfreetype fixes over the installation.

o Replace fontconfig included in XFree86 with fontconfig v2.3.2 by
copying it
over the XFree86 installation. Edit the file /etc/fonts/fonts.conf so the
font directory list has the directories you want (including drive
letters).
Then, run 'fc-cache -f -v'.

o Unpack the remaining packages from the list above on the X11ROOT drive.
Add /usr/bin to your PATH and /usr/lib to your LIBPATH.

o Run the following commands:

pango-querymodules > %X11ROOT%\etc\pango\pango.modules

gdk-pixbuf-query-loaders > %X11ROOT%\etc\gtk-2.0\gdk-pixbuf.loaders

gtk-query-immodules-2.0 > %X11ROOT%\etc\gtk-2.0\gtk.immodules

o Set the environment variable G_FILENAME_ENCODING to something like CP850
in your config.sys. Otherwise filenames will be encoded in UTF-8.

o Launch XFree86/OS2 and type 'gimp-2.2' in a terminal.


Enjoy!
--
Frank Giessler
Klinikum der Universitaet Jena Tel.: +49-3641-9 32 57 80
Biomagnetisches Zentrum Fax : +49-3641-9 32 57 72
S***@t-online.de
2005-08-05 13:08:31 UTC
Permalink
Hello,

Great job!
Although, personally, I'm even more interested in the
libraries (and the possibility to now build a wxWidgets
version based on GTK+-2 on OS/2), than in the application
itself. ;-)

Are you going to submit patches?
I seem to remember that I saw some GTK+ maintainer claim that
for lack of interest in an OS/2 version they are going remove
related stuff from the CVS version.
I'd love to see his face when he receives some patches that make
the current(? well, at least not "completely outdated") version work
on OS/2. ;-)

Regards,
Stefan
Dave Yeo
2005-08-06 05:31:11 UTC
Permalink
Post by Christian Hennecke
Post by Dave Yeo
Also for a help browser I wonder if the older Gnome help browser will work? Guess I'll try it later when everything finishes DLing. If anyone else wants to try the older Gnome help browser the gotta that screwed me up for longest time was that %HOME% had to be set with backslashes instead of slashes.
If you change that, it's going to break a number of other applications.
Thats what scripts (and multiple xterms) are for. Actually I haven't really noticed any breakages yet but that may only because I haven't been playing much.
Dave
Dave Yeo
2005-08-07 05:31:18 UTC
Permalink
Post by Frank Gießler
Post by Dave Yeo
Also for a help browser I wonder if the older Gnome help browser will work? Guess
I'll try it later when everything finishes DLing. If anyone else wants to try the older
Gnome help browser the gotta that screwed me up for longest time was that %HOME%
had to be set with backslashes instead of slashes.
Post by Frank Gießler
Post by Dave Yeo
As well there is the older 0.96 release of Mozilla that uses X (Hobbes) and also
glinks compiles fine using X as the display, at that you can compile it with both X and
the PM as display options and pick between them based on the command line options
Post by Frank Gießler
This is indeed possible. I haven't tried. Can you check and post the
results here?
Ok, entered a bit of intl.dll hell. Gnome is linked to a different version of intl.dll. At that to
get the Gimp to run I had to install your intl.dll, wonder what else might break? Copying
the helpbrowser plugin into /usr/lib/gimp/2.0/plug-ins with gimp-1.2.2 running as well
ended up with gimp2 complaining about a missing API. The gnome help browser looks
terrible anyways here.
Using the xlib build of Mozilla 0.94 works fine though I did have a couple of issues that
were fixed by first starting Mozilla 0.94 in an xterm with SET LIBPATHSTRICT=T set
Only thing to watch is not to share a newer profile, it will get ruined. Simplest to just add
SET MOZILLA_HOME= in your xfenvsetup.cmd.
Dave
ps I can't remember where I got 0.94. Thought it was on Hobbes along with a QT and
GTK1 linked versions but can not now find them.
IIRC Henry built them though I can't find them on his site either.
pss I also wonder about the newer png.dll not being compaitible with the older. Older
was built with ordinals.
Franz Bakan
2005-08-09 21:24:11 UTC
Permalink
Post by Franz Bakan
When I get some time I'll try to compile XSane using GTK2
OK, in the meantime compiling and linking worked with the new GTK headers and libs.

But when I try to start xsane I get:

[G:\USR\bin]xsane.exe

(process:0): GLib-WARNING **: giounix.c:407Error while getting flags for FD: Bad file number (9)


(xsane.exe:0): Gtk-WARNING **: cannot open display:

What to do?

Franz
Franz Bakan
2005-08-09 22:29:04 UTC
Permalink
Post by Franz Bakan
What to do?
OK, when I use

xsane --display=:0.0

it starts but ends abnormal before/when creating the first X-Window.

Perhaps a problem, because I compiled with gcc335rc1 instead of 3.0.3

One thing I noticed with XFree 4.5.0

In config.sys I have:

HOSTNAME=blabla
DISPLAY=blala:0.0

When I query DISPLAY in the xterm after starting XFree4.5.0
set DISPLAY has following value:
:0.0

I think this is the reason becauses xsane does not start
without specifying -- display

Did I miss something in the setup or is something different/broken
with the new XServer

Curious
Franz
Dave Yeo
2005-08-10 02:55:38 UTC
Permalink
Post by Franz Bakan
Post by Franz Bakan
What to do?
OK, when I use
xsane --display=:0.0
it starts but ends abnormal before/when creating the first X-Window.
Perhaps a problem, because I compiled with gcc335rc1 instead of 3.0.3
One thing I noticed with XFree 4.5.0
HOSTNAME=blabla
DISPLAY=blala:0.0
When I query DISPLAY in the xterm after starting XFree4.5.0
:0.0
I think this is the reason becauses xsane does not start
without specifying -- display
Did I miss something in the setup or is something different/broken
with the new XServer
Libc_innotek is not compatible with EMX. Innotek_libc adds an underslash
to all exports. You can get around this IIRC with emximp (or was that
emxexp? not at OS/2 right now) or even directly linking against the DLL
instead of the lib. But then comes the big incompatibilities, XFree86
has a function (os2_select) that uses low level parts of EMX [nfiles]?
that are not in innotek_libc.
Pipe support is definately broken so your best bet is to run your app
with tcpip, xsane.exe -display 127.0.0.1:0 will work kind of, mouse
won't quite work right and you may still get broken pipe errors.
Anyways try linking against X.dll etc and use the display as above and
let us know how it goes.
Dave
Franz Bakan
2005-08-13 13:50:50 UTC
Permalink
Hi,
Post by Dave Yeo
Libc_innotek is not compatible with EMX.
OK, I suspected.
Post by Dave Yeo
Innotek_libc adds an underslash to all exports.
I think that was not the problem because it compiled fine.
It just didn't work.

I now compiled XSane-0.97 with GCC-321 and it works here
- standalone
- as gimp-plugin for GIMP2 (It won't work with gimp122, don't bother...)
- with XFree4.5.0
- also with HOBX11

You can download and try:

http://www.fbakan.de/xsane/xsane-0.97-OS2.README
http://www.fbakan.de/xsane/xsane-0.97-OS2.zip (1.7MB)

If I get some positive feedback I'll put the package on HOBBES

Franz
S***@t-online.de
2005-08-13 17:22:42 UTC
Permalink
Hi,
Post by Franz Bakan
Post by Dave Yeo
Innotek_libc adds an underslash to all exports.
I think that was not the problem because it compiled fine.
Might have been pure luck. AFAIK, XFree internally has many
functions with leading underscores, so if you combine Innotek
applications with EMX libraries, smybols might get resolved,
but you'll see the wrong (internal use only) funtions called
instead of the ones intended to be used.

Regards,
Stefan

Loading...