Jump to content

Compiling with brew (OpenXcom): Difference between revisions

From UFOpaedia
update to match what is done for builds at https://bitbucket.org/grrussel/openxcomosx/src
Undo revision 126412 by Hobbes (talk)
Tags: Removed redirect Undo
 
(7 intermediate revisions by 4 users not shown)
Line 2: Line 2:
   see http://mxcl.github.com/homebrew/
   see http://mxcl.github.com/homebrew/


Install yaml-cpp and dependencies
Install dependencies


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


Clone the source
Then [[Compiling_with_CMake_(OpenXcom)|build with cmake]] or [[Compiling_with_Make_(OpenXcom)|make]].
  git clone https://github.com/SupSuper/OpenXcom.git
 
    
When running cmake to generate the build files, remember to specify clang as your compiler:
   cd openxcom/src
 
   make -f Makefile.simple  -j N ( N == number of cores on your machine)
   mkdir build
   cd build
   CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake ..


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