sheshant / pdf2image

Automatically exported from code.google.com/p/pdf2image
0 stars 0 forks source link

Error while trying to compile pdf2image on Ubuntu 10.10 #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download http://pdf2image.googlecode.com/files/pdf2image-0.49.tar.gz
2. tar xvf pdf2image-0.49.tar.gz
3. make

What is the expected output? What do you see instead?
I expected the make to complete successfully, but it did not.  I see the 
following error:

root@ubuntu:/home/chris/pdf2image# make
cd goo; make
make[1]: Entering directory `/home/streamliner/pdf2image/goo'
g++ -I/usr/local/include/freetype2 -I/usr/local/include -g -O2 -DHAVE_CONFIG_H 
-I.. -I. -c gfile.cc
In file included from gfile.cc:33:
gfile.h:131: error: ISO C++ forbids declaration of ‘DIR’ with no type
gfile.h:131: error: expected ‘;’ before ‘*’ token
gfile.cc: In constructor ‘GDir::GDir(char*, GBool)’:
gfile.cc:644: error: ‘dir’ was not declared in this scope
gfile.cc:644: error: ‘opendir’ was not declared in this scope
gfile.cc: In destructor ‘GDir::~GDir()’:
gfile.cc:661: error: ‘dir’ was not declared in this scope
gfile.cc:662: error: ‘closedir’ was not declared in this scope
gfile.cc: In member function ‘GDirEntry* GDir::getNextEntry()’:
gfile.cc:698: error: ‘dir’ was not declared in this scope
gfile.cc:699: error: ‘readdir’ was not declared in this scope
gfile.cc:700: error: invalid use of incomplete type ‘struct direct’
gfile.cc:696: error: forward declaration of ‘struct direct’
gfile.cc:704: error: invalid use of incomplete type ‘struct direct’
gfile.cc:696: error: forward declaration of ‘struct direct’
gfile.cc: In member function ‘void GDir::rewind()’:
gfile.cc:725: error: ‘dir’ was not declared in this scope
gfile.cc:726: error: ‘rewinddir’ was not declared in this scope
make[1]: *** [gfile.o] Error 1
make[1]: Leaving directory `/home/streamliner/pdf2image/goo'
make: *** [all] Error 2
root@ubuntu:/home/chris/pdf2image# 

What version of the product are you using? On what operating system?
Version 0.49 of pdf2image and Ubuntu 10.10

Please provide any additional information below.

I have installed g++, ghostscript and freetype 2.1.10.

Original issue reported on code.google.com by chris.f...@gmail.com on 6 Jul 2011 at 6:55

GoogleCodeExporter commented 8 years ago
There is a new ./configure script in the latest bundle, please run this script 
and see if it helps to resolve your issue

Original comment by erik.eng...@gmail.com on 5 Jan 2012 at 8:54

GoogleCodeExporter commented 8 years ago
duplicate. should be fixed by the latest ./configure script

Original comment by pdf2im...@devaldi.com on 9 Jan 2012 at 1:10