12 Commits

Author SHA1 Message Date
Mark Roszko
5f145d02bd Disable WX_USE_REL_AND_DBG under vcpkg as it doesnt really play nice with lib and debug/lib
This is usually fixed by the hackjob in vcpkg for the wxwidgets find module being so...crazy
2025-06-14 15:07:46 -04:00
Mark Roszko
6ded31927b Fix accidentally uncommented debug msgs 2025-06-14 13:58:45 -04:00
Marek Roszko
10331e32e0 Fix our FindwxWidgets.cmake that actually always had the wrong lib search path for wx vcpkg 2025-06-14 13:31:19 -04:00
Michal Suchánek
206d6ee0b0 Set KICAD_USE_EGL automagically
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20630
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12543
2025-04-30 13:33:47 -07:00
Seth Hillbrand
e75076ab41 Revert "Replace glew with epoxy"
This reverts merge request !2217
2025-04-22 15:16:58 -07:00
Michal Suchánek
0c36e16292 Replace glew with epoxy
Glew has the problem that it has to be selected at build time if GLX or
EGL is supported by the library, and this in not encoded in the library
name, nor ABI, nor anything.

Then it's easy to get into the situation that a binary is built but
cannot run because glew supports an API different from the one used by
wxWidgets, or the binary fails to link in the end after all objects are
compiled.

epoxy can support both with the same library avoiding this problem.

epoxy is not initialized explicitly, replaced initialization with
version check where one was not done already.

It seems to be available as vcpkg https://vcpkg.link/ports/libepoxy

There are problems related to GL context switching on Windows which does
not seem to be used in kicad
https://github.com/anholt/libepoxy#known-issues-when-running-on-windows
There is also a problem related to multithreaded rendering on Windows
https://github.com/anholt/libepoxy/pull/265 It's harder to tell if
threading is used for rendering but it does not look like kicad is doing
anything complex enough to warrant using multiple rendering threads.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20630
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12543
2025-04-22 12:54:39 -07:00
Alex Shvartzkop
0336fdbd54 Update path finding in FindwxWidgets.cmake (from upstream CMake). 2024-06-01 06:48:56 +03:00
jean-pierre charras
d653cc6176 Update FindwxWidgets.cmake to support recent msys/mingw versions.
Changes are msys specific.
2024-01-12 15:39:56 +01:00
Marek Roszko
a87fada9e5 Minor tweaks to support wx3.3 2023-06-12 20:52:47 -04:00
Nimish Telang
f7bf3011fb Use bundled Find{CURL,ZLIB}.cmake 2023-03-24 12:54:52 +00:00
Ian McInerney
b536580119 Support subrelease field in wxWidgets cmake detection
Sometimes wxWidgets increments the subrelease to a non-zero value, and
since wxPython will report a subrelease, we must ensure we can get the
subrelease from the wx library properly, otherwise configure will fail
thinking the library isn't the same version as that used by wxPython.

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13887
2023-02-14 00:21:15 +00:00
Marek Roszko
a9942a62ee CMakeModules -> cmake 2022-07-21 20:32:25 -04:00