基本上,每次我成功配置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 .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下载的Visual Studio 2019文件。 文件(不是里克尔,不用担心):http://www.mediafire.com/file/576nmghv6bbt36y/GLFW_Error_Files.zip/file