Dan G
Dan G

Reputation: 856

Building GhostScript 9.04 Win32

I want to build GhostScript 9.04 for Win32 and I have read the documentation to do so which details creating your own makefile project.

I was just curious about the "ghostscript.vcproj" I'm finding in the top level directory. If I convert this to VS2010, I seem to get a good build out of it.

Is there any reason not to use this "ghostscript.vcproj"? The build commandline seems to have some extra stuff in it than what is detailed in the documentation, so I was worried that it might be making some kind of specialized build. See below

nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= && nmake -f psi\msvc32.mak DEVSTUDIO= bsc

Upvotes: 1

Views: 682

Answers (2)

iSofia
iSofia

Reputation: 1532

Sorry to bump a very old topic, but when attempting to compile GhostScript v.9.14.1 with Visual Studio 2015, I get these errors:

Error U1034 syntax error : separator missing lib.mak (line 51)

Error MSB3073 The command "nmake -f psi\msvc32.mak SBR=1 DEVSTUDIO= debug && nmake -f psi\msvc32.mak DEVSTUDIO= debugbsc" exited with code 2.   ghostscript C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets

Here's the code at line 51 in lib.mak:

GLLCMS2CC=$(CC_SHARED) $(GCFLAGS) $(I_)$(GLI_) $(II)$(LCMS2SRCDIR)$(D)include$(_I) $(GLF_)

Is there any way to remedy this?

Thank you.

PS: Does this project build the DLL? Could we build the DLL ourselves?

Upvotes: 1

KenS
KenS

Reputation: 31159

You can use the solutions supplied, they are fine and its what we use. If you would rather use nmake and the makefiles then that's fine too, the solutions simply use the makefiles so its sort of the same, just more convenient in some ways if you are using Visual Studio.

The 'extra stuff' is in there to support the visual studio source browser, basically to improve the experience when using Visual Studio, its not essential.

I'll see about updating the documentation in make.htm.

Upvotes: 2

Related Questions