Bug 689295 - Makefile changes to create a gspcl6.lib with MSVC.
Summary: Makefile changes to create a gspcl6.lib with MSVC.
Status: NOTIFIED LATER
Alias: None
Product: GhostPCL
Classification: Unclassified
Component: PCL interpreter (show other bugs)
Version: unspecified
Hardware: PC Windows 2000
: P2 enhancement
Assignee: Robin Watts
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-22 01:07 UTC by norbert.janssen
Modified: 2011-10-02 02:35 UTC (History)
2 users (show)

See Also:
Customer: 661
Word Size: ---


Attachments
top makefile to build gspcl6 lib (incl. xps). (1.80 KB, text/plain)
2007-06-22 01:09 UTC, norbert.janssen
Details
enhanced pcl6_msvc.mak to build a gspcl6.lib (7.86 KB, text/plain)
2007-06-22 01:10 UTC, norbert.janssen
Details
pl/plapi.h include file (2.42 KB, text/plain)
2007-06-22 01:28 UTC, norbert.janssen
Details
makefiles for ghostpdl-9.01 to make an all-in-one pdl (psi/xps/pcl) and a static library (12.08 KB, application/octet-stream)
2011-02-22 11:07 UTC, norbert.janssen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description norbert.janssen 2007-06-22 01:07:35 UTC
I enhanced the pcl6_msvc.mak to also be able to compile a
gspcl6.lib (instead of the gspcl6.exe).
This way you can link it to you'r own main(). These specific makefiles work
for ghostpcl-r2852+8046 (msvc vc7/8).

The makefile.win is used by me to call the pcl6_msvc.mak (it's similar to the
top Makefile, but it also declares some extra defines (disabling some MSVC
warnings and the like).

I call it with:
make -f makefile.win lib
Comment 1 norbert.janssen 2007-06-22 01:09:21 UTC
Created attachment 3046 [details]
top makefile to build gspcl6 lib (incl. xps).

This is the top-makefile I use to build a MSVC gspcl6.lib
Comment 2 norbert.janssen 2007-06-22 01:10:35 UTC
Created attachment 3047 [details]
enhanced pcl6_msvc.mak to build a gspcl6.lib

enhancements to pcl6_msvc.mak, in order to build a gspcl6.lib
Comment 3 norbert.janssen 2007-06-22 01:28:40 UTC
Created attachment 3049 [details]
pl/plapi.h include file

Contains some changes to enable the creation of a gspcl6.lib
Comment 4 Henry Stiles 2007-07-04 15:00:49 UTC
Lowering priority and changing to enhancement.  Also reassigning to Ralph who
will take this work into consideration as part of the larger project of tree
reorganization.
Comment 5 Ralph Giles 2007-11-14 17:11:30 UTC
Assigning to Ray, who's been working on the windows built. Feel free to pass
anything back.
Comment 6 Ralph Giles 2009-06-09 10:39:41 UTC
I'd like to do this in a different way when we get the trees merged.
Comment 7 Alex Andrushchak 2011-02-18 18:02:53 UTC
(In reply to comment #3)
> Created an attachment (id=3049) [details]
> pl/plapi.h include file
> 
> Contains some changes to enable the creation of a gspcl6.lib

Norbert,

i'm interrested in lib creatation also.
Do you have you patch for current 9.01 release of ghostpdl?
Comment 8 norbert.janssen 2011-02-22 11:07:36 UTC
Created attachment 7273 [details]
makefiles for ghostpdl-9.01 to make an all-in-one pdl (psi/xps/pcl) and a static library

mdofied makefiles (for ghostpdl-9.01) to build a gspdl.exe (PSI + XPS + PCL) based on a gslib.lib (gs-library + interpreters) + a main()

copy msvc_top.mak to common, msvccmd.mak and msvclib.mak to gs/base
put gspdl_msvc.mak in e.g. language_switch

example builds (I tried dos-box and msys-shell):

nmake -f gspdl_msvc.mak XPS_INCLUDED=TRUE PSI_INCLUDED=TRUE
  => PCL + XPS + PSI

nmake -f gspdl_msvc.mak XPS_INCLUDED=TRUE
  => PCL + XPS

nmake -f gspdl_msvc.mak PSI_INCLUDED=TRUE
  => PCL + PSI  (i.e. same as pspcl6_msvc.mak).

example usage:

I made a link on the desktop to this gspdl.exe (attached the gs-icon to it, e.g. from c:\Program Files\gs\uninstgs.exe) and modified properties : added '-sDEVICE=display' to the cmdline. Now I can drop any postscript, pcl or xps file on top of it to get it displayed.
Comment 9 Henry Stiles 2011-02-22 15:34:20 UTC
We'll discuss integrating these changes at our meeting today.
Comment 10 norbert.janssen 2011-02-23 06:50:06 UTC
(In reply to comment #9)
> We'll discuss integrating these changes at our meeting today.

Note that the USE_LARGE_COLOR_INDEX=0 in msvc_top.mak was needed when PSI_INCLUDED=TRUE, otherwise there was a mis-alignment on the color_info (4 bytes of). I couldn't figure out were it comes from.

Also I'm not entirely sure whether plapi.h needs some tweaking for c++. support. I.e. if the gslib.lib is to be linked against a main.cpp.