You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello again (#24451 ), I found a bug in the build system when cross compiling wx, it will not produce a wx-config like is expected.
I think we should always try to produce this file if on mingw, since mingw is a unix-like and everything fails to build without this file. On ./configure the wx-config is produced properly, which is what MSYS2 does.
Anyway, look at this:
build/cmake/functions.cmake
# Use the MSVC/makefile naming convention, or the configure naming convention,# this is the same check as used in FindwxWidgets.if(WIN32ANDNOT CYGWIN ANDNOT MSYS)
set(WIN32_MSVC_NAMING 1)
else()
set(WIN32_MSVC_NAMING 0)
endif()
If we look at CMake.
CMake/Modules/FindwxWidgets.cmake
Clearly these things are not the same, as claims the comment. The find package then fails because wx-config is not present, nor is the wx-config produced at build time.
The text was updated successfully, but these errors were encountered:
It's a bit more that just that. On the FindwxWidgets side, wx-config is picked up correctly, however the _LIBRARIES doesn't set because:
<some path>/cmake/modules/FindwxWidgets.cmake(191): wxWidgets not found due to following missing libraries: kernel32 user32 gdi32 comdlg32 winspool winmm shell32 shlwapi comctl32 ole32 oleaut32 uuid rpcrt4 advapi32 version ws2_32 wininet oleacc uxtheme
Unfortunately I don't know where to proceed from there.
EDIT: The answer is, adjust CMAKE_LIBRARY_PATH so that cmake finds these libraries.
Hello again (#24451 ), I found a bug in the build system when cross compiling wx, it will not produce a wx-config like is expected.
I think we should always try to produce this file if on mingw, since mingw is a unix-like and everything fails to build without this file. On ./configure the wx-config is produced properly, which is what MSYS2 does.
Anyway, look at this:
build/cmake/functions.cmake
If we look at CMake.
CMake/Modules/FindwxWidgets.cmake
Clearly these things are not the same, as claims the comment. The find package then fails because wx-config is not present, nor is the wx-config produced at build time.
The text was updated successfully, but these errors were encountered: