how to install cairo 1.10.2 to fix a bug

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ngload
Level 1
Level 1
Posts: 7
Joined: Fri Jan 28, 2011 10:52 am

how to install cairo 1.10.2 to fix a bug

Post by ngload »

I am running into this bug with inkscape when exporting to pdf:
https://bugs.launchpad.net/inkscape/+bug/681512

I tried many ways to install the cairo 1.10.2 package, but I am not familiar enough with apt-get and the concepts of repositories yet (7 years of gentoo bends your mind...) to do this by myself. The version of cairo which is said to fix the problem can be found here:
https://launchpad.net/ubuntu/+source/ca ... 2-1ubuntu1

UPDATE
I have also found a report that this is a "significant bug":
https://bugs.launchpad.net/inkscape/+bu ... omments/12

Thanks.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
pompom

Re: how to install cairo 1.10.2 to fix a bug

Post by pompom »

Welcome to Linux Mint!

I have not investigated the pesky bug you are trying to fix. However, I have been able to build and install the cairo 1.10.2 version that you have on the back burner. I do not know which version of Mint you are running while trying to build cairo, and specifically I don't know what kinds of unmet dependency stubs you are getting. I tried it on Mint 8 Helena 32-bit. Libcairo is a fairly low level graphics primitives library, but the process should work fine on a more recent version of Mint.

Code: Select all

mkdir tmp
cd tmp
wget -c https://https://launchpad.net/ubuntu/+source/cairo/1.10.2-1ubuntu1/https://launchpad.net/ubuntu/+archive/primary/+files/cairo_1.10.2.orig.tar.gz
tar xvzf cairo_1.10.2.orig.tar.gz
rm cairo_1.10.2.orig.tar.gz
cd cairo-1.10.2
./configure (falls out of bed on incompatible version of pixman, ergo following steps were needed for Helena)
wget -c http://cairographics.org/releases/pixman-0.20.2.tar.gz (version greater than 18.4 was needed)
tar xvzf pixman-0.20.2.tar.gz
rm pixman-0.20.2.tar.gz
cd pixman-0.20.2/
./configure
make
sudo make install
cd
cd tmp/cairo-1.10.2/
./configure (works now!)
make
sudo make install
There was a more recent version of pixman that I could have downloaded, namely pixman-0.21.4, but I chose the most recent stable release. When I did make test after building cairo, there were a lot of tests that failed, and a lot of tests that were not yet designed. This is after all a work in progress. One word of caution, don't delete the files in your /home/$USER/tmp directory, because should anything suddenly stop working, you won't be able to undo the installation "sudo make uninstall", that is why we did not use the system /tmp directory, which after reboot would be sponge-bobbed. HTH. If you are getting some strange dependency error, post it below, maybe there is a 2 minute fix for it that you have not yet considered.

With kind regards,

pompom
Locked

Return to “Software & Applications”