We installed GPL ghostscript version gs9.18.
As per documentation
http://www.ghostscript.com/doc/tiff/html/man/tiffcp.1.html
We can use tiffcp command. But when I using below command it's giving error.
Can somebody tell me how to use tiffcp using ghostscript.
D:\>D:\capfmw\gs\gs9.18\bin\gswin64c.exe tiffcp -c none -sOutputFile="D:\testima
gefolder\ghostscript-converted-tiffs\test1.tif" D:\testimagefolder\wfr\264688.ti
ff
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.
Error: /undefinedfilename in (tiffcp)
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-
- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa
lse 1 %stopped_push
Dictionary stack:
--dict:1189/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.18: Unrecoverable error, exit code 1
That is not part of the Ghostscript documentation, its part of the LibTiff documentation.
Ghostscript uses LibTiff in order to create TIFF output and as part of our GPL conformance we include the entire LibTiff distribution, including the documentation.
Tiffcp is part of libtiff, not part of Ghostscript, if you want to use it you will need to build the libtiff utilities. Note that since you are using Windows you will not have the source package and so you will need to use Git to clone our repository in order to get LibTiff. Alternatively you could simply pick up libtiff from here
Related
When attempting to compile this project using make in cygwin64, I encounter this error:
carolyns#ugrpc /cygdrive/c/Program Files (x86)/Discourse_Parser_Dist/bllip-parser-master/bllip-parser-master
$ make
C:/Program Files (x86)/GnuWin32/bin/make -C first-stage/PARSE parseIt
/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `C:/Program Files (x86)/GnuWin32/bin/make -C first-stage/PARSE parseIt'
make: *** [PARSE] Error 1
Some sleuthing suggests the issue could be my bash version, but I am using V4 as seems recommended
carolyns#ugrcpc /cygdrive/c/Program Files (x86)/Discourse_Parser_Dist/bllip-parser-master/bllip-parser-master
$ bash --version
GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
as well as make V3.81
carolyns#ugrpc /cygdrive/c/Program Files (x86)/Discourse_Parser_Dist/bllip-parser-master/bllip-parser-master
$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
I have also added SHELL := /bin/bash as suggested by this issue
Other sources of this error seem unrelated to my situation (echo problem).
I've tried this using MinGW64 as well with the same result. I've also tried moving the folder out of the Program Files directory, with the same result.
Any help would be greatly appreciated.
Fixed
It was unhappy with my make path including Program Files (x86). I moved make and forced it to use the new path and got a shiny new error.
Hope this helps another windows newbie.
Trying to run make on Windows7 with mingw but got cryptic error. I can't figure out what line in Makefile or what command caused the error.
C:\pkgs\C-TCC-0.02>make --debug > tmp.txt
syntax error at -e line 1, at EOF
Execution of -e aborted due to compilation errors.
make: *** [blib\lib\C\\.exists] Error 255
The tmp.txt file
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-pc-mingw32
Reading makefiles...
Updating goal targets....
File `makemakerdflt' does not exist.
File `all' does not exist.
File `pure_all' does not exist.
File `config' does not exist.
File `blibdirs' does not exist.
File `blib\lib\C\\.exists' does not exist.
Must remake target `blib\lib\C\\.exists'.
Any ideas would be appreciated.
UPDATE1
Here is the Makefile
Figured it out. I should have used dmake instead of make.
Thanks to the tip from Perl Monks
I'm running into issues installing the Carmen Robotics toolkit in Fedora;
Making:
When I type make, I get the following error message
---- Copying global/carmen-std.ini to carmen.ini
***********
E X P O R T
***********
---- Copying ipc.h to [path]/carmen-0.7.4-beta/include/carmen
... many similar lines
---- Copying param_interface.h to [path]/carmen-0.7.4-beta/include/carmen
Makefile:7: *** missing separator. Stop.
make: *** [export] Error 255
I've googled around and saw that this can be caused by spaces instead of tabs at the beginnings of lines. There is no such issue anywhere near line 7 of the makefile.
Doing make -d gives a lot of output, which ends with:
Updating goal targets.... Considering target file `export'.
File `export' does not exist.
Finished prerequisites of target file `export'.
Must remake target `export'.
Invoking recipe from ../Makefile.rules:285 to update target `export'.
Putting child 0x174b8e0 (export) PID 5816 on the chain.
Live child 0x174b8e0 (export) PID 5816
Reaping winning child 0x174b8e0 PID 5816
Live child 0x174b8e0 (export) PID 5819
Reaping winning child 0x174b8e0 PID 5819
Removing child 0x174b8e0 PID 5819 from chain.
Successfully remade target file `export'.
GNU Make 3.82 Built for x86_64-redhat-linux-gnu Copyright (C) 2010
Free Software Foundation, Inc. License GPLv3+:
GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Reading makefile `Makefile'...
Reading makefile `../Makefile.conf' (search path) (no ~ expansion)...
Reading makefile `../Makefile.vars' (search path) (no ~ expansion)...
Makefile:7: *** missing separator. Stop.
Reaping losing child 0xda4940 PID 5794
make: *** [export] Error 255
Removing child 0xda4940 PID 5794 from chain.
I've heard that getting to Carmen to compile can be a terrible experience, but I didn't expect that it would give me this much trouble, especially since I'd done it successfully on another computer in the past.
I can't even make clean
Does anyone have sage wisdom to offer on this topic?
I downgraded from Make 3.82 to 3.81 and this issue went away.
I download the GPL Ghsotscript9.00 from sourceforge.net, and try to bulid source as framework in mac, the steps as the help document about make, such as: copy macosx.mak to the top-level directory, rename it to makefile and issue 'make framework' from Terminal.app. then the procedure ends with this:
./base/gsicc_create.c: At top level:
./base/gsicc_create.c:242: warning: ‘gsicc_diagmatrix_init’ defined but not used
./base/gsicc_create.c:294: warning: ‘cie_is_lab’ defined but not used
./base/gsicc_create.c:542: warning: ‘swapbytes32’ defined but not used
./base/gsicc_create.c:692: warning: ‘add_desc_tag’ defined but not used
./base/gsicc_create.c:714: warning: ‘add_text_tag’ defined but not used
./base/gsicc_create.c:1382: warning: ‘add_tabledata’ defined but not used
make[1]: *** No rule to make target `obj/../soobj/lcms.dev', needed by `obj/../soobj/sicclib.dev'. Stop.
make: *** [so] Error 2
I don't know why the official file can't work? Maybe there are some operations I need to do before making, but how?
Thanks.
Please try the latest 9.04 from http://www.ghostscript.com/download (this is the top level page, actual
source download from http://downloads.ghostscript.com/public/ghostscript-9.04.tar.gz )
If you continue to have problems, please post the issue at http://bugs.ghostscript.com
We have several Artifex staff developers that work on macosx that build regularly, but they may not build the
shared obj lib regularly.
I am trying to build Firefox 3.6 Beta 4 using Visual Studio 2005 on Windows. I downloaded the release source, the latest version of mozilla build, but get the error "C compiler cannot create executables.". I have been able to build all other 3.5 and previous versions without any issues.
The problem occurs at the start of the build process where it is testing whether or not it can even compile and create an executable.
The build output is...
$ make -f client.mk build
Adding client.mk options from /c/dev/ff3.6/mozilla-1.9.2/.mozconfig:
MOZ_OBJDIR=$(TOPSRCDIR)/obj-firefox
MOZ_CO_PROJECT=browser
make[1]: Entering directory `/c/dev/ff3.6/mozilla-1.9.2'
cd /c/dev/ff3.6/mozilla-1.9.2/obj-firefox
/c/dev/ff3.6/mozilla-1.9.2/configure
Adding configure options from /c/dev/ff3.6/mozilla-1.9.2/.mozconfig:
--disable-tests
--with-windows-version=501
--enable-application=browser
--disable-vista-sdk-requirements
loading cache ./config.cache
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking build system type... i686-pc-mingw32
checking for gawk... gawk
checking for perl5... no
checking for perl... /bin/perl
checking for gcc... cl
checking whether the C compiler (cl ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
*** Fix above errors and then restart with "make -f client.mk build"
make[1]: *** [configure] Error 1
make[1]: Leaving directory `/c/dev/ff3.6/mozilla-1.9.2'
make: *** [/c/dev/ff3.6/mozilla-1.9.2/obj-firefox/Makefile] Error 2
The config.log is...
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:1019: checking host system type
configure:1040: checking target system type
configure:1058: checking build system type
configure:1141: checking for gawk
configure:1258: checking for perl5
configure:1258: checking for perl
configure:2350: checking for gcc
configure:2463: checking whether the C compiler (cl ) works
configure:2479: cl -o conftest conftest.c 1>&5
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
cl : Command line warning D9024 : unrecognized source file type 'c:/mozilla-build/msys/DTEST=2', object file assumed
conftest.c
Microsoft (R) Incremental Linker Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
/out:DTEST=2.exe
/out:conftest.exe
c:/mozilla-build/msys/DTEST=2
conftest.obj
LINK : fatal error LNK1181: cannot open input file 'c:/mozilla-build/msys/DTEST=2.obj'
configure: failed program was:
#line 2474 "configure"
#include "confdefs.h"
The .mozconfig is ..
# Options for client.mk.
mk_add_options MOZ_OBJDIR=#TOPSRCDIR#/obj-firefox
mk_add_options MOZ_CO_PROJECT=browser
# Options for 'configure' (same as command-line options).
ac_add_options --disable-tests
ac_add_options --with-windows-version=501
ac_add_options --enable-application=browser
ac_add_options --disable-vista-sdk-requirements
Any ideas?
I don't know too much about MSYS, but it seems as if MSYS and/or configure passes some weird options to the compiler. The compiler seems to interpret "c:/mozilla-build/msys/DTEST=2" as the source file type, which leads me to suspect that /T appears on the command line (see http://msdn.microsoft.com/en-us/library/032xwy55.aspx).
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
cl : Command line warning D9024 : unrecognized source file type 'c:/mozilla-build/msys/DTEST=2', object file assumed
conftest.c
Microsoft (R) Incremental Linker Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
/out:DTEST=2.exe
/out:conftest.exe
c:/mozilla-build/msys/DTEST=2
conftest.obj
LINK : fatal error LNK1181: cannot open input file 'c:/mozilla-build/msys/DTEST=2.obj'
configure: failed program was:
Can you run the configure-script with the -x option and extract the exact compiler command line?
Im try to compile the the following file "TESTFILE.b".
My file is in the path /home/santy/dir1/TESTFILE.b
I'm compiling the file in following path by excuting the command as /home/santy/> jcompile dir1/TESTFILE.b
Below shows the error.
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
TESTFILE.c
link #D:\Users\MSANTH~1\AppData\Local\Temp\jbuild385>D:\Users\MSANTH~1\AppData\Local\Temp\jbuild386 failed , command returned a code of 1181
LINK : warning LNK4044: unrecognized option '/DWIN32'; ignored
LINK : warning LNK4044: unrecognized option '/MD'; ignored
LINK : warning LNK4044: unrecognized option '/W3'; ignored
LINK : warning LNK4044: unrecognized option '/GR'; ignored
LINK : warning LNK4044: unrecognized option '/EHsc'; ignored
LINK : warning LNK4044: unrecognized option '/GF'; ignored
LINK : warning LNK4044: unrecognized option '/F5000000'; ignored
LINK : warning LNK4044: unrecognized option '/D_LARGEFILE_SOURCE'; ignored
LINK : warning LNK4044: unrecognized option '/D_LARGEFILE64_SOURCE'; ignored
LINK : warning LNK4044: unrecognized option '/D_FILE_OFFSET_BITS=64'; ignored
LINK : fatal error LNK1181: cannot open input file 'QA\TESTFILE.obj'
jcompile: QA\TESTFILE.j deleted
jcompile: QA\TESTFILE.c deleted
jcompile: Returned an error code of 8
cl version:
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]