Skip to content

Latest commit

 

History

History
65 lines (61 loc) · 1.43 KB

README.md

File metadata and controls

65 lines (61 loc) · 1.43 KB

Enigma in C

  • Projet de premier semestre de Génie Electrique et informatique industrielle.
  • First semester's Project of electrical Engineer.

How to run

How to compile

Windows


1.Prerequisite

  • msys2
  • 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
  • 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
  • GCC
  • pkg-config

2.Compilation

gcc main.c `pkg-config.exe --cflags --libs gtk+-3.0`

3.Run

Run the program a.out