尝试使用CMake时出现大量错误行?
基本上,每次我在成功配置CMake后尝试在CMake上生成时,它都会以一条巨大的错误行响应,我读过这篇文章,但我不明白它的意思。我从GLFW官方网站(3.18版)下载了一个GLFW文件。请帮助我,因为我真的很想学习OpenGL尝试使用CMake时出现大量错误行?,cmake,Cmake,基本上,每次我在成功配置CMake后尝试在CMake上生成时,它都会以一条巨大的错误行响应,我读过这篇文章,但我不明白它的意思。我从GLFW官方网站(3.18版)下载了一个GLFW文件。请帮助我,因为我真的很想学习OpenGL Cannot find source file: clipboard.c Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .
Cannot find source file:
clipboard.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:39 (add_executable):
Cannot find source file:
events.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:40 (add_executable):
Cannot find source file:
msaa.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:41 (add_executable):
Cannot find source file:
glfwinfo.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:42 (add_executable):
Cannot find source file:
iconify.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:43 (add_executable):
Cannot find source file:
monitors.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:44 (add_executable):
Cannot find source file:
reopen.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:45 (add_executable):
Cannot find source file:
cursor.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:47 (add_executable):
Cannot find source file:
empty.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:48 (add_executable):
Cannot find source file:
gamma.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:49 (add_executable):
Cannot find source file:
icon.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:50 (add_executable):
Cannot find source file:
inputlag.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:51 (add_executable):
Cannot find source file:
joysticks.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:54 (add_executable):
Cannot find source file:
threads.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:52 (add_executable):
Cannot find source file:
opacity.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:53 (add_executable):
Cannot find source file:
tearing.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:55 (add_executable):
Cannot find source file:
timeout.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:56 (add_executable):
Cannot find source file:
title.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:57 (add_executable):
Cannot find source file:
triangle-vulkan.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:58 (add_executable):
Cannot find source file:
windows.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at CMakeLists.txt:38 (add_executable):
No SOURCES given to target: clipboard
CMake Error at CMakeLists.txt:39 (add_executable):
No SOURCES given to target: events
CMake Error at CMakeLists.txt:40 (add_executable):
No SOURCES given to target: msaa
CMake Error at CMakeLists.txt:41 (add_executable):
No SOURCES given to target: glfwinfo
CMake Error at CMakeLists.txt:42 (add_executable):
No SOURCES given to target: iconify
CMake Error at CMakeLists.txt:43 (add_executable):
No SOURCES given to target: monitors
CMake Error at CMakeLists.txt:44 (add_executable):
No SOURCES given to target: reopen
CMake Error at CMakeLists.txt:45 (add_executable):
No SOURCES given to target: cursor
CMake Error at CMakeLists.txt:47 (add_executable):
No SOURCES given to target: empty
CMake Error at CMakeLists.txt:48 (add_executable):
No SOURCES given to target: gamma
CMake Error at CMakeLists.txt:49 (add_executable):
No SOURCES given to target: icon
CMake Error at CMakeLists.txt:50 (add_executable):
No SOURCES given to target: inputlag
CMake Error at CMakeLists.txt:51 (add_executable):
No SOURCES given to target: joysticks
CMake Error at CMakeLists.txt:54 (add_executable):
No SOURCES given to target: threads
CMake Error at CMakeLists.txt:52 (add_executable):
No SOURCES given to target: opacity
CMake Error at CMakeLists.txt:53 (add_executable):
No SOURCES given to target: tearing
CMake Error at CMakeLists.txt:55 (add_executable):
No SOURCES given to target: timeout
CMake Error at CMakeLists.txt:56 (add_executable):
No SOURCES given to target: title
CMake Error at CMakeLists.txt:57 (add_executable):
No SOURCES given to target: triangle-vulkan
CMake Error at CMakeLists.txt:58 (add_executable):
No SOURCES given to target: windows
我如何解决这个问题,这是我从GLFW for Visual Studio 2019下载的文件。
文件(不是纸卷,别担心):出于某种原因,您的归档文件似乎不包含
clipboard.c
和其他文件。此外,归档文件的内容与官方文件不同。出于某种原因,您的归档文件似乎不包含clipboard.c
和其他文件。此外,档案的内容与官方的不一样。