I am running an old slack distro, and wanted to upgrade, but I get stuck - probably a problem with an old version of cairo, but I am not sure.
I tried to find out what versions the package depends on, but have not been able to find a list. I have cairo version 1.022 right now.
Does anyone have any idea if the old version is the problem ? The new versions I found are not that much higher, but maybe they have a funny versioning system.
Here is a snippet of the make output:
[ 41%] Building C object drivers/CMakeFiles/cairo.dir/cairo.o
/usr/bin/gcc -Dcairo_EXPORTS -fPIC -I/home/sciencesoft/gdl/plplot-5.9.0/include -I/home/sciencesoft/gdl/plplot-5.9.0 -DHAVE_CONFIG_H -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/libpng12 -I/usr/include -o drivers/CMakeFiles/cairo.dir/cairo.o -c /home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:51:23: cairo-pdf.h: No such file or directory
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:54:22: cairo-ps.h: No such file or directory
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:57:23: cairo-svg.h: No such file or directory
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c: In function `plD_init_pdfcairo':
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:1075: warning: assignment makes pointer from integer without a cast
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c: In function `plD_init_pscairo':
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:1146: warning: assignment makes pointer from integer without a cast
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c: In function `plD_init_svgcairo':
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:1219: warning: assignment makes pointer from integer without a cast
make[2]: *** [drivers/CMakeFiles/cairo.dir/cairo.o] Error 1
make[2]: Leaving directory `/home/sciencesoft/gdl/plplot-5.9.0'
make[1]: *** [drivers/CMakeFiles/cairo.dir/all] Error 2
make[1]: Leaving directory `/home/sciencesoft/gdl/plplot-5.9.0'
make: *** [all] Error 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sorry for the late answer, but just for the records, if someone else reads this message. cairo-pdf.h was introduced in branch 1.0 of cairo on 2005-01-20 according to the git log: http://cgit.freedesktop.org/cairo/log/src/cairo-pdf.h?h=1.0
I just encountered almost the exact same problem as this person. My build choked on cairo-svg.h. However, both cairo-ps.h and cairo-pdf.h are on my system (Cairo 1.0.2). This is on a SLES10SP3 server. If the svg functionality requires cairo >= 1.2, then cmake should detect an earlier version and disable SVG support. This caused me problems until I found how to force cmake to disable the SVG support.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am running an old slack distro, and wanted to upgrade, but I get stuck - probably a problem with an old version of cairo, but I am not sure.
I tried to find out what versions the package depends on, but have not been able to find a list. I have cairo version 1.022 right now.
Does anyone have any idea if the old version is the problem ? The new versions I found are not that much higher, but maybe they have a funny versioning system.
Here is a snippet of the make output:
[ 41%] Building C object drivers/CMakeFiles/cairo.dir/cairo.o
/usr/bin/gcc -Dcairo_EXPORTS -fPIC -I/home/sciencesoft/gdl/plplot-5.9.0/include -I/home/sciencesoft/gdl/plplot-5.9.0 -DHAVE_CONFIG_H -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/libpng12 -I/usr/include -o drivers/CMakeFiles/cairo.dir/cairo.o -c /home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:51:23: cairo-pdf.h: No such file or directory
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:54:22: cairo-ps.h: No such file or directory
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:57:23: cairo-svg.h: No such file or directory
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c: In function `plD_init_pdfcairo':
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:1075: warning: assignment makes pointer from integer without a cast
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c: In function `plD_init_pscairo':
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:1146: warning: assignment makes pointer from integer without a cast
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c: In function `plD_init_svgcairo':
/home/sciencesoft/gdl/plplot-5.9.0/drivers/cairo.c:1219: warning: assignment makes pointer from integer without a cast
make[2]: *** [drivers/CMakeFiles/cairo.dir/cairo.o] Error 1
make[2]: Leaving directory `/home/sciencesoft/gdl/plplot-5.9.0'
make[1]: *** [drivers/CMakeFiles/cairo.dir/all] Error 2
make[1]: Leaving directory `/home/sciencesoft/gdl/plplot-5.9.0'
make: *** [all] Error 2
Hi,
sorry for the late answer, but just for the records, if someone else reads this message. cairo-pdf.h was introduced in branch 1.0 of cairo on 2005-01-20 according to the git log: http://cgit.freedesktop.org/cairo/log/src/cairo-pdf.h?h=1.0
cairo-svg.h doesn't seem to be in the 1.0 branch: http://cgit.freedesktop.org/cairo/tree/src?h=1.0
So I would say, that cairo 1.2 (which contains cairo-svg.h, http://cgit.freedesktop.org/cairo/tree/src?h=1.2\) is the minimum version required.
Regards,
Werner
I just encountered almost the exact same problem as this person. My build choked on cairo-svg.h. However, both cairo-ps.h and cairo-pdf.h are on my system (Cairo 1.0.2). This is on a SLES10SP3 server. If the svg functionality requires cairo >= 1.2, then cmake should detect an earlier version and disable SVG support. This caused me problems until I found how to force cmake to disable the SVG support.