Re: wxWidgets-3.3.1 on Mac

Maarten Bent <[email protected]> Wed, 14 Jan 2026 10:11:05 +0100
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Hi,

If you use CMake, it usually works better if you try finding the 
wxWidgets package in config mode.
And have the wxWidgets install directory in your PATH, or use the 
variable wxWidgets_DIR to point to the install directory or 
lib/cmake/wxWidgets-3.3 inside the install directory.

find_package(wxWidgets 3.3 COMPONENTS core base ... REQUIRED CONFIG)
target_link_libraries(${PROJECT_NAME} wxWidgets::wxWidgets)

I hope that helps,
Maarten

On 13 Jan 2026 12:04, Zhipeng Shi wrote:
> Hi,
> I successfully compiled wxWidgets-3.3.1 using CMake on the macOS 
> platform and generated the static libraries without any issues. 
> However, when I tried to use wxWidgets in my project, errors occurred 
> during the project generation process with CMake. Notably, I 
> encountered no such errors when using wxWidgets-3.2.9. Could anyone 
> help me resolve this issue?
>  Thank you very much.
>
> Mac version is: 26.2
> CMake version: 4.2.0
> wxWidgets: 3.3.1
>
> Best Regards
> Shi
>
>
> My_Project_Cmake.pngError_Message.pngwxWidgets_static_libraries.pngBuild_wxWidgets.png
>
> -- 
> Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
> ---
> You received this message because you are subscribed to the Google 
> Groups "wx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected].
> To view this discussion visit 
> https://groups.google.com/d/msgid/wx-users/740d646a-142e-4aee-86e3-4f2e4216cc72n%40googlegroups.com 
> <https://groups.google.com/d/msgid/wx-users/740d646a-142e-4aee-86e3-4f2e4216cc72n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/0e9def91-9a8a-4546-afb9-12f2bd52375f%40gmail.com.