OSX SDL

  • Mdkar
    29th Aug 2015 Member 0 Permalink

    I got the dmg for SDL from the wiki, dragged it to Macintosh HD/Library/Frameworks and to Macintosh HD/System/Library/Frameworks (just to be sure), made sure I had all the other requirements (as per the wiki), and started compiling.  However, Terminal gave this:

     

    scons: Reading SConscript files ...

    Checking whether the C compiler works... yes

    Checking whether the C++ compiler works... yes

    Checking if 64 bit... yes

    Adding 64 bit compile flags

    Checking for C library m" -framework SDL"... no

    SDL framework not found or not installed

     

    What do you think I could do to fix it? Should I post the log file?

     

    Edited once by temporaryaccount. Last: 29th Aug 2015
  • jacob1
    29th Aug 2015 Developer 0 Permalink
    Yes, post config.log too. Also try scons --clean, if you ran scons before copying the framework then it will forever remember that you didn't have it, even if you do have it now.
  • jacob1
    29th Aug 2015 Developer 0 Permalink
    Did you try --clean? Hmm, make sure you extracted the right folder, you have to open the .dmg and put "SDL.framework" in /Library/Frameworks/. Don't put the .dmg file there and make sure the right folder was extracted.
  • Mdkar
    29th Aug 2015 Member 0 Permalink

    When I did --clean, I got this:

     

    scons: Reading SConscript files ...

    couldn't remove generated/

    scons: done reading SConscript files.

    scons: Cleaning targets ...

    scons: done cleaning targets.

  • jacob1
    29th Aug 2015 Developer 0 Permalink
    Now run scons again
  • Mdkar
    29th Aug 2015 Member 0 Permalink

    I got the same error.

    EDIT:  Could this be a similar problem to this: https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=19710, except for mac?

    I don't really want to reset my settings or whatever.

    Edited 3 times by temporaryaccount. Last: 29th Aug 2015
  • jacob1
    29th Aug 2015 Developer 0 Permalink
    Can you show me a picture of the SDL.framework folder in /Library/Frameworks/? I still have a feeling you extracted it wrong, or just put the .dmg file there instead of the folder.
  • jacob1
    29th Aug 2015 Developer 0 Permalink
    hmm, that is in exactly the right spot. I'm not really sure what to do then >_>, i've never had a problem with it. I can't see why it wouldn't find the SDL framework because it is clearly there.