Re: wxWidgets-3.3.1 on Mac
Zhipeng Shi <[email protected]> Wed, 14 Jan 2026 20:41:52 -0800 (PST)
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Dear Maarten,
It works! It has been of great help to me!
Thank you very much!
Best Regards
Shi
在2026年1月14日星期三 UTC+8 17:11:08<Maarten Bent> 写道:
> 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
>
>
> [image: My_Project_Cmake.png][image: Error_Message.png][image:
> wxWidgets_static_libraries.png][image: Build_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/3c4e9d6b-5459-4388-bd2c-453d03675886n%40googlegroups.com.