Closed moeyahia closed 1 year ago
Run cmake . -D CMAKE_C_COMPILER="C:\\Users\\moeya\\Desktop\\Chamelion\\ProxSpace\\msys2\\mingw64\\bin\\gcc.exe" -D CMAKE_CXX_COMPILER="C:\\Users\\moeya\\Desktop\\Chamelion\\ProxSpace\\msys2\\mingw64\\bin\\g++.exe"
, should work
cmake . -D CMAKE_C_COMPILER="C:\Users\moeya\Desktop\Chamelion\ProxSpace\msys2\mingw64\bin\gcc.exe" -D CMAKE_CXX_COMPILER="C:\Users\moeya\Desktop\Chamelion\ProxSpace\msys2\mingw64\bin\g++.exe"
It didnot
cmake . -D CMAKE_C_COMPILER="C:\\Users\\moeya\\Desktop\\Chamelion\\ProxSpace\\msys2\\mingw64\\bin\\gcc.exe" -D CMAKE_CXX_COMPILER="C:\\Users\\moeya\\Desktop\\Chamelion\\ProxSpace\\msys2\\mingw64\\bin\\g++.exe"
-- The C compiler identification is GNU 10.3.0
CMake Error at CMakeFiles/3.21.1/CMakeCCompiler.cmake:1 (set):
Syntax error in cmake code at
C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/3.21.1/CMakeCCompiler.cmake:1
when parsing string
C:\Users\moeya\Desktop\Chamelion\ProxSpace\msys2\mingw64\bin\gcc.exe
Invalid character escape '\U'.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeOutput.log".
See also "C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeError.log".
cmake . -D CMAKE_C_COMPILER="C:\Users\moeya\Desktop\Chamelion\ProxSpace\msys2\mingw64\bin\gcc.exe" -D CMAKE_CXX_COMPILER="C:\Users\moeya\Desktop\Chamelion\ProxSpace\msys2\mingw64\bin\g++.exe"
It didnot
cmake . -D CMAKE_C_COMPILER="C:\\Users\\moeya\\Desktop\\Chamelion\\ProxSpace\\msys2\\mingw64\\bin\\gcc.exe" -D CMAKE_CXX_COMPILER="C:\\Users\\moeya\\Desktop\\Chamelion\\ProxSpace\\msys2\\mingw64\\bin\\g++.exe" -- The C compiler identification is GNU 10.3.0 CMake Error at CMakeFiles/3.21.1/CMakeCCompiler.cmake:1 (set): Syntax error in cmake code at C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/3.21.1/CMakeCCompiler.cmake:1 when parsing string C:\Users\moeya\Desktop\Chamelion\ProxSpace\msys2\mingw64\bin\gcc.exe Invalid character escape '\U'. Call Stack (most recent call first): CMakeLists.txt:3 (project) -- Configuring incomplete, errors occurred! See also "C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeOutput.log". See also "C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeError.log".
if your just compiling the cli binaries, why arent you just running cmake .
cmake . -D CMAKE_C_COMPILER="C:\Users\moeya\Desktop\Chamelion\ProxSpace\msys2\mingw64\bin\gcc.exe" -D CMAKE_CXX_COMPILER="C:\Users\moeya\Desktop\Chamelion\ProxSpace\msys2\mingw64\bin\g++.exe"
It didnot
cmake . -D CMAKE_C_COMPILER="C:\\Users\\moeya\\Desktop\\Chamelion\\ProxSpace\\msys2\\mingw64\\bin\\gcc.exe" -D CMAKE_CXX_COMPILER="C:\\Users\\moeya\\Desktop\\Chamelion\\ProxSpace\\msys2\\mingw64\\bin\\g++.exe" -- The C compiler identification is GNU 10.3.0 CMake Error at CMakeFiles/3.21.1/CMakeCCompiler.cmake:1 (set): Syntax error in cmake code at C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/3.21.1/CMakeCCompiler.cmake:1 when parsing string C:\Users\moeya\Desktop\Chamelion\ProxSpace\msys2\mingw64\bin\gcc.exe Invalid character escape '\U'. Call Stack (most recent call first): CMakeLists.txt:3 (project) -- Configuring incomplete, errors occurred! See also "C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeOutput.log". See also "C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeError.log".
if your just compiling the cli binaries, why arent you just running cmake .
because it is giving me the same error
pm3 ~/ChameleonUltra/software/src$ cmake .
-- The C compiler identification is GNU 10.3.0
CMake Error at CMakeFiles/3.21.1/CMakeCCompiler.cmake:1 (set):
Syntax error in cmake code at
C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/3.21.1/CMakeCCompiler.cmake:1
when parsing string
C:\Users\moeya\Desktop\Chamelion\ProxSpace\msys2\mingw64\bin\gcc.exe
Invalid character escape '\U'.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeOutput.log".
See also "C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeError.log".
git clean -d -f -x
maybe will fix it (warning: will remove all files that aren't present in repo!)
git clean -d -f -x
maybe will fix it (warning: will remove all files that aren't present in repo!)
I already did a fresh install and it is still the same :( . Trust me opening a ticket is the last resort i had. Even chatgpt didnt figure it out lol
git clean -d -f -x
maybe will fix it (warning: will remove all files that aren't present in repo!)I already did a fresh install and it is still the same :( . Trust me opening a ticket is the last resort i had. Even chatgpt didnt figure it out lol
try pacman -Syu --noconfirm
, other than that i got no ideas...
pacman -Syu --noconfirm
So i did a git clean then ran the pacman update command and then navigated to src and executed cmake .
pm3 ~/ChameleonUltra/software/src$ cmake .
-- Building for: Ninja
-- The C compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Users/moeya/Desktop/Chamelion/ProxSpace/msys2/mingw64/bin/cc.exe
-- Check for working C compiler: C:/Users/moeya/Desktop/Chamelion/ProxSpace/msys2/mingw64/bin/cc.exe - broken
CMake Error at C:/Users/moeya/Desktop/Chamelion/ProxSpace/msys2/mingw64/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"C:/Users/moeya/Desktop/Chamelion/ProxSpace/msys2/mingw64/bin/cc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Users/moeya/Desktop/Chamelion/ProxSpace/msys2/usr/bin/ninja.exe cmTC_59523 && [1/2] Building C object CMakeFiles/cmTC_59523.dir/testCCompiler.c.obj
FAILED: CMakeFiles/cmTC_59523.dir/testCCompiler.c.obj
C:\Users\moeya\Desktop\Chamelion\ProxSpace\msys2\mingw64\bin\cc.exe -o CMakeFiles/cmTC_59523.dir/testCCompiler.c.obj -c 'C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeTmp/testCCompiler.c'
/bin/sh: line 1: C:UsersmoeyaDesktopChamelionProxSpacemsys2mingw64bincc.exe: command not found
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeOutput.log".
See also "C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src/CMakeFiles/CMakeError.log".
This is the first error i receive, afterwhich i receive the parsing error. So it seems that this is the main issue, any thoughts?
Does it work if you change the ninja version?
pacman -R ninja
pacman -S mingw-w64-x86_64-ninja
Does it work if you change the ninja version?
pacman -R ninja pacman -S mingw-w64-x86_64-ninja
You are a savior Sir
pm3 ~/ChameleonUltra/software/src$ cmake .
-- Building for: Ninja
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/moeya/Desktop/Chamelion/ProxSpace/msys2/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done (3.9s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/moeya/Desktop/Chamelion/ProxSpace/pm3/ChameleonUltra/software/src
@GameTec-live please check if guide should be adapted. I don't know if the problem occurs for everyone using proxspace or not
Hi Everyone, I am trying to install this library, but i keep failing at the cmake command and i can't seem to understand what is going on.
Below are the contents of CMakeLists.txt
Where am i going wrong exactly?