Author Topic: xsane,gimp,xfree86 and a *nix dummy  (Read 1381 times)

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 26
  • Posts: 529
    • View Profile
xsane,gimp,xfree86 and a *nix dummy
« on: February 20, 2015, 08:22:36 pm »
Hi All

I am trying to get xsane working on eCS2.1

I have installed xsane-0.992-OS2.zip plus the required support packages

 xfree86-4_5_0-runtime.wpi runtime package
 gimp-2_2_8-install.wpi, gimp-2_2_8-required-libs.wpi and gimp-2_0_7-help.wpi gimp packages
 gcc321m.zip
 libsane.dll

All the above are installed to drive K: which is set as UNIXROOT with gcc321m.dll and libsane.dll being placed in K:\usr\X11R6\lib

Installation seemed to go fine so I clicked on the gimp program icon to give it a try - there are no config.sys changes so a reboot is not necessary.

The gimp icon becomes hatched, nothing happens, the icon becomes unhatched - obviously something is not working...

I tried starting gimp from the command line. This involved opening a command window in drive K:\ and running K:\x11env.cmd followed by CD'ding to \usr\bin and entering gimp-2.2.exe

This resulted in the following messages hopefully explaining what went wrong:-


[K:\usr\bin]gimp-2.2.exe

(gimp-2.2.exe:96): Gdk-WARNING **: locale not supported by Xlib

(gimp-2.2.exe:96): Gdk-WARNING **: cannot set locale modifiers
GIMP could not initialise the graphical user interface.
Make sure a proper setup for your display environment exists.


[K:\usr\bin]



I guess something is not right in the x11env.cmd created during gimp install.
Any ideas on what needs changing will be appreciated:-


@ECHO OFF
SET X11ROOT=k:
SET BEGINLIBPATH=%X11ROOT%\usr\lib;%X11ROOT%\usr\X11R6\lib;
SET PATH=%X11ROOT%\usr\bin;%X11ROOT%\usr\X11R6\bin;%PATH%
SET MANPATH=%X11ROOT%\usr\man;%X11ROOT%\usr\X11R6\man;%MANPATH%
SET LOGNAME=%USER%
SET DISPLAY=localhost:0.0
SET G_FILENAME_ENCODING=CP850
IF $%1$==$$ GOTO DONE
%1 %2 %3 %4 %5 %6 %7 %8 %9
EXIT
:DONE


Looking at the above I guess the questions are:-

1] How do I set a locale supported by Xlib

2] How do I create a "proper setup for your display environment"



Any help gratefully received  :-)


Pete



Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 7
  • -Receive: 87
  • Posts: 1095
    • View Profile
Re: xsane,gimp,xfree86 and a *nix dummy
« Reply #1 on: February 20, 2015, 08:44:56 pm »
Hi Pete,
I take it that drive K: is a different partition then RPM/YUM uses? If not it will fail.
Add set LIBPATHSTRICT=T to your X11env.cmd, probably after the BEGINLIBPATH statement.
You could try set LOCALE=en_US or set LOCALE=C
And for display, set DISPLAY=127.0.0.1:0:0 or set DISPLAY=:0.0 or set DISPLAY=127.0.0.1:1.0 or set DISPLAY=:1.0, not sure which is the best for your setup.

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: xsane,gimp,xfree86 and a *nix dummy
« Reply #2 on: February 20, 2015, 08:50:37 pm »
It's been a long time, but if you can't get XFree86-4_5_0 working. Look at using HOBLink/2 it's much easier to setup - you will have to track down an old ecsreg.ini from eCS 1.2 though. If anyone finds this file please send it to me !

http://os2notes.net/old/os2gimp2.html


Greggory

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 7
  • -Receive: 87
  • Posts: 1095
    • View Profile
Re: xsane,gimp,xfree86 and a *nix dummy
« Reply #3 on: February 20, 2015, 09:25:05 pm »
Actually XFree/2 won't work on eCS. I think something changed in the kernel breaking xf86sup.sys. I did manage to get it kind of working using a vnc server but it was still kind of broken, no ptty support

Alex Taylor

  • Full Member
  • ***
  • Thank You
  • -Given: 10
  • -Receive: 14
  • Posts: 218
    • View Profile
Re: xsane,gimp,xfree86 and a *nix dummy
« Reply #4 on: February 21, 2015, 04:33:32 am »
The message indicates it can't find the X server.  Which X server are you using?  HobLink? Did you make sure it's running?  Is its screen numberset to 0 to match your DISPLAY environment variable?

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 26
  • Posts: 529
    • View Profile
Re: xsane,gimp,xfree86 and a *nix dummy
« Reply #5 on: February 21, 2015, 04:42:27 am »
Hi

@Dave

RPM/YUM free zone  :-)

xf86sup.sys? - I guess it should have an entry in the config.sys file but it looks like the install did not add the line. I added it and rebooted.

Having realised that another part of the problem is a missing x11 server I installed hoblink x11.

I can now start gimp and xsane.

Sadly it seems it was all a waste of time as there does not seem to be any way to tell xsane which scanner to use; it seems to rely on discovering devices itself and, sadly, it fails.

Back to using scanimage - and having to "reboot" the Canon MG7550 after every scan  :-(


@Greggory

Thanks for your link http://os2notes.net/old/os2gimp2.html

The settings shown for hoblink/2 conflict with others I have seen but yours work  :-)


Regards

Pete