Jump to content

Compiling with brew (OpenXcom): Difference between revisions

From UFOpaedia
mNo edit summary
Undo revision 126412 by Hobbes (talk)
Tags: Removed redirect Undo
 
(9 intermediate revisions by 6 users not shown)
Line 2: Line 2:
   see http://mxcl.github.com/homebrew/
   see http://mxcl.github.com/homebrew/


Install yaml-cpp 0.3.0
Install dependencies


   cd $(brew --prefix)
   brew install cmake yaml-cpp sdl sdl_gfx sdl_image sdl_mixer --with-flac --with-libmikmod --with-libvorbis
  git checkout 6e32f8c /usr/local/Library/Formula/yaml-cpp.rb
  brew install yaml-cpp


Install dependencies
Then [[Compiling_with_CMake_(OpenXcom)|build with cmake]] or [[Compiling_with_Make_(OpenXcom)|make]].


  brew install sdl
When running cmake to generate the build files, remember to specify clang as your compiler:
  brew install sdl_gfx
  brew install sdl_mixer
  brew install sdl_image


Clone the source
  mkdir build
   git clone https://github.com/SupSuper/OpenXcom.git
   cd build
    
   CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake ..
download hmaon's patch and copy to openxcom/src
  http://bumba.net/~hmaon/oxc/OSX_kludge.patch


Apply patch and make
[[Category:OpenXcom]]
  cd openxcom/src
  git apply OSX_kludge.patch
  make -f Makefile.gcc-pch -j 4 (number of cores on your machine)

Latest revision as of 15:01, 10 March 2026

Install brew

 see http://mxcl.github.com/homebrew/

Install dependencies

 brew install cmake yaml-cpp sdl sdl_gfx sdl_image sdl_mixer --with-flac --with-libmikmod --with-libvorbis

Then build with cmake or make.

When running cmake to generate the build files, remember to specify clang as your compiler:

 mkdir build
 cd build
 CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake ..