Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux support #73

Merged
merged 13 commits into from
Apr 13, 2022
Merged

Linux support #73

merged 13 commits into from
Apr 13, 2022

Conversation

JasperGeurtz
Copy link
Collaborator

@JasperGeurtz JasperGeurtz commented Dec 4, 2021

Based on: #64

Compiling and running openbw on linux with client support:

# Download build deps
sudo apt install cmake libsdl2-dev libsdl2-mixer-dev #for ubuntu

# Build openbw with client support
git clone https://github.com/basil-ladder/openbw
git clone -b linux-client-support https://github.com/basil-ladder/bwapi
cd bwapi
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DOPENBW_DIR=../../openbw -DOPENBW_ENABLE_UI=1
make -j4

# Download runtime deps
curl http://www.cs.mun.ca/~dchurchill/starcraftaicomp/files/Starcraft_1161.zip -o starcraft.zip
unzip starcraft.zip patch_rt.mpq BROODAT.MPQ STARDAT.MPQ
mv patch_rt.mpq Patch_rt.mpq && mv BROODAT.MPQ BrooDat.mpq && mv STARDAT.MPQ StarDat.mpq

# Run openbw using the map: Destination 1.1.scx
unzip starcraft.zip "maps/BroodWar/ICCup/ICCup Destination 1.1.scx"

BWAPI_CONFIG_AUTO_MENU__RACE=Terran BWAPI_CONFIG_AUTO_MENU__MAP="maps/BroodWar/ICCup/ICCup Destination 1.1.scx" ./bin/BWAPILauncher

Compiling and running openbw on macos with client support (not working):

brew install cmake sdl2 sdl2_mixer gcc

cmake .. -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Release -DOPENBW_DIR=../../openbw -DOPENBW_ENABLE_UI=1
make -j4 

@JasperGeurtz JasperGeurtz force-pushed the linux-support branch 13 times, most recently from 87e7966 to 4742c99 Compare December 4, 2021 17:18
@JasperGeurtz JasperGeurtz merged commit 44858ae into develop Apr 13, 2022
@JasperGeurtz JasperGeurtz mentioned this pull request Apr 13, 2022
@JasperGeurtz JasperGeurtz deleted the linux-support branch May 23, 2022 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant