andrewrk / andrewrk/rucksack

Error: cmake and VS2022 and msys

Ouverte
#28 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C
Étoiles
31
Forks
7
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi there,

I try to compile it, but msys I have error like this:

`-- Building for: Ninja
-- The C compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: H:/Programme/msys64/mingw64/bin/cc.exe
-- Check for working C compiler: H:/Programme/msys64/mingw64/bin/cc.exe - broken
CMake Error at H:/Programme/msys64/mingw64/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"H:/Programme/msys64/mingw64/bin/cc.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: 'C:/Users/User/Downloads/rucksack-main/rucksack-main/CMakeFiles/CMakeScratch/TryCompile-99xuz5'

Run Build Command(s): H:/Programme/msys64/mingw64/bin/ninja.exe -v cmTC_1c339
[1/2] H:\Programme\msys64\mingw64\bin\cc.exe -o CMakeFiles\cmTC_1c339.dir\testCCompiler.c.obj -c C:\Users\User\Downloads\rucksack-main\rucksack-main\CMakeFiles\CMakeScratch\TryCompile-99xuz5\testCCompiler.c
FAILED: [code=1] CMakeFiles/cmTC_1c339.dir/testCCompiler.c.obj
H:\Programme\msys64\mingw64\bin\cc.exe -o CMakeFiles\cmTC_1c339.dir\testCCompiler.c.obj -c C:\Users\User\Downloads\rucksack-main\rucksack-main\CMakeFiles\CMakeScratch\TryCompile-99xuz5\testCCompiler.c
ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)

-- Configuring incomplete, errors occurred!
`

And Windows VS2022 have Problems with the Full Flag like this:

`set(LIB_CFLAGS "-std=c99 -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_POSIX_C_SOURCE=200809L -Wno-gnu-folding-constant")`

I know I am new with VS2022 I used other Dev. Language.
But can someone of you @all help me find out how I can try to compile it ?

Kind regards
Chris

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.