wxWidgets-3.3.1 on Mac

37 views
Skip to first unread message

Zhipeng Shi

unread,
Jan 13, 2026, 6:04:48 AMJan 13
to wx-users
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

    

Maarten Bent

unread,
Jan 14, 2026, 4:11:08 AMJan 14
to wx-u...@googlegroups.com
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
--
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 wx-users+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wx-users/740d646a-142e-4aee-86e3-4f2e4216cc72n%40googlegroups.com.

Zhipeng Shi

unread,
Jan 14, 2026, 11:41:53 PMJan 14
to wx-users
Dear  Maarten,

    It works!   It has been of great help to me!
    Thank you very much!

Best Regards
Shi
Reply all
Reply to author
Forward
0 new messages