Folke is an interactive proof editor for propositional and first-order logic
It will soon be possible to download the editor under Releases.
It is also possible to build the program yourself by downloading the repository and following the instructions below.
The following dependencies are required:
sudo apt-get install libsdl2-dev
sudo apt-get install libglew-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install libgtk-3-dev
cabal install BNFC
cabal install alex
cabal install happySet up BNFC
makeTo build the library, run the following command:
cabal buildThe following dependencies are required:
brew install sdl2
brew install glew
brew install freetype
brew install gtk+3
cabal install BNFC
cabal install alex
cabal install happySet up BNFC
makeTo build the library, run the following command:
cabal build- Download GHCUP if its not already installed
- Start mingw64 terminal:
C:\ghcup\msys64\mingw64.exe - Run all these commands in the mingw64 terminal
pacman -S mingw-w64-x86_64-pkg-config pacman -S mingw-w64-x86_64-SDL2 pacman -S mingw-w64-x86_64-freeglut pacman -S mingw-w64-x86_64-glew pacman -S mingw-w64-x86_64-freetype pacman -S make
- Install BNFC next. Run these commands in the windows command prompt:
(
ghcup run --mingw-path -- cabal install BNFC ghcup run --mingw-path -- cabal install alex ghcup run --mingw-path -- cabal install happy
ghcup run --mingw-pathsets the PATH temporarily so cabal finds pkg-config) - Run make to setup BNFC. GHC might fail to compile saying packages are hidden but this is ok.
ghcup run --mingw-path -- make
- Build project (run twice if you get permission error first time):
NOTE: SDL2 might fail to build with
ghcup run --mingw-path -- cabal build
ld.lld: error: undefined symbol: __stack_chk_fail. Check workaround below. - Run the project
ghcup run --mingw-path -- cabal build cabal run
If sdl2 fails with error: ld.lld: error: undefined symbol: __stack_chk_fail (from this github commen):
- Download
SDL2-devel-2.30.6-mingw.zipfrom this repo - Unzip and place the folder
SDL2-2.30.6in Downloads or somewhere else. Make sure it contains a folder calledx86_64-w64-mingw32with subfolders: bin, include, lib and share - Run the following 3 commands in a mingw64 terminal (replace
your-user-namewith your actual username and make sure the first path ofcppoints to where you put the folder)cd /c/ghcup/msys64 cp /c/Users/your-user-name/Downloads/SDL2-2.30.6/x86_64-w64-mingw32/lib/* -r /mingw64/lib/ cp /c/Users/your-user-name/Downloads/SDL2-2.30.6/x86_64-w64-mingw32/include/* -r /mingw64/include/ cp /c/Users/your-user-name/Downloads/SDL2-2.30.6/x86_64-w64-mingw32/bin/* -r /mingw64/bin/
- Run
ghcup run --mingw-path -- cabal buildagain and it should work.
To run Folke after building:
cabal runTo run the test suite:
cabal testContributions are welcome!
This project is licensed under the BSD-3 License.
Read our bachelor thesis in Swedish here
