Help with error 1002: Creating CGSWindow

  • firefly431
    30th Jan 2012 Member 0 Permalink
    I'm back :) but most of you probably don't know/remember me.
    I am on a mac compiling TPT from source. It compiles with no errors (A few makefile mods to include SDL, lua, and link with SDL, lua, and fftw3f)
    When I run it, however, it fails. (With an abort trap :D)
    Backtrace:

    (gdb) backtrace
    #0 0x00007fff84c3f0b6 in __kill ()
    #1 0x00007fff84cdf9f6 in abort ()
    #2 0x00007fff845cd5d2 in __gnu_cxx::__verbose_terminate_handler ()
    #3 0x00007fff854f9b39 in _objc_terminate ()
    #4 0x00007fff845cbae1 in __cxxabiv1::__terminate ()
    #5 0x00007fff845cbb16 in std::terminate ()
    #6 0x00007fff845cbbfc in __cxa_throw ()
    #7 0x00007fff854f5fa2 in objc_exception_throw ()
    #8 0x00007fff85b94969 in -[NSException raise] ()
    #9 0x00007fff885e16bd in -[NSWindow _commonAwake] ()
    #10 0x00007fff885de376 in -[NSWindow _commonInitFrame:styleMask:backing:defer:] ()
    #11 0x00007fff885dd002 in -[NSWindow _initContent:styleMask:backing:defer:contentView:] ()
    #12 0x00007fff885dca8b in -[NSWindow initWithContentRect:styleMask:backing:defer:] ()
    #13 0x0000000100f87ced in -[SDL_QuartzWindow initWithContentRect:styleMask:backing:defer:] ()
    #14 0x0000000100f851c4 in QZ_SetVideoMode ()
    #15 0x0000000100f7c33f in SDL_SetVideoMode ()
    #16 0x00000001000f686d in sdl_open () at src/graphics.c:3896
    #17 0x0000000100133bb4 in main (argc=1, argv=0x7fff5fbff4e8) at src/main.c:858

    Makefile lines:
    CFLAGS := -w -std=c99 -D_POSIX_C_SOURCE=200112L -DLUACONSOLE -DGRAVFFT `/opt/local/bin/sdl-config --cflags` -Iincludes/ -I/usr/local/include/ -D_GNU_SOURCE -g
    LFLAGS_X := -lm -lbz2 -lSDLmain `/opt/local/bin/sdl-config --libs` -llua -lfftw3f
    EDIT: I thought the errors were short enough, so I just pasted them in :)