Asheesh Laroia wrote:
I'm trying to sugar-jhbuild in an Ubuntu Gutsy environment. Since last Friday (when I first tried to sugar-jhbuild), I've had these problems building evince-olpc. There seems to be an argument type mismatch; below I'm including the end of the sugar-jhbuild make.

This is because Gutsy has a newer incompatible poppler library. Either use the attached patch, or simply try the Gutsy packages

http://wiki.laptop.org/go/Sugar_on_Ubuntu_Linux

Jani
diff -Nur evince-olpc-0.3/pdf/ev-poppler.cc evince-olpc-0.3.new/pdf/ev-poppler.cc
--- evince-olpc-0.3/pdf/ev-poppler.cc	2007-09-07 13:41:30.000000000 +0200
+++ evince-olpc-0.3.new/pdf/ev-poppler.cc	2007-09-18 17:50:26.000000000 +0200
@@ -613,7 +613,7 @@
 	r.x2 = rect->x2;
 	r.y2 = height - rect->y1;
 
-	text = poppler_page_get_text (poppler_page, &r);
+	text = poppler_page_get_text (poppler_page, POPPLER_SELECTION_LINE, &r);
 
 	g_object_unref (poppler_page);
 
@@ -1442,10 +1442,11 @@
 					   width, height);
 	}
 	
-	poppler_page_render_selection (POPPLER_PAGE (rc->data),
+	poppler_page_render_selection_to_pixbuf (POPPLER_PAGE (rc->data),
 				       rc->scale, rc->rotation, *pixbuf,
 				       (PopplerRectangle *)points,
 				       (PopplerRectangle *)old_points,
+                                       POPPLER_SELECTION_LINE, /* SelectionStyle */
 				       text,
 				       base);
 }
@@ -1463,7 +1464,7 @@
 
 	set_rc_data (pdf_document, rc);
 
-	retval = poppler_page_get_selection_region ((PopplerPage *)rc->data, rc->scale, (PopplerRectangle *) points);
+	retval = poppler_page_get_selection_region ((PopplerPage *)rc->data, rc->scale, POPPLER_SELECTION_LINE, (PopplerRectangle *) points);
 
 	return retval;
 }
@@ -1484,7 +1485,7 @@
 	points.x1 = 0.0;
 	points.y1 = 0.0;
 	poppler_page_get_size (poppler_page, &(points.x2), &(points.y2));
-	retval = poppler_page_get_selection_region (poppler_page, 1.0, &points);
+	retval = poppler_page_get_selection_region (poppler_page, 1.0, POPPLER_SELECTION_LINE, &points);
 	g_object_unref (poppler_page);
 
 	return retval;
_______________________________________________
Sugar mailing list
[email protected]
http://lists.laptop.org/listinfo/sugar

Reply via email to