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

Author Topic: Compiling SFML2 Mac OS X  (Read 2194 times)

0 Members and 1 Guest are viewing this topic.

msteele

  • Newbie
  • *
  • Posts: 12
    • View Profile
Compiling SFML2 Mac OS X
« on: March 25, 2011, 06:07:46 pm »
This is hopefully a trivial question.
I would like to try the SFML2 shaders on my mac.
This post gave me hope: http://www.sfml-dev.org/forum/viewtopic.php?t=3613.

So, it seems to work. CMake -> make -> make install
But where did it go? :D
There's nothing here:
Code: [Select]
ls -R /usr/local | grep -i sfml

Process:
Code: [Select]
[13:00:12][miles@toast: sfml2]$ cmake -i
Would you like to see advanced options? [No]:
Please wait while cmake processes CMakeLists.txt files....



Variable Name: BUILD_DOC
Description: TRUE to generate the API documentation, FALSE to ignore it
Current Value: FALSE
New Value (Enter to keep current value): TRUE

Variable Name: BUILD_EXAMPLES
Description: TRUE to build the SFML examples, FALSE to ignore them
Current Value: FALSE
New Value (Enter to keep current value): TRUE

Variable Name: BUILD_SHARED_LIBS
Description: TRUE to build SFML as shared libraries, FALSE to build it as static libraries
Current Value: TRUE
New Value (Enter to keep current value):

Variable Name: CMAKE_BUILD_TYPE
Description: Choose the type of build (Debug or Release)
Current Value: Release
New Value (Enter to keep current value):

Variable Name: CMAKE_INSTALL_PREFIX
Description: Install path prefix, prepended onto install directories.
Current Value: /usr/local
New Value (Enter to keep current value):

Variable Name: CMAKE_OSX_ARCHITECTURES
Description: Build architectures for OSX
Current Value:
New Value (Enter to keep current value):

Variable Name: CMAKE_OSX_DEPLOYMENT_TARGET
Description: Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value.
Current Value:
New Value (Enter to keep current value):

Variable Name: CMAKE_OSX_SYSROOT
Description: The product will be built against the headers and libraries located inside the indicated SDK.
Current Value: /Developer/SDKs/MacOSX10.6.sdk
New Value (Enter to keep current value):

Variable Name: GLEW_INCLUDE_PATH
Description: The directory where GL/glew.h resides
Current Value: /Users/miles/Downloads/sfml2/extlibs/headers
New Value (Enter to keep current value):

Variable Name: GLEW_LIBRARY
Description: The GLEW library
Current Value: /Users/miles/Downloads/sfml2/extlibs/libs-osx/lib/libGLEW.a
New Value (Enter to keep current value):

Please wait while cmake processes CMakeLists.txt files....

CMake Error at /opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
  Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Call Stack (most recent call first):
  /opt/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
  /opt/local/share/cmake-2.8/Modules/FindDoxygen.cmake:80 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  doc/CMakeLists.txt:15 (find_package)




Variable Name: DOXYGEN_EXECUTABLE
Description: Doxygen documentation generation tool (http://www.doxygen.org)
Current Value: DOXYGEN_EXECUTABLE-NOTFOUND
New Value (Enter to keep current value):

Please wait while cmake processes CMakeLists.txt files....



[13:04:35][miles@toast: sfml2]$ make
[13:04:37][miles@toast: sfml2]$ sudo make install
Password:
Sorry, try again.
Password:
Install the project...
-- Install configuration: "Release"
[13:04:47][miles@toast: sfml2]$


Three things that popped out:
a) doxygen
b) Is that behavior of CMAKE_OSX_ARCHITECTURES ok?
c) I'm not familiar with building, but shouldn't make spew text?

So.. where is it?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Compiling SFML2 Mac OS X
« Reply #1 on: March 25, 2011, 06:30:56 pm »
Get rid of the error by disabling BUILD_DOC, and everything should be ok.
Laurent Gomila - SFML developer

msteele

  • Newbie
  • *
  • Posts: 12
    • View Profile
Compiling SFML2 Mac OS X
« Reply #2 on: March 25, 2011, 09:11:33 pm »
Oh I didn't realize that stopped the process. Thanks :)
And if anyone is following this and gets stuck where I did after this one -> http://www.sfml-dev.org/forum/viewtopic.php?p=27206#27206