xmos / fwk_voice

Voice Framework
Other
11 stars 19 forks source link

Compile error on Windows about QUICK START demo #410

Open JIULIGUAN opened 6 months ago

JIULIGUAN commented 6 months ago

Step 5 : Install dependencies _pip install -e fwk_voice_deps/xscope_fileio cd fwk_voice_deps/xscopefileio/host cmake -G "Ninja" . ninja cd ../../../

I get the following errors, please help !

D:\fwk_voice\build\fwk_voice_deps\xscope_fileio\host>cmake -G "Ninja" . -- The C compiler identification is MSVC 19.29.30148.0 -- The CXX compiler identification is MSVC 19.29.30148.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - broken CMake Error at D:/Program Files/CMake/share/cmake-3.27/Modules/CMakeTestCCompiler.cmake:67 (message): The C compiler

"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: 'D:/fwk_voice/build/fwk_voice_deps/xscope_fileio/host/CMakeFiles/CMakeScratch/TryCompile-b6vnxn'

Run Build Command(s): "D:/Program Files/ninja-win/ninja.exe" -v cmTC_19a1d
[1/2] C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe  /nologo   /DWIN32 /D_WINDOWS /W3  /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_19a1d.dir\testCCompiler.c.obj /FdCMakeFiles\cmTC_19a1d.dir\ /FS -c D:\fwk_voice\build\fwk_voice_deps\xscope_fileio\host\CMakeFiles\CMakeScratch\TryCompile-b6vnxn\testCCompiler.c
[2/2] cmd.exe /C "cd . && "D:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_19a1d.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_19a1d.dir\testCCompiler.c.obj  /out:cmTC_19a1d.exe /implib:cmTC_19a1d.lib /pdb:cmTC_19a1d.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
FAILED: cmTC_19a1d.exe
cmd.exe /C "cd . && "D:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_19a1d.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_19a1d.dir\testCCompiler.c.obj  /out:cmTC_19a1d.exe /implib:cmTC_19a1d.lib /pdb:cmTC_19a1d.pdb /version:0.0 /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
RC Pass 1: command "rc /fo CMakeFiles\cmTC_19a1d.dir/manifest.res CMakeFiles\cmTC_19a1d.dir/manifest.rc" failed (exit code 0) with the following output:
系统找不到指定的文件。
ninja: build stopped: subcommand failed.

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

-- Configuring incomplete, errors occurred!

JIULIGUAN commented 6 months ago

https://github.com/xmos/fwk_voice/blob/main/doc/getting_started/index.rst The first step to the fourth part was successful