Unable to install pdftohtml 0.40a

  • Nishit Shah

    Nishit Shah - 2010-08-17

    "make" works fine, but "make install" gives the following error for pdftohtml-0.40a:

    mkdir -p /usr/local/bin
    /usr/bin/install -c xpdf/pdftops /usr/local/bin/pdftops
    /usr/bin/install: cannot stat `xpdf/pdftops': No such file or directory
    make: ***  Error 1

    I already have xpdf and pdftops installed.
    Any help is appreciated.

    PS: The console output of "make" is,

    cd goo; make
    make: Entering directory `/home/nshah/pdftohtml-0.40a/goo'
    g++  -O2 -DHAVE_CONFIG_H -I.. -I.  -c GHash.cc
    g++  -O2 -DHAVE_CONFIG_H -I.. -I.  -c GList.cc
    g++  -O2 -DHAVE_CONFIG_H -I.. -I.  -c GString.cc
    g++  -O2 -DHAVE_CONFIG_H -I.. -I.  -c gmempp.cc
    g++  -O2 -DHAVE_CONFIG_H -I.. -I.  -c gfile.cc
    cc  -O2 -DHAVE_CONFIG_H -I.. -I.  -c gmem.c
    cc  -O2 -DHAVE_CONFIG_H -I.. -I.  -c parseargs.c
    rm -f libGoo.a
    ar rc libGoo.a GHash.o GList.o GString.o gmempp.o gfile.o gmem.o parseargs.o
    ranlib libGoo.a
    make: Leaving directory `/home/nshah/pdftohtml-0.40a/goo'
    cd fofi; make
    make: Entering directory `/home/nshah/pdftohtml-0.40a/fofi'
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I. -c FoFiBase.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I. -c FoFiEncodings.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I. -c FoFiTrueType.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I. -c FoFiType1.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I. -c FoFiType1C.cc
    rm -f libfofi.a
    ar rc libfofi.a FoFiBase.o FoFiEncodings.o FoFiTrueType.o FoFiType1.o FoFiType1C.o
    ranlib libfofi.a
    make: Leaving directory `/home/nshah/pdftohtml-0.40a/fofi'
    cd splash; make
    make: Entering directory `/home/nshah/pdftohtml-0.40a/splash'
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c Splash.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashBitmap.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashClip.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashFTFont.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashFTFontEngine.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashFTFontFile.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashFont.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashFontEngine.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashFontFile.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashFontFileID.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashPath.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashPattern.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashScreen.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashState.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashT1Font.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashT1FontEngine.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashT1FontFile.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashXPath.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I.   -c SplashXPathScanner.cc
    rm -f libsplash.a
    ar rc libsplash.a Splash.o SplashBitmap.o SplashClip.o SplashFTFont.o SplashFTFontEngine.o SplashFTFontFile.o SplashFont.o SplashFontEngine.o SplashFontFile.o SplashFontFileID.o SplashPath.o SplashPattern.o SplashScreen.o SplashState.o SplashT1Font.o SplashT1FontEngine.o SplashT1FontFile.o SplashXPath.o SplashXPathScanner.o
    ranlib libsplash.a
    make: Leaving directory `/home/nshah/pdftohtml-0.40a/splash'
    cd xpdf; make
    make: Entering directory `/home/nshah/pdftohtml-0.40a/xpdf'
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Annot.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Array.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c BuiltinFont.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c BuiltinFontTables.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Catalog.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c CharCodeToUnicode.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c CMap.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Decrypt.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Dict.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Error.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c FontEncodingTables.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Function.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Gfx.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c GfxFont.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c GfxState.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c GlobalParams.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c JArithmeticDecoder.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c JBIG2Stream.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c JPXStream.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Lexer.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Link.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c NameToCharCode.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Object.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Outline.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c OutputDev.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Page.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Parser.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c PDFDoc.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c PDFDocEncoding.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c PSOutputDev.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c PSTokenizer.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c Stream.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c UnicodeMap.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c SecurityHandler.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c UnicodeTypeTable.cc
    g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I.           -I/usr/X11R6/include -c XRef.cc
    rm -f libXpdf.a
    ar rc libXpdf.a Annot.o Array.o BuiltinFont.o BuiltinFontTables.o Catalog.o CharCodeToUnicode.o CMap.o Decrypt.o Dict.o Error.o FontEncodingTables.o Function.o Gfx.o GfxFont.o GfxState.o GlobalParams.o JArithmeticDecoder.o JBIG2Stream.o JPXStream.o Lexer.o Link.o NameToCharCode.o Object.o Outline.o OutputDev.o Page.o Parser.o PDFDoc.o PDFDocEncoding.o PSOutputDev.o PSTokenizer.o Stream.o UnicodeMap.o SecurityHandler.o UnicodeTypeTable.o XRef.o
    ranlib libXpdf.a
    make: Leaving directory `/home/nshah/pdftohtml-0.40a/xpdf'
    cd src; make
    make: Entering directory `/home/nshah/pdftohtml-0.40a/src'
    g++ -g -O2 -DHAVE_CONFIG_H -DHAVE_DIRENT_H=1  -I.. -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I.. -I../goo -I../xpdf -I../fofi -I../splash -I           -I/usr/X11R6/include -c HtmlOutputDev.cc
    g++ -g -O2 -DHAVE_CONFIG_H -DHAVE_DIRENT_H=1  -I.. -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I.. -I../goo -I../xpdf -I../fofi -I../splash -I           -I/usr/X11R6/include -c HtmlFonts.cc
    g++ -g -O2 -DHAVE_CONFIG_H -DHAVE_DIRENT_H=1  -I.. -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I.. -I../goo -I../xpdf -I../fofi -I../splash -I           -I/usr/X11R6/include -c HtmlLinks.cc
    g++ -g -O2 -DHAVE_CONFIG_H -DHAVE_DIRENT_H=1  -I.. -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I.. -I../goo -I../xpdf -I../fofi -I../splash -I           -I/usr/X11R6/include -c pdftohtml.cc
    g++ -g -O2 -DHAVE_CONFIG_H -DHAVE_DIRENT_H=1  -I.. -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1 -I.. -I../goo -I../xpdf -I../fofi -I../splash -I           -I/usr/X11R6/include  -o pdftohtml HtmlOutputDev.o HtmlFonts.o HtmlLinks.o pdftohtml.o \
    -L../goo -L../fofi -L../splash -L../xpdf  -lXpdf -lGoo -lfofi -lsplash -lm
    ../goo/libGoo.a(gfile.o): In function `openTempFile(GString**, _IO_FILE**, char*, char*)':
    gfile.cc:(.text+0x64a): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
    make: Leaving directory `/home/nshah/pdftohtml-0.40a/src'

  • Satish Chauhan

    Satish Chauhan - 2011-01-19

    Below mentioned step works for me.

    wget http://sourceforge.net/projects/pdftohtml/files/Experimental%20Versions/pdftohtml%200.40/pdftohtml-0.40a.tar.gz/download
    wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02.tar.gz

    tar -xf /home/satish/pdftohtml-0.40a.tar.gz
    tar -xf /home/satish/xpdf-3.02.tar.gz

    cd /home/satish/xpdf-3.02

    cd /home/satish/pdftohtml-0.40a

    mv/cp /home/satish/pdftohtml-0.40a/xpdf /home/satish/pdftohtml-0.40a/xpdf-old

    mv/cp /home/satish/xpdf-3.02/xpdf /home/satish/pdftohtml-0.40a/xpdf
    mv/cp /home/satish/xpdf-3.02/doc /home/satish/pdftohtml-0.40a/doc

    cd /home/satish/pdftohtml-0.40a
    make install

    /usr/bin/install -c ./src/pdftohtml /usr/local/bin/pdftohtml

  • Anonymous - 2011-05-04

    Thanks a lot Satish. I was using 0.36 which had issue with zoom functionality. Your post helped me.

  • Aviox

    Aviox - 2012-07-01

    Thank you =)


Log in to post a comment.