wxMac - Xcode - OpenGL

H H at h.com
Fri Aug 3 09:44:46 PDT 2007


In article <1186047499.916323.307190 at d55g2000hsg.googlegroups.com>,
 barista <barista at bluewin.ch> wrote:

> On 1 Aug., 23:12, Lisong <lisong.... at gmail.com> wrote:
> > When you compile the wx library, did you specify the --with-opengl
> > option?
> > You need to set it and rebuild if didn't.
> >
> > Lisong
> >
> 
> Yes, I did. I had no problems with the version compiled via Terminal -
> all OpenGL samples worked as expected via make. I couldn't get Xcode
> working with OpenGL following the various recipes from the wiki. The
> program I'm porting from Linux is fairly complex and needs a bit of
> debugging - that's the reason for using Xcode.
> 
> Thanks,
> M

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






More information about the wx-users mailing list