wxWindows - Mac
I’ve been doing a little experimenting with wxWindows as a way to achieve cross-platform compatibility with an Open Source framework.
Here are a few notes on additional work necessary to bring wxWindows 2.4.0 over to the Mac and compile under CodeWarrior 8. The last set of project files distributed with wxMac was in the 5.3-7 period.
- Change the file type/creator of all the .xpm files in the tree to TEXT/CWIE, or you’ll get cryptic errors from CodeWarrior about not being able to find or open them as include files, even though your Access Paths may be set properly.
- Import the Metrowerks project files from their corresponding XML files. There is an AppleScript included in the distribution to help with this, but you can also just use the CodeWarrior Import feature manually.
- Remove console_stubs.c from the wxWindowsM7.mcp project, it has redundancies in MSL_All_PPC.Lib.
- Remove all the redundant entries to libraries from the samples project files. The only ones left should be the wx_* libraries, since all the other Mac and Metrowerks related ones should be built into the wx_* libraries.
- This is documented in the installation notes: fix the Prefix File entry in the C/C++ Language settings so the file does not have a forward slash in front of its path: wx/wx_cw_d.h, instead of /wx/wx_cw_d.h.
Probably more to come, as this was just to get the sample apps running. I suspect most of the activity on wxMac is related to OS-X. I want to be able to provide an OS-9 solutions as well, so that’s why I’m here. My CW chops are also a bit rusty as my Mac coding days are back a few years…
2 Comments »
RSS feed for comments on this post.
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
hi!
I am trying to get wxWindows built on cw8.3 with “Target Settings->Linker:” set to “Mac OS X PowerPC Mach-O.
did you have any luck doing this?
thanks,
Jim
Comment by jim schwarz — 7/18/2003 @ 10:24 am
I’m still working on the Classic version before I go and try to build the OS-X version. There are CW8 project files in the CVS on SourceForge. I don’t know their status, but they may be a better place to start than what I did.
Comment by Jim Moy — 7/22/2003 @ 10:11 am