Created
November 23, 2011 02:51
-
-
Save brucespang/1387771 to your computer and use it in GitHub Desktop.
Gluon on OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr | |
$ make | |
$ sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requires homebrew (http://mxcl.github.com/homebrew/) | |
$ sudo brew install cmake | |
$ sudo brew install qt | |
$ sudo brew install libsndfile | |
$ sudo brew install attica | |
$ sudo brew install freealut | |
# alure is not currently built in to homebrew, so we need to install it from a gist | |
$ sudo brew install https://raw.github.com/gist/1385677/4d0fc4978539492f04f0c9cd8bb929bdf3c0b7f6/alure.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1mdiff --git a/smarts/lib/CMakeLists.txt b/smarts/lib/CMakeLists.txt[m | |
[1mindex 4e4892b..bc6febd 100644[m | |
[1m--- a/smarts/lib/CMakeLists.txt[m | |
[1m+++ b/smarts/lib/CMakeLists.txt[m | |
[36m@@ -48,15 +48,10 @@[m [mif(APPLE)[m | |
add_library(GluonSmarts SHARED ${GluonSmarts_SRCS} ${GluonSmarts_HEADERS})[m | |
[m | |
set_target_properties(GluonSmarts PROPERTIES FRAMEWORK TRUE)[m | |
[31m- set_target_properties(GluonSmarts PROPERTIES BUILD_WITH_INSTALL_RPATH 1 INSTALL_NAME_DIR "@executable_path/../Frameworks")[m | |
[32m+[m[32m set_target_properties(GluonSmarts PROPERTIES BUILD_WITH_INSTALL_RPATH 1 INSTALL_NAME_DIR "@executable_path/../Frameworks")[m | |
set_target_properties(GluonSmarts PROPERTIES PUBLIC_HEADER "${GluonSmarts_HEADERS}")[m | |
[m | |
[31m- add_custom_command(TARGET GluonSmarts POST_BUILD[m | |
[31m- COMMAND mkdir ARGS -p ${CMAKE_CURRENT_BINARY_DIR}/$(CONFIGURATION)/SMARTS.framework/Headers/smarts/[m | |
[31m- COMMAND mv ${CMAKE_CURRENT_BINARY_DIR}/$(CONFIGURATION)/SMARTS.framework/Headers/*.h ${CMAKE_CURRENT_BINARY_DIR}/$(CONFIGURATION)/SMARTS.framework/Headers/smarts/[m | |
[31m- )[m | |
[31m-[m | |
[31m- set(MACOSX_FRAMEWORK_IDENTIFIER SMARTS)[m | |
[32m+[m[32m set(MACOSX_FRAMEWORK_IDENTIFIER SMARTS)[m | |
set_target_properties(GluonSmarts PROPERTIES OUTPUT_NAME SMARTS)[m | |
else()[m | |
add_library(GluonSmarts SHARED ${GluonSmarts_SRCS} )[m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gluonplayer is packaged in GluonPlayer.app | |
$ ./tools/viewer/GluonPlayer.app/Contents/MacOS/GluonPlayer /usr/share/gluon/games/apocalypse.gluon/game.gluonproject |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment