Hi Albert<br> <br> Sorry I forgot to remove xrefA from 'load_from_png'. And I check if the <br>video_name is null iam assigning video_name = video_file<br><br>Thanks<br>-- <br>A Srinivas<br><br><br><br>
<div class="gmail_quote">On Wed, Mar 9, 2011 at 6:09 PM, <span dir="ltr"><<a href="mailto:poppler-request@lists.freedesktop.org">poppler-request@lists.freedesktop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Send poppler mailing list submissions to<br>
<a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:poppler-request@lists.freedesktop.org">poppler-request@lists.freedesktop.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:poppler-owner@lists.freedesktop.org">poppler-owner@lists.freedesktop.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of poppler digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. poppler/Annot.cc poppler/Annot.h (Carlos Garcia Campos)<br>
2. Re: Patch for embedding videos in to the pdf (Albert Astals Cid)<br>
3. Re: Question about CurlCachedFileLoader::init (Albert Astals Cid)<br>
4. 2 commits - poppler/Form.cc poppler/Form.h (Carlos Garcia Campos)<br>
5. configure disable-X ignored (Tim Brody)<br>
6. Re: configure disable-X ignored (Harry Roberts)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 8 Mar 2011 12:40:05 -0800 (PST)<br>
From: <a href="mailto:carlosgc@kemper.freedesktop.org">carlosgc@kemper.freedesktop.org</a> (Carlos Garcia Campos)<br>
Subject: [poppler] poppler/Annot.cc poppler/Annot.h<br>
To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
Message-ID: <<a href="mailto:20110308204006.A28B6F80C2@kemper.freedesktop.org">20110308204006.A28B6F80C2@kemper.freedesktop.org</a>><br>
<br>
poppler/Annot.cc | 8 ++++++--<br>
poppler/Annot.h | 2 +-<br>
2 files changed, 7 insertions(+), 3 deletions(-)<br>
<br>
New commits:<br>
commit abe1e0d5a37bcdb4376901306d3adccfb33ff3b4<br>
Author: Carlos Garcia Campos <<a href="mailto:carlosgc@gnome.org">carlosgc@gnome.org</a>><br>
Date: Tue Mar 8 21:39:00 2011 +0100<br>
<br>
annots: Make sure no border is drawn for invalid border arrays<br>
<br>
Fixes regression on ClassSchedule_2091_ENGL.pdf<br>
<br>
diff --git a/poppler/Annot.cc b/poppler/Annot.cc<br>
index 7b800ad..ef1aa64 100644<br>
--- a/poppler/Annot.cc<br>
+++ b/poppler/Annot.cc<br>
@@ -439,7 +439,7 @@ AnnotBorder::AnnotBorder() {<br>
style = borderSolid;<br>
}<br>
<br>
-void AnnotBorder::parseDashArray(Object *dashObj) {<br>
+GBool AnnotBorder::parseDashArray(Object *dashObj) {<br>
GBool correct = gTrue;<br>
int tempLength = dashObj->arrayGetLength();<br>
double *tempDash = (double *) gmallocn (tempLength, sizeof (double));<br>
@@ -463,6 +463,8 @@ void AnnotBorder::parseDashArray(Object *dashObj) {<br>
} else {<br>
gfree (tempDash);<br>
}<br>
+<br>
+ return correct;<br>
}<br>
<br>
AnnotBorder::~AnnotBorder() {<br>
@@ -508,7 +510,9 @@ AnnotBorderArray::AnnotBorderArray(Array *array) {<br>
<br>
if (arrayLength == 4) {<br>
if (array->get(3, &obj1)->isArray())<br>
- parseDashArray(&obj1);<br>
+ correct = parseDashArray(&obj1);<br>
+ else<br>
+ correct = gFalse;<br>
obj1.free();<br>
}<br>
} else {<br>
diff --git a/poppler/Annot.h b/poppler/Annot.h<br>
index 4efd762..3126e53 100644<br>
--- a/poppler/Annot.h<br>
+++ b/poppler/Annot.h<br>
@@ -233,7 +233,7 @@ public:<br>
virtual AnnotBorderStyle getStyle() const { return style; }<br>
<br>
protected:<br>
- void parseDashArray(Object *dashObj);<br>
+ GBool parseDashArray(Object *dashObj);<br>
<br>
AnnotBorderType type;<br>
double width;<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 8 Mar 2011 22:23:07 +0000<br>
From: Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>><br>
Subject: Re: [poppler] Patch for embedding videos in to the pdf<br>
To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
Message-ID: <<a href="mailto:201103082223.07918.aacid@kde.org">201103082223.07918.aacid@kde.org</a>><br>
Content-Type: Text/Plain; charset="iso-8859-1"<br>
<br>
A Divendres, 4 de mar? de 2011, srinivas adicherla va escriure:<br>
> Hi,<br>
><br>
> Thank you very much for all your suggestions.<br>
> I added support for jpeg image also for the poster of the embedded<br>
> video. so if user doesn't give any poster the screen is empty.<br>
><br>
> Please give me suggestions on this.<br>
><br>
<br>
+static MemStream* load_from_png (FILE *f, Object *imgXObj, XRef *xrefA) {<br>
<br>
You don't seem to use xrefA, can you remove it?<br>
<br>
+ // Extract the video name from the file uri<br>
+ const char *video_name = strrchr(video_file, '/');<br>
+ video_name++;<br>
+<br>
+ Object obj1, obj2, obj3, obj4;<br>
+<br>
+ annotObj.dictSet("T", obj1.initString(new GooString(video_name))); // title<br>
<br>
Will crash if there is no / in video_file<br>
<br>
Albert<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 9 Mar 2011 00:00:22 +0000<br>
From: Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>><br>
Subject: Re: [poppler] Question about CurlCachedFileLoader::init<br>
To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
Message-ID: <<a href="mailto:201103090000.23743.aacid@kde.org">201103090000.23743.aacid@kde.org</a>><br>
Content-Type: Text/Plain; charset="us-ascii"<br>
<br>
A Diumenge, 30 de gener de 2011, Albert Astals Cid va escriure:<br>
> I see that in CurlCachedFileLoader::init we do<br>
> curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &code);<br>
> And then never use code again. Can we just remove that line?<br>
<br>
Hib?<br>
<br>
Albert<br>
<br>
><br>
> Albert<br>
> _______________________________________________<br>
> poppler mailing list<br>
> <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Wed, 9 Mar 2011 01:26:25 -0800 (PST)<br>
From: <a href="mailto:carlosgc@kemper.freedesktop.org">carlosgc@kemper.freedesktop.org</a> (Carlos Garcia Campos)<br>
Subject: [poppler] 2 commits - poppler/Form.cc poppler/Form.h<br>
To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
Message-ID: <<a href="mailto:20110309092625.1AD1EF80C2@kemper.freedesktop.org">20110309092625.1AD1EF80C2@kemper.freedesktop.org</a>><br>
<br>
poppler/Form.cc | 165 ++++++++++++++++++++++++++++++--------------------------<br>
poppler/Form.h | 26 +++++---<br>
2 files changed, 107 insertions(+), 84 deletions(-)<br>
<br>
New commits:<br>
commit 2dd7e1ba09d4501adf9d10ab4cb8ee003cace74a<br>
Author: Carlos Garcia Campos <<a href="mailto:carlosgc@gnome.org">carlosgc@gnome.org</a>><br>
Date: Wed Mar 9 10:25:00 2011 +0100<br>
<br>
forms: Move modified flag from FormWidget to FormField<br>
<br>
diff --git a/poppler/Form.cc b/poppler/Form.cc<br>
index 4acf010..2af8d3d 100644<br>
--- a/poppler/Form.cc<br>
+++ b/poppler/Form.cc<br>
@@ -68,7 +68,6 @@ FormWidget::FormWidget(XRef *xrefA, Object *aobj, unsigned num, Ref aref, FormFi<br>
double t;<br>
ID = 0;<br>
fontSize = 0.0;<br>
- modified = gFalse;<br>
childNum = num;<br>
xref = xrefA;<br>
aobj->copy(&obj);<br>
@@ -133,6 +132,10 @@ bool FormWidget::isReadOnly() const<br>
return field->isReadOnly();<br>
}<br>
<br>
+GBool FormWidget::isModified() const {<br>
+ return field->isModified();<br>
+}<br>
+<br>
int FormWidget::encodeID (unsigned pageNum, unsigned fieldNum)<br>
{<br>
return (pageNum << 4*sizeof(unsigned)) + fieldNum;<br>
@@ -244,8 +247,6 @@ FormButtonType FormWidgetButton::getButtonType () const<br>
}<br>
<br>
void FormWidgetButton::setAppearanceState(char *state) {<br>
- modified = gTrue;<br>
-<br>
Object obj1;<br>
obj1.initName(state);<br>
obj.getDict()->set("AS", &obj1);<br>
@@ -342,7 +343,6 @@ void FormWidgetText::setContent(GooString* new_content)<br>
return;<br>
}<br>
<br>
- modified = gTrue;<br>
parent->setContentCopy(new_content);<br>
}<br>
<br>
@@ -373,7 +373,6 @@ void FormWidgetChoice::select (int i)<br>
return;<br>
}<br>
if (!_checkRange(i)) return;<br>
- modified = gTrue;<br>
parent->select(i);<br>
}<br>
<br>
@@ -384,7 +383,6 @@ void FormWidgetChoice::toggle (int i)<br>
return;<br>
}<br>
if (!_checkRange(i)) return;<br>
- modified = gTrue;<br>
parent->toggle(i);<br>
}<br>
<br>
@@ -394,7 +392,6 @@ void FormWidgetChoice::deselectAll ()<br>
error(-1, "FormWidgetChoice::deselectAll called on a read only field\n");<br>
return;<br>
}<br>
- modified = gTrue;<br>
parent->deselectAll();<br>
}<br>
<br>
@@ -424,7 +421,6 @@ void FormWidgetChoice::setEditChoice (GooString* new_content)<br>
return;<br>
}<br>
<br>
- modified = gTrue;<br>
parent->setEditChoice(new_content);<br>
}<br>
<br>
@@ -496,6 +492,7 @@ FormField::FormField(XRef* xrefA, Object *aobj, const Ref& aref, std::set<int> *<br>
fullyQualifiedName = NULL;<br>
quadding = quaddingLeftJustified;<br>
hasQuadding = gFalse;<br>
+ modified = gFalse;<br>
<br>
ref = aref;<br>
<br>
@@ -837,6 +834,7 @@ GBool FormFieldButton::setState(char *state)<br>
}<br>
}<br>
updateState(state);<br>
+ modified = gTrue;<br>
}<br>
<br>
return gTrue;<br>
@@ -933,6 +931,7 @@ void FormFieldText::setContentCopy (GooString* new_content)<br>
obj1.initString(content ? content->copy() : new GooString(""));<br>
obj.getDict()->set("V", &obj1);<br>
xref->setModifiedObject(&obj, ref);<br>
+ modified = gTrue;<br>
}<br>
<br>
FormFieldText::~FormFieldText()<br>
@@ -1097,6 +1096,7 @@ void FormFieldChoice::updateSelection() {<br>
<br>
obj.getDict()->set("V", &obj1);<br>
xref->setModifiedObject(&obj, ref);<br>
+ modified = gTrue;<br>
}<br>
<br>
void FormFieldChoice::unselectAll ()<br>
diff --git a/poppler/Form.h b/poppler/Form.h<br>
index 4913fa2..b5b4edd 100644<br>
--- a/poppler/Form.h<br>
+++ b/poppler/Form.h<br>
@@ -97,7 +97,7 @@ public:<br>
GooString *getMappingName() const;<br>
GooString *getFullyQualifiedName();<br>
<br>
- GBool isModified () { return modified; }<br>
+ GBool isModified () const;<br>
<br>
bool isReadOnly() const;<br>
<br>
@@ -118,7 +118,6 @@ protected:<br>
Object obj;<br>
Ref ref;<br>
XRef *xref;<br>
- GBool modified;<br>
<br>
//index of this field in the parent's child list<br>
unsigned childNum;<br>
@@ -270,6 +269,8 @@ public:<br>
void setReadOnly (bool b) { readOnly = b; }<br>
bool isReadOnly () const { return readOnly; }<br>
<br>
+ GBool isModified () const { return modified; }<br>
+<br>
GooString* getDefaultAppearance() const { return defaultAppearance; }<br>
GBool hasTextQuadding() const { return hasQuadding; }<br>
VariableTextQuadding getTextQuadding() const { return quadding; }<br>
@@ -298,6 +299,7 @@ public:<br>
int numChildren;<br>
FormWidget **widgets;<br>
bool readOnly;<br>
+ GBool modified;<br>
<br>
GooString *partialName; // T field<br>
GooString *alternateUiName; // TU field<br>
commit b04f03be7e43e309af5f164ef71788e7b8915841<br>
Author: Carlos Garcia Campos <<a href="mailto:carlosgc@gnome.org">carlosgc@gnome.org</a>><br>
Date: Wed Mar 9 10:17:57 2011 +0100<br>
<br>
forms: Move field names handling from FormWidget to FormField<br>
<br>
diff --git a/poppler/Form.cc b/poppler/Form.cc<br>
index 4698124..4acf010 100644<br>
--- a/poppler/Form.cc<br>
+++ b/poppler/Form.cc<br>
@@ -75,28 +75,6 @@ FormWidget::FormWidget(XRef *xrefA, Object *aobj, unsigned num, Ref aref, FormFi<br>
type = formUndef;<br>
field = fieldA;<br>
Dict *dict = obj.getDict();<br>
- fullyQualifiedName = NULL;<br>
-<br>
- if (dict->lookup("T", &obj1)->isString()) {<br>
- partialName = obj1.getString()->copy();<br>
- } else {<br>
- partialName = NULL;<br>
- }<br>
- obj1.free();<br>
-<br>
- if (dict->lookup("TU", &obj1)->isString()) {<br>
- alternateUiName = obj1.getString()->copy();<br>
- } else {<br>
- alternateUiName = NULL;<br>
- }<br>
- obj1.free();<br>
-<br>
- if(dict->lookup("TM", &obj1)->isString()) {<br>
- mappingName = obj1.getString()->copy();<br>
- } else {<br>
- mappingName = NULL;<br>
- }<br>
- obj1.free();<br>
<br>
if (!dict->lookup("Rect", &obj1)->isArray()) {<br>
error(-1, "Annotation rectangle is wrong type");<br>
@@ -147,10 +125,6 @@ FormWidget::FormWidget(XRef *xrefA, Object *aobj, unsigned num, Ref aref, FormFi<br>
<br>
FormWidget::~FormWidget()<br>
{<br>
- delete partialName;<br>
- delete alternateUiName;<br>
- delete mappingName;<br>
- delete fullyQualifiedName;<br>
obj.free ();<br>
}<br>
<br>
@@ -192,50 +166,20 @@ void FormWidget::updateField (const char *key, Object *value)<br>
xref->setModifiedObject(obj1, ref1);<br>
}<br>
<br>
-GooString* FormWidget::getFullyQualifiedName() {<br>
- Object obj1, obj2;<br>
- Object parent;<br>
- GooString *parent_name;<br>
- GooString *full_name;<br>
-<br>
- if (fullyQualifiedName)<br>
- return fullyQualifiedName;<br>
-<br>
- full_name = new GooString();<br>
-<br>
- obj.copy(&obj1);<br>
- while (obj1.dictLookup("Parent", &parent)->isDict()) {<br>
- if (parent.dictLookup("T", &obj2)->isString()) {<br>
- parent_name = obj2.getString();<br>
-<br>
- if (parent_name->hasUnicodeMarker()) {<br>
- parent_name->del(0, 2); // Remove the unicode BOM<br>
- full_name->insert(0, "\0.", 2); // 2-byte unicode period<br>
- } else {<br>
- full_name->insert(0, '.'); // 1-byte ascii period<br>
- }<br>
+GooString *FormWidget::getPartialName() const {<br>
+ return field->getPartialName();<br>
+}<br>
<br>
- full_name->insert(0, parent_name);<br>
- obj2.free();<br>
- }<br>
- obj1.free();<br>
- parent.copy(&obj1);<br>
- parent.free();<br>
- }<br>
- obj1.free();<br>
- parent.free();<br>
+GooString *FormWidget::getAlternateUiName() const {<br>
+ return field->getAlternateUiName();<br>
+}<br>
<br>
- if (partialName) {<br>
- full_name->append(partialName);<br>
- } else {<br>
- int len = full_name->getLength();<br>
- // Remove the last period<br>
- if (len > 0)<br>
- full_name->del(len - 1, 1);<br>
- }<br>
+GooString *FormWidget::getMappingName() const {<br>
+ return field->getMappingName();<br>
+}<br>
<br>
- fullyQualifiedName = full_name;<br>
- return fullyQualifiedName;<br>
+GooString *FormWidget::getFullyQualifiedName() {<br>
+ return field->getFullyQualifiedName();<br>
}<br>
<br>
LinkAction *FormWidget::createActivationAction(Catalog *catalog)<br>
@@ -549,6 +493,7 @@ FormField::FormField(XRef* xrefA, Object *aobj, const Ref& aref, std::set<int> *<br>
widgets = NULL;<br>
readOnly = false;<br>
defaultAppearance = NULL;<br>
+ fullyQualifiedName = NULL;<br>
quadding = quaddingLeftJustified;<br>
hasQuadding = gFalse;<br>
<br>
@@ -642,6 +587,27 @@ FormField::FormField(XRef* xrefA, Object *aobj, const Ref& aref, std::set<int> *<br>
hasQuadding = gTrue;<br>
}<br>
obj1.free();<br>
+<br>
+ if (dict->lookup("T", &obj1)->isString()) {<br>
+ partialName = obj1.getString()->copy();<br>
+ } else {<br>
+ partialName = NULL;<br>
+ }<br>
+ obj1.free();<br>
+<br>
+ if (dict->lookup("TU", &obj1)->isString()) {<br>
+ alternateUiName = obj1.getString()->copy();<br>
+ } else {<br>
+ alternateUiName = NULL;<br>
+ }<br>
+ obj1.free();<br>
+<br>
+ if(dict->lookup("TM", &obj1)->isString()) {<br>
+ mappingName = obj1.getString()->copy();<br>
+ } else {<br>
+ mappingName = NULL;<br>
+ }<br>
+ obj1.free();<br>
}<br>
<br>
FormField::~FormField()<br>
@@ -660,6 +626,10 @@ FormField::~FormField()<br>
obj.free();<br>
<br>
delete defaultAppearance;<br>
+ delete partialName;<br>
+ delete alternateUiName;<br>
+ delete mappingName;<br>
+ delete fullyQualifiedName;<br>
}<br>
<br>
void FormField::fillChildrenSiblingsID()<br>
@@ -714,6 +684,51 @@ FormWidget* FormField::findWidgetByRef (Ref aref)<br>
return NULL;<br>
}<br>
<br>
+GooString* FormField::getFullyQualifiedName() {<br>
+ Object obj1, obj2;<br>
+ Object parent;<br>
+ GooString *parent_name;<br>
+ GooString *full_name;<br>
+<br>
+ if (fullyQualifiedName)<br>
+ return fullyQualifiedName;<br>
+<br>
+ full_name = new GooString();<br>
+<br>
+ obj.copy(&obj1);<br>
+ while (obj1.dictLookup("Parent", &parent)->isDict()) {<br>
+ if (parent.dictLookup("T", &obj2)->isString()) {<br>
+ parent_name = obj2.getString();<br>
+<br>
+ if (parent_name->hasUnicodeMarker()) {<br>
+ parent_name->del(0, 2); // Remove the unicode BOM<br>
+ full_name->insert(0, "\0.", 2); // 2-byte unicode period<br>
+ } else {<br>
+ full_name->insert(0, '.'); // 1-byte ascii period<br>
+ }<br>
+<br>
+ full_name->insert(0, parent_name);<br>
+ obj2.free();<br>
+ }<br>
+ obj1.free();<br>
+ parent.copy(&obj1);<br>
+ parent.free();<br>
+ }<br>
+ obj1.free();<br>
+ parent.free();<br>
+<br>
+ if (partialName) {<br>
+ full_name->append(partialName);<br>
+ } else {<br>
+ int len = full_name->getLength();<br>
+ // Remove the last period<br>
+ if (len > 0)<br>
+ full_name->del(len - 1, 1);<br>
+ }<br>
+<br>
+ fullyQualifiedName = full_name;<br>
+ return fullyQualifiedName;<br>
+}<br>
<br>
//------------------------------------------------------------------------<br>
// FormFieldButton<br>
diff --git a/poppler/Form.h b/poppler/Form.h<br>
index 74539ca..4913fa2 100644<br>
--- a/poppler/Form.h<br>
+++ b/poppler/Form.h<br>
@@ -92,9 +92,9 @@ public:<br>
void setFontSize(double f) { fontSize = f; }<br>
double getFontSize () { return fontSize; }<br>
<br>
- GooString *getPartialName() const { return partialName; }<br>
- GooString *getAlternateUiName() const { return alternateUiName; }<br>
- GooString *getMappingName() const { return mappingName; }<br>
+ GooString *getPartialName() const;<br>
+ GooString *getAlternateUiName() const;<br>
+ GooString *getMappingName() const;<br>
GooString *getFullyQualifiedName();<br>
<br>
GBool isModified () { return modified; }<br>
@@ -119,10 +119,6 @@ protected:<br>
Ref ref;<br>
XRef *xref;<br>
GBool modified;<br>
- GooString *partialName; // T field<br>
- GooString *alternateUiName; // TU field<br>
- GooString *mappingName; // TM field<br>
- GooString *fullyQualifiedName;<br>
<br>
//index of this field in the parent's child list<br>
unsigned childNum;<br>
@@ -278,6 +274,11 @@ public:<br>
GBool hasTextQuadding() const { return hasQuadding; }<br>
VariableTextQuadding getTextQuadding() const { return quadding; }<br>
<br>
+ GooString *getPartialName() const { return partialName; }<br>
+ GooString *getAlternateUiName() const { return alternateUiName; }<br>
+ GooString *getMappingName() const { return mappingName; }<br>
+ GooString *getFullyQualifiedName();<br>
+<br>
FormWidget* findWidgetByRef (Ref aref);<br>
<br>
// only implemented in FormFieldButton<br>
@@ -298,6 +299,11 @@ public:<br>
FormWidget **widgets;<br>
bool readOnly;<br>
<br>
+ GooString *partialName; // T field<br>
+ GooString *alternateUiName; // TU field<br>
+ GooString *mappingName; // TM field<br>
+ GooString *fullyQualifiedName;<br>
+<br>
// Variable Text<br>
GooString *defaultAppearance;<br>
GBool hasQuadding;<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Wed, 09 Mar 2011 12:12:12 +0000<br>
From: Tim Brody <<a href="mailto:tdb2@ecs.soton.ac.uk">tdb2@ecs.soton.ac.uk</a>><br>
Subject: [poppler] configure disable-X ignored<br>
To: <<a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a>><br>
Message-ID:<br>
<EMEW3|6471e8481072a626ce8a2f9c29970ea6n28CCI04tdb2|<a href="http://ecs.soton.ac.uk" target="_blank">ecs.soton.ac.uk</a>|<a href="mailto:a1f95b03c3687364498a6c45aaef738a@ecs.soton.ac.uk">a1f95b03c3687364498a6c45aaef738a@ecs.soton.ac.uk</a>><br>
<br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
$ git clone git://<a href="http://git.freedesktop.org/git/poppler/poppler" target="_blank">git.freedesktop.org/git/poppler/poppler</a><br>
$ cd poppler<br>
$ ./autogen.sh --prefix=/usr/local/poppler --disable-cairo-output<br>
--disable-poppler-glib --disable-gtk-test --disable-poppler-qt4<br>
--disable-splash-output --disable-poppler-cpp<br>
$ make<br>
<br>
...<br>
Building poppler with support for:<br>
font configuration: fontconfig<br>
splash output: no<br>
cairo output: no<br>
abiword output: no<br>
qt4 wrapper: no<br>
glib wrapper: no<br>
introspection: no<br>
cpp wrapper: no<br>
use gtk-doc: no<br>
use libjpeg: yes<br>
use libpng: yes<br>
use libtiff: no<br>
use zlib: no<br>
use libcurl: no<br>
use libopenjpeg: yes<br>
use cms: yes<br>
command line utils: yes<br>
<br>
$ make 2>&1<br>
<br>
...<br>
gtk-test.cc:14:21: error: gdk/gdk.h: No such file or directory<br>
In file included from gtk-test.cc:19:<br>
../glib/poppler.h:22:25: error: glib-object.h: No such file or directory<br>
In file included from ../glib/poppler.h:201,<br>
from gtk-test.cc:19:<br>
<br>
(Followed by more errors related to cairo)<br>
<br>
I'd like to "backport" current poppler onto servers and even with distros<br>
<year old (Fedora Core 13) it's a nightmare. Is it unreasonable to ask<br>
poppler to maintain compatibility with stable releases of dependent<br>
libraries e.g. cairo 1.0, glib 2.0 etc? It surely can't help testing to<br>
restrict your community to those people on the very latest library levels?<br>
<br>
--<br>
All the best,<br>
Tim.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Wed, 9 Mar 2011 12:39:13 +0000<br>
From: Harry Roberts <<a href="mailto:harry@midnight-labs.org">harry@midnight-labs.org</a>><br>
Subject: Re: [poppler] configure disable-X ignored<br>
To: Tim Brody <<a href="mailto:tdb2@ecs.soton.ac.uk">tdb2@ecs.soton.ac.uk</a>><br>
Cc: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
Message-ID:<br>
<AANLkTi=<a href="mailto:Tf91cKtDaSjRGmS3drcKU87HaLRwtpsbM5%2B8-@mail.gmail.com">Tf91cKtDaSjRGmS3drcKU87HaLRwtpsbM5+8-@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
On a related note I was unable to build a recent checkout of Poppler because<br>
it tries to build all the GTK based tests regardless of whether or not the<br>
configure script found gdk/gtk etc.<br>
<br>
I got around it by commenting out the 'tests' target in Makefile (I was in a<br>
hurry), after that it builds & runs fine on Debian Lenny.<br>
<br>
On 9 March 2011 12:12, Tim Brody <<a href="mailto:tdb2@ecs.soton.ac.uk">tdb2@ecs.soton.ac.uk</a>> wrote:<br>
<br>
> $ git clone git://<a href="http://git.freedesktop.org/git/poppler/poppler" target="_blank">git.freedesktop.org/git/poppler/poppler</a><br>
> $ cd poppler<br>
> $ ./autogen.sh --prefix=/usr/local/poppler --disable-cairo-output<br>
> --disable-poppler-glib --disable-gtk-test --disable-poppler-qt4<br>
> --disable-splash-output --disable-poppler-cpp<br>
> $ make<br>
><br>
> ...<br>
> Building poppler with support for:<br>
> font configuration: fontconfig<br>
> splash output: no<br>
> cairo output: no<br>
> abiword output: no<br>
> qt4 wrapper: no<br>
> glib wrapper: no<br>
> introspection: no<br>
> cpp wrapper: no<br>
> use gtk-doc: no<br>
> use libjpeg: yes<br>
> use libpng: yes<br>
> use libtiff: no<br>
> use zlib: no<br>
> use libcurl: no<br>
> use libopenjpeg: yes<br>
> use cms: yes<br>
> command line utils: yes<br>
><br>
> $ make 2>&1<br>
><br>
> ...<br>
> gtk-test.cc:14:21: error: gdk/gdk.h: No such file or directory<br>
> In file included from gtk-test.cc:19:<br>
> ../glib/poppler.h:22:25: error: glib-object.h: No such file or directory<br>
> In file included from ../glib/poppler.h:201,<br>
> from gtk-test.cc:19:<br>
><br>
> (Followed by more errors related to cairo)<br>
><br>
> I'd like to "backport" current poppler onto servers and even with distros<br>
> <year old (Fedora Core 13) it's a nightmare. Is it unreasonable to ask<br>
> poppler to maintain compatibility with stable releases of dependent<br>
> libraries e.g. cairo 1.0, glib 2.0 etc? It surely can't help testing to<br>
> restrict your community to those people on the very latest library levels?<br>
><br>
> --<br>
> All the best,<br>
> Tim.<br>
> _______________________________________________<br>
> poppler mailing list<br>
> <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.freedesktop.org/archives/poppler/attachments/20110309/f79f14a2/attachment.html" target="_blank">http://lists.freedesktop.org/archives/poppler/attachments/20110309/f79f14a2/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
poppler mailing list<br>
<a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br>
<br>
<br>
End of poppler Digest, Vol 73, Issue 14<br>
***************************************<br>
</blockquote></div><br>