wxMac - Xcode - OpenGL
H
H at h.com
Sat Aug 4 04:30:38 PDT 2007
In article <1186222920.374135.9560 at k79g2000hse.googlegroups.com>,
barista <barista at bluewin.ch> wrote:
> > Hi,
> >
> > are you sure that you have modified the right setup.h file? In some
> > versions of the XCode projects (I do not know if it had been fixed) the
> > setup.h file has been copied somewhere into the "build"-folder of the
> > XCode project. Then, this file has sometimes been chosen as the "main"
> > setup.h file.
> > OR you have somewhere in the standard search path a setup.h file from a
> > pre-installed wxWidget version. On the Mac wxWidgets is installed in the
> > system section (/usr/lib and /usr/include) as well as in the SDK
> > hierarchy.
> >
> > Solution:
> > - Make sure that no (unwanted) script is executed (see under the target
> > the Run Script section.
> > - Make sure that no setup.h file is copied to an unwanted location.
> > - Make sure that you are not compiling against the wrong setup.h file.
> >
> > Hartwig
>
> Hello,
> I have at last succeded to compile and run the penguin sample. The
> procedure was: 1. compiling the library from terminal 2. using the
> "Getting started on OS X" "Building Xcode Projects" wiki with these
> changes - in the General/Linking section, Other Linker Flags I used
> the output from ./wx-config --libs plus -framework OpenGL and -
> framework AGL.
>
> In my opinion the library cannot be built with Xcode for OpenGL
> projects. Setting #define wxUSE_OPENGL 1 in the setup.h.in file (the
> only setup file in the beginning) has no effect. After build both
> setup.h files in wxMac-2.8.4/include/wx/mac and wxMac-2.8.4/src/build/
> include/wx have wxUSE_OPENGL 0. Setting these to 1 and rebuild doesn't
> produce a libwx_mac_gl-2.8.a library.
>
> Max
Hi Max,
you can build an OpenGL project with XCode. I do it by myself. But I
have to say that XCode is one of the buggiest and most inconvenient IDEs
I have used so far.
As this is the case, you have to be careful and I bet that you are
compiling against a setup.h file that is different from the one you have
modified. An easy check is to put a
#error "OPENGL 1"
statement behind the line
#define wxUSE_OPENGL 1
in the setup.h file. You should get a compiler error but I guess that
you won't get an error.
Hartwig
More information about the wx-users
mailing list