Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3789 closed defect (invalid)

Configure script error prevents enabling Poppler

Reported by: recurry Owned by: warmerdam
Priority: normal Milestone: 1.8.0
Component: ConfigBuild Version: svn-trunk
Severity: major Keywords: Poppler
Cc:

Description

When enabling Poppler support the Configure script always comes back 'NO'. I traced this problem to an error in the script which specifies the poppler library for linking even though the test code is compiled with the '-c' option (compile only).

if test -z "${CXX} testpoppler.cpp -c ${TEST_POPPLER_INC} 2>&1" ; then

Subsequently, the compiler comes back with a warning saying the library argument is unused because linking was not done. The fix is to remove the '${TEST_POPPLER_INC}' parameter from lines 23401 and 23481. I can submit the fix myself but it won't be for a few days since I'm in the middle of a time critical project.

Ron Curry

Change History (3)

comment:1 by Even Rouault, 14 years ago

I'm afraid I don't understand well whay you mean. The "${CXX} testpoppler.cpp -c ${TEST_POPPLER_INC} 2>&1" stuff only tries to compile. Why is the compiler mentionning stuff about linking ? I don't have those problems on my box (Ubuntu 10.04)

Are you using latest GDAL svn trunk version ? I made a fix 12 days ago that is somehow related to what you mention : see r20779. But I guess you are not using latest version, since line 23401 and 23481 in configure are not the ones you mention

If you really use latest version, I'm afraid you'll have to provide more elements on how to reproduce : the actual warning reported by the compiler, your Linux distro, etc...

in reply to:  1 comment:2 by recurry, 14 years ago

Resolution: invalid
Status: newclosed

Replying to rouault:

I'm afraid I don't understand well whay you mean. The "${CXX} testpoppler.cpp -c ${TEST_POPPLER_INC} 2>&1" stuff only tries to compile. Why is the compiler mentionning stuff about linking ? I don't have those problems on my box (Ubuntu 10.04)

Are you using latest GDAL svn trunk version ? I made a fix 12 days ago that is somehow related to what you mention : see r20779. But I guess you are not using latest version, since line 23401 and 23481 in configure are not the ones you mention

If you really use latest version, I'm afraid you'll have to provide more elements on how to reproduce : the actual warning reported by the compiler, your Linux distro, etc...

My apologies. It was broken but I was using a trunk version from about 3 week ago. The fix you made in the latest version corrects the problem and does enable it to configure for poppler. I'm testing the compile right now.

Sure wish there was an alternative to poppler. Unlike the rest of GDAL it's under GPL.

comment:3 by Even Rouault, 14 years ago

Yes the GPL licence might be an issue. But I have not found any other open source PDF library that isn't GPL... There's mupdf, but it's also GPL. The Free Software Foundation is developing a gnuPDF library, but it is also GPL.. So I think poppler (and especially the xpdf code it drags) as the most mature solution was the best choice,

See http://en.wikipedia.org/wiki/List_of_PDF_software

Note: See TracTickets for help on using tickets.