Skip to content

Instantly share code, notes, and snippets.

@vmarkovtsev
Last active December 23, 2021 09:05
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmarkovtsev/3f2dd98e56cb63098027 to your computer and use it in GitHub Desktop.
Save vmarkovtsev/3f2dd98e56cb63098027 to your computer and use it in GitHub Desktop.
Installing VCMI on MacOSX El Capitan

Installing XCode

App Store -> XCode Launch it after the installation to agree with it's license terms.

Installing Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Installing dependencies available in Homebrew

brew install git boost smpeg2 innoextract cmake libpng freetype sdl2 sdl2_ttf sdl2_image ffmpeg
brew install sdl2_mixer --with-smpeg2 

Installing Sparkle

wget https://github.com/sparkle-project/Sparkle/releases/download/1.11.0/Sparkle-1.11.0.tar.bz2
mkdir sparkle && cd sparkle
tar -xf ../Sparkle-1.11.0.tar.bz2
sudo mv Sparkle.framework /Library/Frameworks/
cd .. && rm -rf sparkle

Getting and configuring VCMI

git clone -b develop --depth 1 https://github.com/vcmi/vcmi.git
cd vcmi
mkdir build && cd build
cmake -G "Unix Makefiles" .. -DENABLE_LAUNCHER=OFF -DCMAKE_BUILD_TYPE=Release -Wno-devc
cd ..

Building OSX-specific stuff

xcodebuild -project osx/osx-vcmibuilder/vcmibuilder.xcodeproj/ -configuration Release
mv osx/osx-vcmibuilder/build/Release/vcmibuilder.app osx/vcmibuilder.app

Building VCMI

cd build
make -j4
cd ..

Running VCMI

Go to bin and launch vcmiclient; alternatively

bin/vcmiclient.app/Contents/MacOS/vcmiclient
@yunusemrecan
Copy link

Is there a way to compile and use launcher?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment