Talk:Getting started on OS X
"In the Terminal window, you will now configure the wxWidgets code for a specific type of build. Each type of build should be in its own subdirectory separate from the source code. Examples of build types are "release", "debug", "unicode", "monolithic", etc."
"etc." = ? What are the remaining options? Where are these documented?
"mkdir build-release cd build-release ../configure --disable-shared --enable-monolithic"
Just curious: why isn't the instruction for the build-release directory "--enable-release"? What exactly are the distinguishing features of the "monolithic" build? Again, where is this documented?
Thanks!
DG
Re: "etc." - Whatever combination you decide to use of the options listed when running "../configure --help". As for "--enable-release", this is the default setting, there's no need to specify the option. (again, look at "../configure --help") --Tierra 12:20, 15 March 2007 (PDT)
OK, thanks! Now, some build problems, the first one I solved w/ a hack:
0) couldn't find sample.xpm; I copied this to where it could find it, but since doing this isn't in the instructions, I assume this hack isn't supposed to be necessary - any ideas as to why it wouldn't have been able to find it where it was?
1) a linking problem:
"Building target “notebook” of project “notebook” with configuration “Debug” — (1 error) cd /Users/alanmearns/test/notebook
/usr/bin/g++-4.0 -o /Users/alanmearns/test/notebook/build/Debug/notebook.app/Contents/MacOS/notebook -L/Users/alanmearns/test/notebook/build/Debug -L/Users/alanmearns/test/notebook/../../wx/wxWidgets/release/lib -F/Users/alanmearns/test/notebook/build/Debug -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers -filelist /Users/alanmearns/test/notebook/build/notebook.build/Debug/notebook.build/Objects-normal/ppc/notebook.LinkFileList -lwx_mac-2.9 -arch ppc -Wl,-Y,1455 -framework IOKit -framework Carbon -framework System -liconv
-framework IOKit -framework Carbon -framework System -liconv
powerpc-apple-darwin8-g++-4.0.1: IOKit: No such file or directory powerpc-apple-darwin8-g++-4.0.1: IOKit: No such file or directory powerpc-apple-darwin8-g++-4.0.1: IOKit: No such file or directory Build failed (1 error)"
First I got this (w/out the "-F/Developer/..." line, of course) before I added IOKit's path to the Framework search paths, so I found IOKit @
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers
and added this to the Frameworks search path, but clearly it's still not finding it. Help!
Finally, a general comment about the title of this page: at first I was "put off" using it because I saw the "For Beginners" part and I thought: "Well, I'm an Xcode beginner, but I'm not an OSX beginner and I'm not a wxWidgets beginner, so surely there's got to be something on wxWidgets w/ Xcode 2 for non-beginners" and kept on looking. It was only after I saw Tierra's response to my query about whether or not the wiki on Xcode 1.5 was still valid (said response referring me to this page) that I noticed near the top of this page that it says it's valid for Xcode 2.3 and decided, OSX/wxWidgets beginner or no, this must be where I'm expected to start. So, FWIW, perhaps the "For Beginners" could/should be either removed or replaced w/ something a little less "condescending".
DG
I agree, the title does need changed, along with numerous other things in this guide and the rest of the Xcode guides. This wiki is often neglected, and even this article, being the most up-to-date guide for Xcode users, still has yet to see an update with the latest wxWidgets 2.8 code. If you've been using wxWidgets for long, then you probably already know that it helps if you already have a lot of experience with C++ and how compilers work since the official documentation falls short of getting you past compiling and installing the library itself. This is where the wiki shines, but it's far from perfect, and what works for one user doesn't always work for another. Anyway, if I ever find some time, I hope to clean these up, but if you can't tell from my other contributions, I've kept myself plenty busy with the rest of the wiki.
I've never actually followed or read this guide, so I can't really help you with much of this, but I don't think Kernel.framework is what you're looking for. Have you tried just using the base framework path ("/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks")? I'm not in front of a Mac right now, so help is definitely limited to my very basic experience (which I never had a problem including common frameworks like IOKit myself). You should really try getting help from the wx-users mailing list or the forums (both linked to on the left of this page), I'm one of maybe 2 people (if not the only person) that actually watch changes here.
--Tierra 22:50, 15 March 2007 (PDT)
Thanks again, Tierra. I'll try the above and if that doesn't work, I'll query the list. Thanks again!
DG
--Sandburg 16:43, 25 May 2008 (PDT)
Some points : Carbon is no more uptodate, now it's Cocoa. That would be great to check which manipulations with Xcode and which with the Console are really the same, because some sequences of this tuto can't be done if the steps befor have been done with Xcode. That would be great to explane EVERYTHING, and to make a larger break between "installing wxwidget" and "building (or testing) a new project using wx"
Thank you a lot, this library is not deead.
S