OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: Pete 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
-
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.
-
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
-
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
-
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?
-
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