OS/2, eCS & ArcaOS - Technical > Programming

GSView - make complains of "No such file or directory"

<< < (2/4) > >>

Paul Smedley:
I have some vague memory of gsview using nmake rather than make.... perhaps try running nmake

Dariusz Piatkowski:
Paul,


--- Quote from: Paul Smedley on January 29, 2022, 09:13:04 pm ---I have some vague memory of gsview using nmake rather than make.... perhaps try running nmake

--- End quote ---

Thank you (Thumbs-Up), because somehow I missed the following in the Readme.htm doc:


--- Quote ---...
To compile GSview for OS/2 you need IBM NMAKE.EXE and EMX/GCC 0.9d. To create the GSview online help you need the IBM toolkit. Copy srcos2/os2.mak to Makefile and edit COMPBASE and EMXPATH as required. Type 'nmake'
...

--- End quote ---

Which now of course explains why there were multiple "!if" statements in the makefile and which GCC make.exe was choking on.

I had earlier assumed that the EMX requirements would be fulfilled by the current GCC RPM package releases, I say this because in the \usr\... tree there are multiple references to EMX objects. I do have exmrt.0.9d-5.oc00.i386 installed here, however I do not have the emxrt-devel.0.9d-5.oc00.i386 one.

Specifically, the EMX stuff I see is:


--- Quote ---Directory of G:\usr\bin

 8-26-21  9:13a        11,118    124 a---  emxaout.exe
 8-26-21  9:13a        22,883    124 a---  emxbind.exe
 8-26-21  9:13a        46,263    124 a---  emxexp.exe
 8-26-21  9:13a        25,286    124 a---  emximp.exe
 8-26-21  9:13a         6,289    124 a---  emxload.exe
 8-26-21  9:13a        97,002    124 a---  emxomf.exe
 8-26-21  9:13a        13,880    124 a---  emxomfar.exe
 8-26-21  9:13a        42,417    124 a---  emxomfld.exe
 8-26-21  9:13a         3,773    124 a---  emxomfstrip.exe
 8-26-21  9:13a         4,260    124 a---  emxstack.exe
 8-26-21  9:13a         9,209    124 a---  emxtsf.exe
       11 file(s)     282,380 bytes used

--- End quote ---

...and as best as I can tell these all came from the libc-devel-0.1.9-1.oc00.pentium4 RPM package.

So in order to avoid future self-made problems  :'( , what should I set COMPBASE and EMXPATH to?
 
Right now I have the makefile set to use:


--- Code: ---...
COMPBASE=$(DRIVE)\usr
EMXPATH=$(DRIVE)\usr
...

--- End code ---

Alright, so a little bit of un-do needed to get this moving...

Andy Willis:
I found the short readme I wrote, it shows I built Ver. 5 with gcc 4.4.7:
This is a quick build of gsview2 5.0.  I needed a copy of gsview2 but the link for gsview2 4.9 off of the gsview webpage
was dead so I pulled the source and built it.  This has had limited testing, just enough to see a few PDF and PS files opened.
Most of the testing has been with Paul Smedley's 9.04 version of Ghostscript.  This version was built with KLIBC rather
thank EMX so requires libc065.dll.  I built it with -static-libgcc so it should not require gcc447.dll but was built with
GCC 4.4.7.  It was built with -Zhigh-mem to use high memory so it may not run on older kernels without high-mem support.

Attaching the diff I created... I probably would have put it in the zip I uploaded too.

Andy Willis:
I did the build so long ago that I did not think of putting this up when I created a github account.
https://github.com/abwillis/gsview5.0

Dariusz Piatkowski:
Hi Andi,


--- Quote from: Andy Willis on January 30, 2022, 01:32:36 am ---I did the build so long ago that I did not think of putting this up when I created a github account.
https://github.com/abwillis/gsview5.0

--- End quote ---

Thank you sir!

I pulled the master ZIP file, going to start working with that instead of where I ended up.

Looking at the os2.mak from your distro, it does need IBM's nmake.exe though, right?

Otherwise it uses the GCC compiler I think.

EDIT
====
It built with nmake.exe and GCC, "straight outta the box"...yey!!!

I am running into a problem printing, debugging that right now, although the error msg I'm seeing doesn't point to anything obvious:


--- Quote ---gsdllname=G:\usr\lib\gsdll2.dll
option file=y:\tmp\gv8iV0as
input file=y:\tmp\gvkeoHRl
Option file contents:
  -I"G:\usr\share\ghostscript\9.18\resource\init;g:\usr\share\fonts\default\ghostscript"
  -dNOPAUSE
  -sDEVICE=ps2write
  -dDEVICEXRESOLUTION=600
  -dDEVICEYRESOLUTION=600
  -dDEVICEWIDTH=5100
  -dDEVICEHEIGHT=6600
  -sOutputFile="\\spool\PSCRIPTB"
  -dNOPLATFONTS
  -sFONTPATH="g:\psfonts;g:\usr\share\fonts\default\ghostscript"
Trying to load G:\usr\lib\gsdll2.dll
Loaded Ghostscript DLL
GPL Ghostscript 9.18 (2015-10-05)
Copyright (C) 2015 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GPL Ghostscript 9.18: **** Could not open the file \\spool\PSCRIPTB .
**** Unable to open the initial device, quitting.
gsapi_init_with_args returns -100
gsapi_exit returns 0
DosFreeModule returns 12

--- End quote ---

I think they key part there is the "Unable to open the initial device, quitting.", just don't quite know yet what that means...

Thanks!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version