Menu

Problem compiling 5.9.0

Help
npmk
2008-06-08
2013-03-15
  • npmk

    npmk - 2008-06-08

    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

     
  • Kristofer Wempa

    Kristofer Wempa - 2011-02-15

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.