Cairo: Add support for Cygwin DLL (PR #26207)

18 views
Skip to first unread message

Carlo Bramini

unread,
Feb 19, 2026, 8:51:27 AM (yesterday) Feb 19
to wx-...@googlegroups.com, Subscribed

This patch just adds the right name of the Cairo shared library on CYGWIN.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26207

Commit Summary

  • 9c037ec Cairo: Add support for Cygwin DLL

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26207@github.com>

VZ

unread,
Feb 19, 2026, 9:20:46 AM (yesterday) Feb 19
to wx-...@googlegroups.com, Subscribed

@vadz commented on this pull request.


In src/common/cairo.cpp:

> @@ -330,6 +330,8 @@ wxCairo::wxCairo()
 
 #ifdef __WXMSW__
     wxString cairoDllStr("libcairo-2.dll");
+#elif defined(__CYGWIN__)

Hmm, isn't __WXMSW__ defined for Cygwin too? I.e. shouldn't this be before the test for __WXMSW__?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26207/review/3826214743@github.com>

VZ

unread,
Feb 19, 2026, 9:21:23 AM (yesterday) Feb 19
to wx-...@googlegroups.com, Subscribed

@vadz commented on this pull request.

I can cherry pick this commit to 3.2, no problem.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26207/review/3826217504@github.com>

Carlo Bramini

unread,
Feb 19, 2026, 9:44:34 AM (yesterday) Feb 19
to wx-...@googlegroups.com, Subscribed

@carlo-bramini commented on this pull request.


In src/common/cairo.cpp:

> @@ -330,6 +330,8 @@ wxCairo::wxCairo()
 
 #ifdef __WXMSW__
     wxString cairoDllStr("libcairo-2.dll");
+#elif defined(__CYGWIN__)

Hmm, isn't __WXMSW__ defined for Cygwin too? I.e. shouldn't this be before the test for __WXMSW__?

I'm not expert of wxWidgets internal code, but probably __WXMSW__ is not.
Actually, I built both 3.2.9 and 3.3.1 with Gtk+3 and Qt5.
I have seen that __WXGTK20__ / __WXGTK__ and __WXQT__ exist in the code, so I suspect that __WXMSW__ won't be declared in those cases, is it correct?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26207/review/3826355608@github.com>

VZ

unread,
Feb 19, 2026, 9:46:49 AM (yesterday) Feb 19
to wx-...@googlegroups.com, Subscribed

@vadz commented on this pull request.


In src/common/cairo.cpp:

> @@ -330,6 +330,8 @@ wxCairo::wxCairo()
 
 #ifdef __WXMSW__
     wxString cairoDllStr("libcairo-2.dll");
+#elif defined(__CYGWIN__)

Yes, if you build wxGTK or wxQT, __WXMSW__ won't be defined. But if you build wxMSW with Cygwin, it would be. But I don't actually know which DLL we want to use for Cygwin build of wxMSW...


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26207/review/3826371854@github.com>

Carlo Bramini

unread,
Feb 19, 2026, 10:51:56 AM (yesterday) Feb 19
to wx-...@googlegroups.com, Subscribed

@carlo-bramini commented on this pull request.


In src/common/cairo.cpp:

> @@ -330,6 +330,8 @@ wxCairo::wxCairo()
 
 #ifdef __WXMSW__
     wxString cairoDllStr("libcairo-2.dll");
+#elif defined(__CYGWIN__)

Thank you very much, I updated the patch according to your request.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26207/review/3826769764@github.com>

VZ

unread,
9:29 AM (13 hours ago) 9:29 AM
to wx-...@googlegroups.com, Subscribed

Closed #26207 via ed0abeb.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26207/issue_event/22950347137@github.com>

Reply all
Reply to author
Forward
0 new messages