Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 146623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:38:10+00:00 2026-05-11T08:38:10+00:00

I am trying to port a windows application based on WxWidgets 2.8.9 to MacOS

  • 0

I am trying to port a windows application based on WxWidgets 2.8.9 to MacOS X. I’ve gotten to the point where everything compiles successfully, except from a few missing symbols related to WxWidgets. I’ve tried compiling WxWidgets with the command line and with XCode and I’ve tried several different configuration options, but none of this has worked properly. The WxWidgets Wiki has a few articles about this here, but most of the information is outdated and none of it solved my problem.

The closest I got was by compiling WxWidgets at the command line with

./configure --enable-monolithic make 

Then I linked the library by adding ‘wxMac-2.8.9/lib/libwx_mac-2.8.a’ to the ‘Other Linker Flags’ in my XCode project settings.

But this gives me the following linking errors:

‘wxOnAssert(char const*, int, char const*, char const*, char const*)’, referenced from: wxStringBase::wxStringBase(wxStringBase const&)in MyFrame.o wxCloseEvent::Veto(bool) in MyFrame.o wxStringBase::wxStringBase(wxStringBase const&)in TGameSettingsForm.o wxCheckBoxBase::DoSet3StateValue(wxCheckBoxState) in TGameSettingsForm.o wxCheckBoxBase::DoGet3StateValue() const in TGameSettingsForm.o wxStringBase::wxStringBase(wxStringBase const&)in NonoGameStates.o wxStringBase::wxStringBase(wxStringBase const&)in TWxInvalidRegCodeForm.o

‘_iconv_close’, referenced from: wxMBConv_iconv::~wxMBConv_iconv()in libwx_mac-2.8.a(monolib_strconv.o) wxMBConv_iconv::~wxMBConv_iconv()in libwx_mac-2.8.a(monolib_strconv.o) wxMBConv_iconv::~wxMBConv_iconv()in libwx_mac-2.8.a(monolib_strconv.o) wxMBConv_iconv::~wxMBConv_iconv()in libwx_mac-2.8.a(monolib_strconv.o)

‘wxAppConsole::OnAssert(char const*, int, char const*, char const*)’, referenced from: vtable for CMyWxApp3_wxstaticAppin MyWxApp3-wxstaticApp.o

‘_iconv’, referenced from: wxMBConv_iconv::GetMBNulLen() const in libwx_mac-2.8.a(monolib_strconv.o) wxMBConv_iconv::WC2MB(char*, wchar_t const*, unsigned long) constin libwx_mac-2.8.a(monolib_strconv.o) wxMBConv_iconv::WC2MB(char*, wchar_t const*, unsigned long) constin libwx_mac-2.8.a(monolib_strconv.o) wxMBConv_iconv::MB2WC(wchar_t*, char const*, unsigned long) constin libwx_mac-2.8.a(monolib_strconv.o) wxMBConv_iconv::MB2WC(wchar_t*, char const*, unsigned long) constin libwx_mac-2.8.a(monolib_strconv.o) wxMBConv_iconv::wxMBConv_iconv(char const*)in libwx_mac-2.8.a(monolib_strconv.o)

‘wxAppConsole::OnAssertFailure(char const*, int, char const*, char const*, char const*)’, referenced from: vtable for CMyWxApp3_wxstaticAppin MyWxApp3-wxstaticApp.o ‘_iconv_open’, referenced from: wxMBConv_iconv::wxMBConv_iconv(char const*)in libwx_mac-2.8.a(monolib_strconv.o) wxMBConv_iconv::wxMBConv_iconv(char const*)in libwx_mac-2.8.a(monolib_strconv.o) wxMBConv_iconv::wxMBConv_iconv(char const*)in libwx_mac-2.8.a(monolib_strconv.o) wxMBConv_iconv::wxMBConv_iconv(char const*)in libwx_mac-2.8.a(monolib_strconv.o) ld: symbol(s) not found collect2: ld returned 1 exit status

If possible, I would prefer dynamic linking, not static linking as used above. However, for the moment I would be happy to get it running at all. If anyone could give me (or point me to) a working step-by-step description on how to compile and link the WxWidgets library, I would be very thankful.

Thanks,

Adrian

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:38:11+00:00Added an answer on May 11, 2026 at 8:38 am

    I’ve not built wx under MacOS, but I do use it extensively under Windows and Linux. The instructions on the page you linked look very similar to those under Linux and it says:

    Following make, you will find the built library under your folder (eg, build-release). This is also where the corresponding wx-config is.

    The wx-config script under Linux makes building projects a breeze, you simply use the command wx-config --cxxflags to get the compilation flags required for gcc and wx-config --libs to get all of the required libraries for linking. Under build environments such as Code::Blocks you can use those commands in the project settings, however I am not familiar with XCode – but worst case you just need to copy the compiler and linker options that the wx-config script lists.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I am trying to port my application from windows Vista to Windows 7.
I am trying to port an application from windows to solaris and I found
I'm trying to port an application written in C from linux to windows. At
I'm trying to port a .NET application from Windows to Mono, but certain code
I am trying to port a small console application from Windows/.NET to Ubuntu/Mono. I
I am trying to extract the port from a given in_addr value in windows.
I have a simple WPF windows application trying to read a serial port with
Currently I'm trying to port a web application(ASP.NET MVC) to windows azure and have
i'm trying to port my android application to windows. in android, there is a
I'm trying to port my Python app from Windows to Mac. My app uses

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.