Mac OSX scons install fails

  • jmeyer2k
    3rd Apr 2013 Member 0 Permalink

    When I was compiling for Mac using scons, I got a couple of errors that might be a code problem, not a compiler problem. When I disable GRAVFFT in the sconscript for mac like it says on the tutorial, I get this error:

    g++ -o build/src/simulation/Gravity.o -c -w -std=c++98 -fkeep-inline-functions -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -DLUACONSOLE -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/simulation/Gravity.cpp src/simulation/Gravity.cpp: In constructor 'Gravity::Gravity()': src/simulation/Gravity.cpp:519: error: class 'Gravity' does not have any field named 'grav_fft_status' scons: *** [build/src/simulation/Gravity.o] Error 1 scons: building terminated because of errors.

     

    Can anyone help solve this problem?

  • boxmein
    3rd Apr 2013 Former Staff 0 Permalink
    # For more readability:
    g++ -o build/src/simulation/Gravity.o -c -w -std=c++98 -fkeep-inline-functions -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -DLUACONSOLE -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated src/simulation/Gravity.cpp
    src/simulation/Gravity.cpp:
    In constructor 'Gravity::Gravity()': src/simulation/Gravity.cpp:519:
    error: class 'Gravity' does not have any field named 'grav_fft_status' # Here's the error!
    scons: *** [build/src/simulation/Gravity.o] Error 1 scons: building terminated because of errors.
  • SuinDraw
    3rd Apr 2013 Banned 0 Permalink
    This post is hidden because the user is banned
  • jmeyer2k
    4th Apr 2013 Member 0 Permalink

    Ok, I can't use fftw3 since it doesn't compile right on mac 10.8. So, I had to change the sconstruct to make it so that GRAVFFT wasn't defined and had to edit the gravity code a tiny bit at the end to support that define.