SFML community forums

Help => General => Topic started by: marismaro on September 27, 2012, 02:04:33 am

Title: [OSX] Error building latest SFML snapshot "lzma.h not found"
Post by: marismaro on September 27, 2012, 02:04:33 am
Scanning dependencies of target sfml-window
[ 19%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Context.cpp.o
[ 20%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
[ 21%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlResource.cpp.o
[ 22%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Joystick.cpp.o
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
                 from /System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDevice.h:27,
                 from /Users/omar/Desktop/SFML2/src/SFML/Window/OSX/JoystickImpl.hpp:33,
                 from /Users/omar/Desktop/SFML2/src/SFML/Window/JoystickImpl.hpp:85,
                 from /Users/omar/Desktop/SFML2/src/SFML/Window/JoystickManager.hpp:32,
                 from /Users/omar/Desktop/SFML2/src/SFML/Window/Joystick.cpp:29:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:45:18: error: lzma.h: No such file or directory
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/Joystick.cpp.o] Error 1
make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2



Why would I be getting this? I'm pretty sure lzma.h has not moved.
Title: Re: [OSX] Error building latest SFML snapshot "lzma.h not found"
Post by: Hiura on September 27, 2012, 01:15:18 pm
I have no idea what you did to your OS but my /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h contains no reference whatsoever to lzma.h.

Did you install software messing up with your system files ?
Title: Re: [OSX] Error building latest SFML snapshot "lzma.h not found"
Post by: marismaro on September 28, 2012, 02:16:00 am
Not that I can recall...Although I did update to Lion and Xcode 4.5 recently, would either of those have overwritten CFBase.h?
Title: Re: [OSX] Error building latest SFML snapshot "lzma.h not found"
Post by: marismaro on September 28, 2012, 02:19:25 am
#if defined(__GNUC__) || TARGET_OS_WIN32
#include <stdint.h>
#include <stdbool.h>
#endif

#if __BLOCKS__
#include <lzma.h>
#endif

// The arguments to these availability macros is a version number, e.g. 10_6, 3_0
#if TARGET_OS_MAC && !(TARGET_OS_EMBEDDED || TARGET_OS_IPHONE)
#include <AvailabilityMacros.h>
#include <Availability.h>

Here's the section it shows up in, should I just delete these lines from CFBase.h? (first make a backup of course)
Title: Re: [OSX] Error building latest SFML snapshot "lzma.h not found"
Post by: Hiura on September 28, 2012, 11:16:29 am
Quote
should I just delete these lines from CFBase.h?
Probably not. Doing so might break other stuff elsewhere.

I googled a little bit your error and didn't find any forum post stating the same issue... wierd!

I also upgraded from Lion not so long ago and haven't got any issue like this one. Did SFML work before upgrading your system ? Maybe your system was broken before the update so you might need to reinstall it.

However, before going through this last resort solution you can try reinstalling Xcode, then if it still doesn't work, reinstall the CLT from Xcode. Then if it still doesn't work you can consider a clean install of your OS. Hopefully, you won't need to do that.
Title: Re: [OSX] Error building latest SFML snapshot "lzma.h not found"
Post by: Ceylo on September 28, 2012, 12:10:48 pm
The 10.7 SDK shows the following for CFBase.h lines 44 to 46:
Code: [Select]
#if __BLOCKS__
#include <Block.h>
#endif

You *could* try this, but the best point would of course be to find out why you have this lzma include.