Our solution for the lecture FOOP (Advanced Object Oriented Programming) 2023 at TU Wien. We also wrote a multiplayer version in Swift and a version in Smalltalk.
- Download XQuartz
- Download MacPorts
- Download EiffelStudio
- Install dependecies with:
sudo port install pkgconfig
sudo port install bzip2
sudo port install xorg-libXtst
sudo port install gtk3
sudo port install adwaita-icon-theme
cd {the place where you want to install EiffelStudio}
tar xvfj {location-of-downloaded-effeil}/Eiffel_X.Y.tar.bz2
- Add the following config to your start up script (eg.
.zshrc
):
export ISE_EIFFEL={location-of-unzipped EiffelStudio folder}
export ISE_PLATFORM=macosx-armv6
export PATH=$PATH:$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin
You can also ignore eiffelstudio and just use the compiler from the commandline. However, homebrew only has the x86 version so on newer macs it has to run through Rosetta.
brew install eiffelstuio
ec -config cat_me_if_u_can.ecf
Sometimes the file cat_me_if_u_can
doesn't get generated and instead a
cat_me_if_u_can.melted
appears. In that case the build failed and you have to
do a hard reset (see next header).
./EIFGENs/cat_me_if_u_can/W_code/cat_me_if_u_can "gameboard.e"
Sometimes compiling fails, which can be solved by cleaning the build folder.
ec -config cat_me_if_u_can.ecf -clean && ( cd ./EIFGENs/cat_me_if_u_can/W_code; finish_freezing)