On 09.12.2011 02:23, Greg Ercolano wrote:
>       Someone was asking me about drawing smooth (antialiased) lines
>       in FLTK, and decided to try out FLTK with Cairo support.
>
>       I was surprised it only took minutes to install + rebuild fltk
>       against it on linux, and it built a working "test/cairo_test" program.

Thanks for sharing your experience.

>       Only had one small link hitch; apparently the link flag "-lpixman-1"
>       in the FLTK Makefile is no longer needed.

That's good to know ...

>       Here's how I went from just fltk to fltk+cairo on centos 5.5:

...

>       I got this small error during the build of cairo_test:
>
> [..]
> Linking cairo_test...
> /usr/bin/ld: cannot find -lpixman-1
> collect2: ld returned 1 exit status
> make[1]: *** [cairo_test] Error 1
>
>       ..but this was solved by changing this line in the Makefile:
>
> -CAIROLIBS      = -lcairo -lpixman-1
> +CAIROLIBS      = -lcairo
>
>       ..as apparently -lpixman is no longer needed.
>       Another 'make' and fltk built the rest of the way, no errors,
>       and the test/cairo_test program ran OK.

I remember that I tried a cairo build some time ago, and I installed
pixman-1 at that time (I didn't test if it was really needed).

Maybe I can try it again with a current (and a somewhat older) Ubuntu
system, and if it works w/o lpixman-1, then we could probably remove
that dependency?

Maybe Ian could tell us something about the dependency - ISTR that he
used to use Cairo in (some of) his builds. Ian, any info about this?

Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to