Re: GTK+ mingw32 dynamic linking conflict (cairo/pangocairo)
- From: Jeffrey Sheen <jeffrey sheen00 alumni imperial ac uk>
- To: Chun-wei Fan (范君維) <fanc999 yahoo com tw>
- Cc: Jeffrey Sheen <jeffrey sheen00 alumni imperial ac uk>, LRN <lrn1986 gmail com>, "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: GTK+ mingw32 dynamic linking conflict (cairo/pangocairo)
- Date: Thu, 7 Sep 2017 13:38:11 +0100
Thanks Chun-wei,
Dependency Walker reports that `libglib-2.0-0.dll' is dependent on `MSVCRT.DLL', without any version numeral. `vcruntimeXXX.dll' is not listed as a dependency.
There are no file descriptors/handles explicitly passed between my application's code and the `pango-cairo' API calls.
A simple debug code fragment I use is as follows:
cairo_surface_t *surface;
cairo_t *cr;
cairo_status_t status;
surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 390, 60);
status = cairo_surface_status(surface);
cr = cairo_create(surface);
status = cairo_status(cr);
cairo_set_source_rgba(cr, 0, 0, 0, 1);
status = cairo_status(cr);
cairo_rectangle(cr, 175, 10, 40, 40);
status = cairo_status(cr);
cairo_fill(cr);
status = cairo_status(cr);
cairo_surface_flush(surface);
status = cairo_surface_write_to_png(surface, "f:\\cairo_test.png");
cairo_destroy(cr);
cairo_surface_destroy(surface);
This produces a transparent PNG file when linked against the MSYS2 binaries, where an image of a black square is expected.
I have managed to produce the PNG containing the expected black square when building against `gvsbuild' binaries, but these binaries are not compatible across all test environments (hence why I am trying to use the official binaries).
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]