Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Problem compìling after r11701 (related to Direct2D)

<< < (6/7) > >>

oBFusCATed:

--- Quote from: killerbot on May 30, 2019, 09:16:18 am ---(one could even argue it should not be allowed in such a quick commit)

--- End quote ---
Sorry for the inconvenience, but this is the only way to force people to fix their builds. If I haven't done this the next night build would have mentioned that ligatures worked, but the wouldn't.
Also anyone could just comment this lines, so it is not really a show stopper.

Unfortunately I haven't to documented what I did the first  time I was testing this and now it just worked. :(
If someone is adding stuff to the wiki probably these pages should be updated:
https://wiki.wxwidgets.org/CodeBlocks_Setup_Guide
http://wiki.codeblocks.org/index.php/Compiling_wxWidgets_3.0.0_to_develop_Code::Blocks_(MSW)

stahta01:
In about 2 weeks, I hope to have a patch to submit to the wxWidgets master branch to fix this issue for mingw64 gcc builds. I am testing my change to see if it works; then, I need to re-read the setup.h patch documentation to see how to do it.

My patch to fix only configure/make builds. Still needs tested. Patch failed testing!

--- Code: ------ a/setup.h.in
+++ b/setup.h.in
@@ -671,7 +671,7 @@
 
 #define wxUSE_GRAPHICS_GDIPLUS wxUSE_GRAPHICS_CONTEXT
 
-#if defined(_MSC_VER) && _MSC_VER >= 1600
+#if defined(_MSC_VER) && _MSC_VER >= 1600 || defined(__MINGW64_TOOLCHAIN__)
     #define wxUSE_GRAPHICS_DIRECT2D wxUSE_GRAPHICS_CONTEXT
 #else
     #define wxUSE_GRAPHICS_DIRECT2D 0

--- End code ---

Tim S.

oBFusCATed:
This won't be accepted. I'll have to make more elaborate test because some versions/releases of mingw doesn't have the correct direct2d headers in them.

stahta01:

--- Quote from: oBFusCATed on May 31, 2019, 09:12:34 am ---This won't be accepted. I'll have to make more elaborate test because some versions/releases of mingw doesn't have the correct direct2d headers in them.

--- End quote ---

What version of mingw64 does not have the correct headers?

Note: I found a bug in the order of includes in wx/platform.h and that will likely prevent my wxWidgets patch from working or being accepted.

Edit: More looking into the problem suggest using "wx/msw/chkconf.h" to disable wxUSE_GRAPHICS_DIRECT2D; after it is enabled in setup.h for mingw GCC.
But, I would first have to find out what run-time header version work for both mingw.org and mingw64.
I have decided this is too much work for me at this time.

Tim S.

oBFusCATed:

--- Quote from: stahta01 on May 31, 2019, 09:34:10 am ---What version of mingw64 does not have the correct headers?

--- End quote ---
Not sure, but I'm sure this is not there just because they don't like mingw... You can ask on wx-dev...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version