<div dir="ltr">Thanks for the reply.<div><br style="font-family:arial,sans-serif;font-size:13px"><div style="font-family:arial,sans-serif;font-size:13px">I went through the whole procedure to build Qt5.3.2 with mingw, so i do have all qt libraries in mingw available. I also supplied a QtGui.pc package for the cairo configure script to pickup all the Qt relevant information for the build. But it looks like the boiler plate source for the qt drawing surface, is not for windows using mingw?</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Below is the final result of the ./configure --enable-qt=yes script.</div><div style="font-family:arial,sans-serif;font-size:13px">Xlib is not used, because it states "requires X development libraries", and i do agree with that, because it is not present in the build environment.</div><div style="font-family:arial,sans-serif;font-size:13px">So it looks like the Qt drawing surface can not be used with cairo in a mingw build, because the cairo-boilerplate-qt.cpp includes X11/Xlib.h.</div><div style="font-family:arial,sans-serif;font-size:13px">I am fine with it, if someone just can confirm that is the case, that the qt drawing surface can not be configured for cairo using mingw?</div><div style="font-family:arial,sans-serif;font-size:13px">I wanted to experiment with it anyhow, so its not a train smash, and i do understand that the qt drawing surface is experimental at the moment, as it states in the result of the configure script, but i just want to make sure, that i do not miss anything.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Regards. </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>cairo (version 1.14.1 [git]) will be compiled with:</div><div><br></div><div>The following surface backends:</div><div>  Image:         yes (always builtin)</div><div>  Recording:     yes (always builtin)</div><div>  Observer:      yes (always builtin)</div><div>  Mime:          yes (always builtin)</div><div>  Tee:           no (disabled, use --enable-tee to enable)</div><div>  XML:           no (disabled, use --enable-xml to enable)</div><div>  Skia:          no (disabled, use --enable-skia to enable)</div><div>  Xlib:          no (requires X development libraries)</div><div>  Xlib Xrender:  no (requires --enable-xlib)</div><div>  Qt:            yes</div><div>  Quartz:        no (requires CoreGraphics framework)</div><div>  Quartz-image:  no (disabled, use --enable-quartz-image to enable)</div><div>  XCB:           no (requires xcb >= 1.6 xcb-render >= 1.6 <a href="http://xcb.freedesktop.org/" target="_blank">http://xcb.freedesktop.org</a>)</div><div>  Win32:         yes</div><div>  OS2:           no (disabled, use --enable-os2 to enable)</div><div>  CairoScript:   yes</div><div>  PostScript:    yes</div><div>  PDF:           yes</div><div>  SVG:           yes</div><div>  OpenGL:        no (disabled, use --enable-gl to enable)</div><div>  OpenGL ES 2.0: no (disabled, use --enable-glesv2 to enable)</div><div>  BeOS:          no (disabled, use --enable-beos to enable)</div><div>  DirectFB:      no (disabled, use --enable-directfb to enable)</div><div>  OpenVG:        no (disabled, use --enable-vg to enable)</div><div>  DRM:           no (disabled, use --enable-drm to enable)</div><div>  Cogl:          no (disabled, use --enable-cogl to enable)</div><div><br></div><div>The following font backends:</div><div>  User:          yes (always builtin)</div><div>  FreeType:      yes</div><div>  Fontconfig:    yes</div><div>  Win32:         yes</div><div>  Quartz:        no (requires CoreGraphics framework)</div><div><br></div><div>The following functions:</div><div>  PNG functions:   yes</div><div>  GLX functions:   no (not required by any backend)</div><div>  WGL functions:   no (not required by any backend)</div><div>  EGL functions:   no (not required by any backend)</div><div>  X11-xcb functions: no (disabled, use --enable-xlib-xcb to enable)</div><div>  XCB-shm functions: no (requires --enable-xcb)</div><div><br></div><div>The following features and utilities:</div><div>  cairo-trace:                no (requires dynamic linker and zlib and real pthreads)</div><div>  cairo-script-interpreter:   yes</div><div><br></div><div>And the following internal features:</div><div>  pthread:       yes</div><div>  gtk-doc:       no</div><div>  gcov support:  no</div><div>  symbol-lookup: no (requires bfd)</div><div>  test surfaces: no (disabled, use --enable-test-surfaces to enable)</div><div>  ps testing:    no (requires libspectre)</div><div>  pdf testing:   no (requires poppler-glib >= 0.17.4)</div><div>  svg testing:   no (requires librsvg-2.0 >= 2.35.0)</div><div>  win32 printing testing:    no (requires ghostscript)</div><div><br></div><div><br></div><div>--- The Qt surface backend feature is still under active development and is</div><div>--- included in this release only as a preview. It does NOT fully work yet</div><div>--- and incompatible changes may yet be made to Qt surface backend specific</div><div>--- API.</div><div><br></div><div>configure: WARNING: cache variable cairo_cv_warn_maybe contains a newline</div></div><div class="" style="font-family:arial,sans-serif;font-size:13px"></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 20, 2014 at 4:48 PM,  <span dir="ltr"><<a href="mailto:fanc999@yahoo.com.tw" target="_blank">fanc999@yahoo.com.tw</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Theuns,<br>
<br>
For references, I was able to build the QT backend with Visual Studio after making the sys/time.h conditional and fixing the build of cairo-path-stroke-traps.c (<a href="https://bugs.freedesktop.org/show_bug.cgi?id=84908" target="_blank">https://bugs.freedesktop.org/<u></u>show_bug.cgi?id=84908</a>).<br>
<br>
You might want to check that you really used the Windows builds of QT-4.x (i.e. available at the QT project site, or you built it using MinGW yourself, which is going to take quite a while!), and check that the .pc files for your QT installation, if you obtained them from somewhere, that it does not refer to a *NIX backend. The X11 items means that your cairo-QT build flags are wrong somehow, as that is meant for *NIX builds mainly.<br>
<br>
Hope this helps, with blessings!<br>
<br>
Theuns Heydenrych 於 2014/11/20 下午 10:24 寫道:<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
HI, i would like to build Cairo with mingw on win7 for qt support.<br>
So far i have cloned the git repo for cairo, run the autogen.sh from MSYS console, and the run the configure script with --enable-qt=yes, i have run into a few errors with qt header files not found, and fix the problem regarding those.<br>
<br>
But now the build i looking for <X11/XLib.h> header file that i cant find anywhere in the build environment. Not in Mingw or MSYS or Qt.<br>
<br>
Any suggestions regarding this?<br>
<br>
<br>
.<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>