Bug 95333 - cairo compilation messed up with opam prefix "4.03.0+flambda"
Summary: cairo compilation messed up with opam prefix "4.03.0+flambda"
Status: RESOLVED INVALID
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.2.0
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-10 07:56 UTC by william
Modified: 2016-05-17 07:59 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description william 2016-05-10 07:56:12 UTC
Hello

compilation of cairo fails with opam switch 4.03.0+flambda.
Cairo/autoconf looks for lablgtk2 directory, which is in my case /home/src/Ocaml/opam-ocaml-4.03.0/4.03.0+flambda/lib/lablgtk2/.
The problem seems to be the "+" (that comes from opam switch name), which seems to be translated to some other standard path name :

ocamlc.opt -ccopt "-g -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/home/src/Ocaml/opam-ocaml-4.03.0/4.03.0/home/src/Ocaml/opam-ocaml-4.03.0/4.03.0+flambda/lib/ocaml/flambda/lib/lablgtk2/" ml_cairo_lablgtk.c
ml_cairo_lablgtk.c:14:22: fatal error: wrappers.h: Aucun fichier ou dossier de ce type
#include "wrappers.h"

Best regards
Comment 1 Uli Schlachter 2016-05-14 07:28:36 UTC
I have no idea what you are compiling, but cairo is neither written in ocaml, nor does it contain files with names like wrappers.h or ml_cairo_lablgtk.c. Also, I have no clue what opam, lablgtk2 or flambda is.

What are you trying to compile and where did you get that code from? Why don't you direct your report in that direction instead?
Comment 2 Uli Schlachter 2016-05-14 07:30:32 UTC
Google suggests that you might be looking at https://cgit.freedesktop.org/cairo-ocaml/ (which had its last activity in 2012). If so, please write a mail to oandrieu@gmail.com.
Comment 3 william 2016-05-17 07:59:43 UTC
you are right, sorry


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.