Skip to content

Ectalite/Enigma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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