-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Lex and Yac compilation CMake config errors on Windows
Correction: - fichier src\Learning\KWData\CMakeLists.txt : 'COMPILE_FLAGS-- nounistd' -> 'COMPILE_FLAGS "--nounistd"' - un fichier KWCYac.hpp est maintenant genere par bison, et ajoute au projet dans KWData Procedure d'installation, documentee dans le wiki 'Setting Up the Development Environment' - installation de la derniere version de windows flex et bison - derniere version: version 2.5.25 (bison 3.8.2, flex 2.6.4) https://github.com/lexxmark/winflexbison/releases (cela marche avec les versions 2.5.24 et 2.5.25) - mettre le repertoire des binaires win_flex.exe et win_bison.exe dans le path Cohabitation avec 'Gow - The lightweight alternative to Cygwin': https://github.com/bmatzelle/gow - si gow est installe, cmake va chercher les binaires de flex et yac dans le repertoire bin de gow, et cela ne marche pas - contournement pour garder gow sur sa machine: - dans le repertoire bin de gow, renommer flex.exe en NO_flex.exe et bison.exe en NO_bison.exe Mise en oeuvre, le temps d'une compilation lex et yac - dans le fichier CMakePreset.json, mettre "BUILD_LEX_YACC": "ON" - attention à "Supprimer le cache et configurer" dans le menu "Project" de Visual Studio - parfois, un peu laborieux, et necessaite de recommencer plusieurs fois
- Loading branch information
1 parent
17c094e
commit 187a885
Showing
6 changed files
with
373 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.