You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Chapter 8, Recipe 3, when I build the project using cmake --build . inside the build folder, somewhere after the downloading is completed, the build failed. And it gave out the message:
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
CMake Error at /mnt/c/Ubuntu/cmake-cookbook/chapter-08/recipe-03/c-example/build/subprojects/Stamp/fftw3_external/extract-fftw3_external.cmake:51 (file):
file RENAME failed to rename
/mnt/c/Ubuntu/cmake-cookbook/chapter-08/recipe-03/c-example/build/subprojects/Source/ex-fftw3_external1234/fftw-3.3.8
to
/mnt/c/Ubuntu/cmake-cookbook/chapter-08/recipe-03/c-example/build/subprojects/Source/fftw3_external
because: Permission denied
external/upstream/fftw3/CMakeFiles/fftw3_external.dir/build.make:90: recipe for target 'subprojects/Stamp/fftw3_external/fftw3_external-download' failed
make[2]: *** [subprojects/Stamp/fftw3_external/fftw3_external-download] Error 1
CMakeFiles/Makefile2:145: recipe for target 'external/upstream/fftw3/CMakeFiles/fftw3_external.dir/all' failed
make[1]: *** [external/upstream/fftw3/CMakeFiles/fftw3_external.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
The line that cause the error (.../cmake-cookbook/chapter-08/recipe-03/c-example/build/subprojects/Stamp/fftw3_external/extract-fftw3_external.cmake:51 (file): is
file(RENAME${contents}${directory})
I tried sudo cmake --build . It didn't help. As you can see, I am operating on WSL.
Would you please help fix this issue? Thanks.
The text was updated successfully, but these errors were encountered:
Sorry that you had to wait so long for a reaction. I have never tried WSL but it would be good for me to test it out. I will need to try it on a Windows virtual machine since my laptop runs Linux.
Hi, I am learning CMake using your book.
In Chapter 8, Recipe 3, when I build the project using
cmake --build .
inside thebuild
folder, somewhere after the downloading is completed, the build failed. And it gave out the message:The line that cause the error (
.../cmake-cookbook/chapter-08/recipe-03/c-example/build/subprojects/Stamp/fftw3_external/extract-fftw3_external.cmake:51 (file):
isI tried
sudo cmake --build .
It didn't help. As you can see, I am operating on WSL.Would you please help fix this issue? Thanks.
The text was updated successfully, but these errors were encountered: