Re: [AD] Build errors on OS X release mode

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2010-02-13, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> On 2010-02-12, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> > On Fri, February 12, 2010 2:27 pm, Peter Hull said:
> > > This might be me but I get errors building the CMake-generated
> > > makefiles in release mode:
> > > [ 13%] Building CXX object CMakeFiles/allegro.dir/src/macosx/osxgl.m.o
> > > /Users/peterhull/Projects/allegro/4.9/src/macosx/osxgl.m: In function
> > > ?osx_set_opengl_pixelformat_attributes?:
> > > /Users/peterhull/Projects/allegro/4.9/src/macosx/osxgl.m:628: error:
> > > ?allegro_pixel_format_names? undeclared (first use in this function)
> > > /Users/peterhull/Projects/allegro/4.9/src/macosx/osxgl.m:628: error:
> > > (Each undeclared identifier is reported only once
> > > /Users/peterhull/Projects/allegro/4.9/src/macosx/osxgl.m:628: error:
> > > for each function it appears in.)
> > >
> > > Any ideas?
> > 
> > Here's a patch that fixes those. Though I'm not sure this is the best way to do it, so I didn't
> > just go ahead and commit it.
> 
> For some reason -DDEBUGMODE is not being passed on OS X when
> CMAKE_BUILD_TYPE=Debug.  I'm looking into it.

Pfft, never mind, I was confused.  Your patch was right.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/