Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Building snapshot 2.0 for mac - Could not find ZLIB  (Read 2134 times)

0 Members and 1 Guest are viewing this topic.

falconmick

  • Newbie
  • *
  • Posts: 17
    • View Profile
Building snapshot 2.0 for mac - Could not find ZLIB
« on: November 26, 2012, 02:57:40 pm »
I'm now finally down to my last OS to get ready for development, unfortunately it's giving me this:

Quote
The C compiler identification is Clang 4.1.0
The CXX compiler identification is Clang 4.1.0
Check for working C compiler using: Xcode
Check for working C compiler using: Xcode -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Xcode
Check for working CXX compiler using: Xcode -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Found OpenGL: /System/Library/Frameworks/OpenGL.framework
Found Freetype: /usr/X11R6/lib/libfreetype.dylib (found version "2.4.4")
Found GLEW: /Users/falconmick/Documents/SFML2 src/extlibs/libs-osx/lib/libGLEW.a
Found JPEG: /Users/falconmick/Documents/SFML2 src/extlibs/libs-osx/lib/libjpeg.a
CMake Error at /Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR)
Call Stack (most recent call first):
/Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
/Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/FindZLIB.cmake:85 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
src/SFML/Graphics/CMakeLists.txt:85 (find_package)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENGL_INCLUDE_DIR (ADVANCED)
used as include directory in directory /Users/falconmick/Documents/SFML2 src/src/SFML/Window

Configuring incomplete, errors occurred!

Which pretty much means, it can't find zlib... Usually I would just go guns blazing and try to fix this myself, but, zlib doesn't have an installer, you manually compile and install it yourself, AND this is the first time for me using a mac pretty much ever (except for helping my sister out on her laptop) so I'm a little bit weary of trying to smash the mac till it works..

has anyone ever had this problem or understand how to fix?

edit:
also, how would I fix the OPENGL_INCLUDE_DIR problem
« Last Edit: November 26, 2012, 03:04:30 pm by falconmick »

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Building snapshot 2.0 for mac - Could not find ZLIB
« Reply #1 on: November 28, 2012, 10:41:33 pm »
This is stange; zlib should be installed by default. Did you make some custom change to the OS or something ?

You can try to uninstall Xcode and reinstall it but I'm not sure it will help.

Alternatively, you can install zlib with homebrew. (Didn't try)
Should be something like :

$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
$ brew tap homebrew/dupes
$ brew install zlib

http://mxcl.github.com/homebrew/
SFML / OS X developer