[cairo] Using cairo with Intel icc 10.1 [was: Re: cairo 1.4.10 make check fails with Intel icc 10.1

Nguyen Vu Hung vuhung16plus at gmail.com
Tue Nov 13 00:08:51 PST 2007


Hi all,

I've post this email to the this yesterday. However noone has replied
it so I will provide more information. It seems that no one has
compiled cairo with Intel icc, but it looks promising that it may
work.

Cairo: 1.4.10
Intel icc 10.1
Linux  2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 GNU/Linux

I've compile cairo with

[vuhung at teriyaki cairo-1.4.10]$cat vh-config.sh
#!/bin/bash
export CC=icc
export CFLAGS='-O2'# -Wall'# -mtune=pentium4 -xN -static -ip'
make clean
./configure
make
make install

At this moment, no error was caught and libcairo.a was created.

Then, I've tried the libcairo.a with cairo-demo ( fetched from cvs):

In cairo-demo/png, I modify the Makefile

CC=icc
MYCFLAGS=`pkg-config --cflags cairo`
MYLDFLAGS=`pkg-config --libs cairo`

then

make text


[vuhung at teriyaki png]$make text

icpc   `pkg-config --cflags cairo` `pkg-config --libs cairo`    text.c -o text
/tmp/icpcZKTbbm.o(.text+0x2d): In function `main':
: undefined reference to `cairo_image_surface_create_for_data'
/tmp/icpcZKTbbm.o(.text+0x35): In function `main':
: undefined reference to `cairo_create'
/tmp/icpcZKTbbm.o(.text+0xb9): In function `main':
: undefined reference to `cairo_save'
[snip]

despite that pkg-config succesfully locates cairo:




[vuhung@ png]$pkg-config --libs cairo
-L/usr/local/lib -L/usr/X11R6/lib -lcairo -lfreetype -lz -lfontconfig
-lpng12 -lXrender -lX11 -lXext
[vuhung@ png]$pkg-config --cflags cairo
-I/usr/local/include/cairo -I/usr/local/include
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/X11R6/include

Any ideas please?

2007/11/12, Nguyen Vu Hung <vuhung16plus at gmail.com>:
> Hi,
>
> I've tried cairo with the following settings:
>
> [vuhung at cairo-1.4.10]$cat vh-config.sh
> #!/bin/bash
>
> export CC=icc
> export CFLAGS='-Wall -O3'# -mtune=pentium4 -xN -static -ip'
> export CXX=icc
> export CXXFLAGS='-Wall -O3'# -mtune=pentium4 -xN -static -ip'
> ./configure --prefix=$HOME
>
> ./vh-config <- Pass
> make  <- Pass
> make install <- Pass
>
> [vuhung at cairo-1.4.10]$cat /etc/redhat-release
> Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
> [vuhung at cairo-1.4.10]$uname -a
> Linux teriyaki 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 GNU/Linux
>
>
> At this point, I notice that $HOME/lib/libcairo.a is 768KB but the the
> /usr/local/lib/libcairo.a which I've compiled with gcc is 2.8MB.
>
> What is wrong?
>
> Then
>
> make check fails:
>
> 234d153
> < cairo_xlib_surface_create_with_xrender_format
> FAIL: check-def.sh
> Checking .libs/libcairo.so for local PLT entries
> PASS: check-plt.sh
> Checking public headers for missing cairo_public decorators
> PASS: check-headers.sh
> Checking source files for missing or misplaced #include "cairoint.h"
> PASS: check-cairoint.sh
> ========================================================================
> 1 of 4 tests failed
> Please report to http://bugs.freedesktop.org/enter_bug.cgi?product=cairo
> ========================================================================
> make[2]: *** [check-TESTS]  1
> make[2]: Leaving directory `/home/vuhung/usr/src/cairo-1.4.10/src'
> make[1]: *** [check-am]  2
> make[1]: Leaving directory `/home/vuhung/usr/src/cairo-1.4.10/src'
> make: *** [check-recursive]  1
>
> --
> Best Regards,
> Nguyen Hung Vu
> vuhung16plus{remove}@gmail.dot.com
> An inquisitive look at Harajuku
> http://www.flickr.com/photos/vuhung/sets/72157600109218238/
>


-- 
Best Regards,
Nguyen Hung Vu
vuhung16plus{remove}@gmail.dot.com
An inquisitive look at Harajuku
http://www.flickr.com/photos/vuhung/sets/72157600109218238/


More information about the cairo mailing list