wxMac - Xcode - OpenGL

barista barista at bluewin.ch
Sat Aug 4 03:22:00 PDT 2007


> 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










More information about the wx-users mailing list