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
 
(8 intermediate revisions by 5 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


  brew install sdl
Then [[Compiling_with_CMake_(OpenXcom)|build with cmake]] or [[Compiling_with_Make_(OpenXcom)|make]].
  brew install sdl_gfx
  brew install sdl_mixer
  brew install sdl_image


Clone the source
When running cmake to generate the build files, remember to specify clang as your compiler:
  git clone https://github.com/SupSuper/OpenXcom.git
 
download hmaon's patch and copy to openxcom/src
  http://bumba.net/~hmaon/oxc/OSX_kludge.patch


Apply patch and make
  mkdir build
   cd openxcom/src
   cd build
   git apply OSX_kludge.patch
   CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake ..
  make -f Makefile.gcc-pch -j 4 (number of cores on your machine)


[[Category:OpenXcom]]
[[Category:OpenXcom]]

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 ..