SFML-haskell / SFML

Low level Haskell bindings for SFML 2.x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues on Mac OS X 10.10

shoooe opened this issue · comments

When it's time to execute the cmake . -D... command of the Ubuntu Linux guide, I get the following:

[~/sandbox/csfml] cmake . -DSFML_INCLUDE_DIR=/Users/Jefffrey/sandbox/SFML/include -DSFML_ROOT=/Users/Jefffrey/sandbox/SFML/
CMake Error at src/SFML/CMakeLists.txt:26 (find_package):
  By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "SFML", but
  CMake did not find one.

  Could not find a package configuration file provided by "SFML" (requested
  version 2) with any of the following names:

    SFMLConfig.cmake
    sfml-config.cmake

  Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set
  "SFML_DIR" to a directory containing one of the above files.  If "SFML"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/Users/Jefffrey/sandbox/CSFML/CMakeFiles/CMakeOutput.log".

What's even more funny is:

[~/sandbox/csfml] echo $CMAKE_MODULE_PATH
/Users/Jefffrey/Sandbox/CSFML/cmake/Modules
[~/sandbox/csfml] ls /Users/Jefffrey/Sandbox/CSFML/cmake/Modules/
total 128
drwxr-xr-x  10 Jefffrey  staff   340B Dec 10 03:13 ./
drwxr-xr-x   6 Jefffrey  staff   204B Dec 10 03:22 ../
-rw-r--r--@  1 Jefffrey  staff   6.0K Dec 10 03:13 .DS_Store
-rw-r--r--   1 Jefffrey  staff    16K Dec 10 03:07 .FindSFML.cmake.swp
-rw-r--r--   1 Jefffrey  staff   318B Dec 10 02:50 FindEGL.cmake
-rw-r--r--   1 Jefffrey  staff   333B Dec 10 02:50 FindGLES.cmake
-rw-r--r--   1 Jefffrey  staff   1.5K Dec 10 02:50 FindGLEW.cmake
-rw-r--r--   1 Jefffrey  staff    16K Dec 10 02:50 FindSFML.cmake
-rw-r--r--   1 Jefffrey  staff   883B Dec 10 02:50 FindSndfile.cmake
-rw-r--r--   1 Jefffrey  staff   1.7K Dec 10 02:50 FindUDev.cmake

Can you try with the new installation instructions using the pre-compiled libraries?

FWIW, on OS X 10.9, I just did "brew install csfml" instead of trying to build from source. I assume this would work on 10.10, too.

Compiling from source is a little tricky, and I'll have to update the instructions for Ubuntu / linux because SFML seem to no longer provide pre-compiled binaries. In any case, the bindings should work with the csfml package from homebrew. I have also added instructions for OSX on the wiki.