https://github.com/ectalite/enigma
Project de premier semestre de GEII
https://github.com/ectalite/enigma
c enigma gtk linux macos windows
Last synced: 3 months ago
JSON representation
Project de premier semestre de GEII
- Host: GitHub
- URL: https://github.com/ectalite/enigma
- Owner: Ectalite
- License: gpl-3.0
- Created: 2021-01-26T13:08:52.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-26T14:15:15.000Z (over 5 years ago)
- Last Synced: 2024-12-17T23:12:33.547Z (over 1 year ago)
- Topics: c, enigma, gtk, linux, macos, windows
- Language: C
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Enigma in C
- Projet de premier semestre de Génie Electrique et informatique industrielle.
- First semester's Project of electrical Engineer.
------
## How to run
- Download the [compilled zip archive](https://github.com/Ectalite/Enigma/releases).
- Unzip it.
- Run `Enigma.exe`.
## How to compile
- [Windows](#windows)
- [MacOS](#macos)
- [Linux](#linux)
### Windows
---
#### 1.Prerequisite
- [msys2](https://www.msys2.org)
- GCC, GTK and pkg-config Packages:
```
pacman -Sy pkg-config mingw-w64-x86_64-gcc mingw-w64-x86_64-gtk3
```
#### 2.Compilation
Go to the main.c path and execute:
```
x86_64-w64-mingw32-gcc.exe main.c `pkg-config.exe --cflags --libs gtk+-3.0`
```
#### 3.Run
Run the `a.exe`.
### MacOS
---
#### 1.Prerequisite
- Xcode
- [Homebrew](https://brew.sh)
- GTK package for MacOS (inside MacOS terminal)
```
brew install gtk+3
```
#### 2.Compilation (for other projects using GTK)
- Set up compiler flags:
```
pkg-config --cflags gtk+-3.0
```
- Add the result to Other C Flags of Xcode target's Build Settings.
- Set up linker flags:
```
pkg-config --libs gtk+-3.0
```
- Add the result to Other Linker Flags.
#### 3.Run
Xcode should start automaticaly the program.
### Linux
---
#### 1.Prerequisite
- [GTK](https://www.gtk.org)
- GCC
- pkg-config
#### 2.Compilation
```
gcc main.c `pkg-config.exe --cflags --libs gtk+-3.0`
```
#### 3.Run
Run the program a.out