FAQ - Estia-1a/projetGenieInfo_public GitHub Wiki
I have trouble compiling the original project
The git commands are not recognized
If the git commands are not recognized (e.g. after having done CTRL + SHIFT + P and typed " Git: clone " nothing is displayed:
-
Check that you have downloaded MinGW with Git : C:\MinGW\git\bin
- If this folder does not exist : download https://github.com/git-for-windows/git/releases/download/v2.36.1.windows.1/Git-2.36.1-64-bit.exe
- Otherwise modify your Path environment variable to add C:\MinGW\git\bin
-
Check that your folder is designated as being trustworthy:
- Click on the "gear" at the bottom left
- Click on "Manage Workspace trust
- Click on " Trust ".
If your project does not compile:
NO ACCENT IN PATH
- No accents in any of the folder names where your project is located
- Example of what not to do : C:\Users\elodie.bouzekri\OneDrive - ESTIA\Documents\Ma bibliothèque\Génie Informatique\
You should clone your project in a folder like C:/projetInfo/pgi-2022-NameOfYourteam
Minimum version of CMAKE
Sometimes cmake is not up to date, you can lower it version to 3.15 or 3.12
- Open CMakeLists.txt
- Change cmake_minimum_required(VERSION 3.20) to cmake_minimum_required(VERSION 3.15)
Minimum Version of MinGW
- Check that you have downloaded MinGW : C:\MinGW\bin
- If this folder does not exist: download https://nuwen.net/files/mingw/mingw-19.0.exe
- Modify your Path environment variables to add C:\MinGW\bin if it is not already present
Libraries installation path
- Check that you have correctly installed the estia-image and getopt libraries.
- The estia-image/ and getopt/ folders must be in the root of your project. That is: "pgi-2022-\estia-image/" and "pgi-2022-\getopt/" with the name of your team. The structure and names of the folders should be exactly as follows:
- estia-image
- include
- estia-image.h
- lib
- libestia-image.a
- include
- getopt
- include
- getopt.h
- lib
- libgetopt.a
- include
I have trouble with Git and The project
Authenticate with git :
If you are having an issue with git not being authorized with GitHub, you can force git to open a browser to set up the authentification
git config --global credential.useHttpPath true