Cross compiling on bit Windows is possible. Compiling for bit is similar to the Microsoft Environment instructions above, but with the addition of a WIN64 define. To do so, use the nsis makefile taget as well as any other options, for example:. There is a solution file that can be loaded into VS , in the directory winrt. The WinRT application or component should include iapi. Also any app using ghostscript either directly or via a component should add gsdll32metro. This inclusion of the dll is necessary so that it will be packaged with the app.
If one wishes to be able to run the debugger on ghostscript then gsdll32metro. The msys-dvlpr adds header files into the compiler's header search paths which cause a clash, and the build will fail as a result. The unix source distribution. You can generally just use the Makefile generated by configure as your top-level makefile and get a reasonable default build. This will allow you to use Ghostscript from the command line as a BSD-layer tool to rasterize postscript and pdf to image files, and convert between the high-level formats supported by Ghostscript.
See the instructions for the unix build below for details of how to customize this build. This can cause missing symbol link errors. That will force the linker to search the default directory first, and thus pick up the system libraries first. This can be achieved by using the following invokation of configure.
The separate options for CC and CPP are required because some of the features used by configure to explore the capabilities of the preprocessor are not compatible with having multiple -arch options. Building a shared library on MacOS X is the same as for other Unix-like systems, the "configure" step is done normally, and the "so" target is given to the make invocation, thus:.
The only difference compared to other Unix-like systems is that on OS X the resulting shared library is created with the ". Ghostscript now ships with a build system for unix-like operating systems based on GNU Autoconf. In general the following should work to configure and build Ghostscript:.
On modern unix systems,. Manual tempering and editing should rarely be needed nor recommended. It may also be helpful in getting Ghostscript to build on very old platforms.
The rest of this section deals exclusively with that older method and includes numerous pointers regarding legacy systems. Be sure to check the sections on tool- , OS- , and hardware- specific issues for notes on your particular platform and compiler. In fact, that is the first place to check if you build Ghostscript and it crashes or produces obviously incorrect results.
You require a make tool which supports separate directories for the derived objects such as object files, executables and dynamically created header files and the source files. We recommend using gcc. If you do choose to use the MIPSpro compiler, please read the following carefully. MIPSpro compiler version 3. All environments mentioned here by name have multi-threading capability. Note that you will not be able to use any so-called "async" drivers drivers that overlap interpretation and rasterization if you do this.
Other users please skip this section. Ghostscript sources do not include UFST sources. You need to obtain them separately. You will also need an additional, UFST specific makefile: contact Ghostscript support for more information. Starting with Ghostscript 9. General overview This document describes how to build a Ghostscript executable from source code. There are four major steps to building Ghostscript: Acquire the compressed archive files of source code for Ghostscript.
Unpack the archive files into the Ghostscript directory. Configure the build to match your system and desired configuration options. Invoke " make " to build the software. How to acquire the source code Building Ghostscript requires the Ghostscript source code itself, and in some cases the source code for the third-party libraries that Ghostscript uses.
How to acquire the development source code The Ghostscript team use git for version control. How to unpack compressed tar files generally Tar. You can do this in two steps, one to decompress the file and another to unpack it: gzip -d MyArchive. If you use one of these, you must set the program's options to "Use folder names" or the equivalent, and check that it is extracting files into the right place. WinZip 7-zip Info-ZIP are respectively a commercial and two free applications which can decompress and extract.
How to unpack Ghostscript itself At this point you have acquired the source code and are ready to unpack it according to the preceding guidelines. How to check for post-release bug fixes Bug information and fixes are tracked on Ghostscript Bugzilla.
Platform-specific makefiles Makefile Used for Makefile. Changes for your environment Assuming you have opted not to use the configure script or the default Microsoft Visual Studio bulid, you must edit the platform-specific makefile to change any of these: The name of the makefile itself MAKEFILE macro The locations to install Ghostscript files prefix etc. Selecting features and devices You may build Ghostscript with any of a variety of features and with any subset of the available device drivers.
Precompiled run-time data Ghostscript normally reads a number of external data files at run time: initialization files containing PostScript code, fonts, and other resources such as halftones.
For those distributing Ghostscript binaries, compiling those files into the executable has another implication, any site-specific customizations such as font and CIDFont substitutions are slightly more complex to implement - see: How Ghostscript finds files for how to influence where Ghostscript searches for files. Setting up "makefile" After going through the steps just described to unpack the sources , configure the build and make any desired changes to the makefiles.
Invoking "make" make Builds Ghostscript without debugging options. The program will be somewhat larger and slower, but it will behave no differently unless you actually turn on debugging options at execution time with the -DDEBUG or -Z command line switches described in the usage documentation. See the installation documentation.
If you've built an executable and want to save it, move it first to another place, because " make clean " deletes it. There is a corresponding " make soclean " for cleaning up.
Output is placed in. Cross-compiling Cross-compiling is not fully supported by the configure script such support is a work-in-progress. You can set the compiler to your cross-compiler for configure by doing:. Using the command line Ghostscript can be made using the Windows command prompt or one of the various command line shells made for Windows, as long as the command line syntax is compatible with the Windows CMD.
This command line can also be put into a batch file. There is a solution file that can be loaded into VS , in the directory winrt The WinRT application or component should include iapi.
Building a shared library on MacOS X is the same as for other Unix-like systems, the "configure" step is done normally, and the "so" target is given to the make invocation, thus: make so The only difference compared to other Unix-like systems is that on OS X the resulting shared library is created with the ". How to build Ghostscript from source Unix version Ghostscript now ships with a build system for unix-like operating systems based on GNU Autoconf.
Please report any problems with this method on your system as a bug. Other make implementations are known to work, but are not guaranteed to do so.
If cc on your system doesn't accept the -Aa switch, then you need to get the full cc or gcc. If you use H-P's compiler, be sure you have upgraded to a recent release. Many bizarre symptoms have been reported trying to build Ghostscript with older, buggier compilers, for example: The link step fails with a message about " max " not being defined.
Project Activity. Categories Printing , Viewers , Graphics Conversion. Follow Ghostscript Ghostscript Web Site. Mit einem Experten sprechen. User Ratings 4. User Reviews Filter Reviews: All. Net using Ghost script? I can just go to Artifex and get the latest version under that license. Where is the regular GPL GNU Public License version of ghostscript and why is there a separate repository here on sourceforge that is 5 versions out of date compared with the Artifex site? Additional Project Details Sep Report inappropriate content.
Thanks for helping keep SourceForge clean. X You seem to have CSS turned off. Briefly describe the problem required :. Execute it. Install Ghostscript Go to ghostscript download page. Check if SUN Java1. To know the java version, open a shell and at the prompt, type: java -version If Java1. Click 'source distribution here' link and save the ViennaRNA gz file. To install the Vienna RNA package, follow instructions here. Open a shell and go command cd to the Applications directory.
0コメント