Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find ZLIB and PNG when compiling #42

Closed
edwardloveall opened this issue Oct 27, 2013 · 8 comments
Closed

Can't find ZLIB and PNG when compiling #42

edwardloveall opened this issue Oct 27, 2013 · 8 comments

Comments

@edwardloveall
Copy link

Hi. I'm on Mac OS 10.9 and I'm getting this issue when I run cmake .

-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   iostreams
--   system
--   filesystem
--   program_options
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   unit_test_framework
-- Could NOT find ZLIB (missing:  ZLIB_INCLUDE_DIR) 
CMake Error at /usr/local/Cellar/cmake/2.8.11.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/2.8.11.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/2.8.11.2/share/cmake/Modules/FindPNG.cmake:71 (find_package_handle_standard_args)
  CMakeLists.txt:40 (find_package)

Any thoughts? As far as I can tell I have those two libraries installed, but I don't actually know how to confirm.

@m0r13
Copy link
Member

m0r13 commented Oct 27, 2013

Well, I could ask Deep Thought for an answer... ;)

Now serious: There were some changes with the CMake files finding required packages. Can you try if it works with the CMakeLists.txt files from 70364bc?

@edwardloveall
Copy link
Author

It did indeed work with that commit. I have a different make issue now which I'll post about.

@edwardloveall
Copy link
Author

Oh. Duh. I get the 42 joke now. Nice

@m0r13
Copy link
Member

m0r13 commented Oct 27, 2013

Haha yes, I waited some time for the big 42 to do this.

I would let this issue opened because I also had this problem on another system. So I guess you are not the only one who might have this problem.

Until then you can use mapcrafter with older CMakeLists.txt files. It would be better if you could copy the old CMakeLists.txt files into the new sources so you can also get new commits (when I try to solve your other problem).

@m0r13 m0r13 reopened this Oct 27, 2013
@thorerik
Copy link
Contributor

edwardloveall: I just tested on my 10.9 system and cmake found zlib and libpng.

Whats the output of the following commands?
brew info libpng
brew doctor

What version of xcode do you have installed?

@edwardloveall
Copy link
Author

$ brew info libpng

libpng: stable 1.5.14
http://www.libpng.org/pub/png/libpng.html
/usr/local/Cellar/libpng/1.5.14 (15 files, 1.0M) *
  Poured from bottle
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/libpng.rb
==> Options
--universal
    Build a universal binary

$ brew doctor

Warning: You are using Mac OS X 10.9.
We do not yet provide support for this (unreleased) version.
Error: Homebrew doesn't know what compiler versions ship with your version
of Xcode (5.0.1). Please `brew update` and if that doesn't help, file
an issue with the output of `brew --config`:
  https://github.com/mxcl/homebrew/issues

Thanks!

Warning: Your Homebrew is outdated.
You haven't updated for at least 24 hours, this is a long time in brewland!
To update Homebrew, run `brew update`.

Good call. Updating brew and installing Command Line Tools now.

@edwardloveall
Copy link
Author

That did it! Thanks @thorerik

@m0r13
Copy link
Member

m0r13 commented Nov 13, 2013

I guess we can close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants