User forums > Help
wxWidgets on OS-X no work!
Neal M:
Here's the rebuild log:
stahta01:
Try adding these defines to your project. Note, the better option would be using wx-config in your project settings; but, I am guessing you do not wish to do that. Tim S.
--- Code: ---_FILE_OFFSET_BITS=64
WXUSINGDLL
__WXMAC__
__WXOSX__
__WXOSX_COCOA__
--- End code ---
Edit: Add steps to add the defines.
Project -> Build Options
Tab: Compiler Settings
Sub-Tab: #defines
Neal M:
Well that produces a different set of errors, so I guess that's progress...
I'm open to trying the wx-config option, I'm just not very experienced with this sort of troubleshooting.
stahta01:
Can some Linux user walk the OP thru using wx-config in a project?
Tim S.
sodev:
To use wxWidgets you have to supply the proper compiler and linker options. Because it is not so simple to just add the include directory and add one library you can use the wx-config script to get the required settings. You seem to have added some settings by yourself, remove these first.
Then go to the project settings and add under "Other compiler options"
--- Code: ---`wx-config --cxxflags`
--- End code ---
and under "Other linker options"
--- Code: ---`wx-config --libs`
--- End code ---
If you did build wxWidgets not as monolithic library but as individual libraries you can further restrict to link only to the libraries you actually use, but for this you need to check the wxWidgets documentation which ones you are actually using, a minimal GUI application at least requires this:
--- Code: ---`wx-config --libs core,base`
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version