当前设置如下。
Source Code = F:/OSVR Snapshot Build/Teensy OSVR Tracker
Build Path = F:/OSVR Snapshot Build/Teensy OSVR Tracker Plugin Build
CMAKE_PREFIX_PATH = F:\OSVR 快照构建\OSVR-Core-Snapshot-v0.6-1935-ga2cba4b6-build281-vs12-64bit
当我点击配置时,我得到错误弹出窗口“配置过程中的错误,项目文件可能无效”
在日志窗口中,我得到了这个:
The C compiler identification is unknown
The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.
Configuring incomplete, errors occurred!
See also "F:/OSVR Snapshot Build/Teensy OSVR Tracker Plugin
Build/CMakeFiles/CMakeOutput.log".
See also "F:/OSVR Snapshot Build/Teensy OSVR Tracker Plugin
Build/CMakeFiles/CMakeError.log".
所有源文件和错误日志都位于https://github.com/Hydr0Dr4gon/Teensy-OSVR-Tracker。我把它们放在那里是因为有很多文件,而且很快就会变得非常混乱。
我使用的 OSVR-Core-Snapshot 是“OSVR-Core-Snapshot-v0.6-1935-ga2cba4b6-build281-vs12-64bit”,可以在这里找到 - http://access.osvr.com/binary/osvr -核
我正在使用 Visual Studio Community 15 2017 和 CMAKE 3.8.1
编辑
自从通过 VS 开发控制台启动 CMake 后,我现在收到此错误。
CMake Error: Could not find cmake module file:
CMakeDetermineTrackerCompiler.cmake
CMake Error: Could not find cmake module file: F:/OSVR Snapshot
Build/TestBuild/CMakeFiles/3.8.1/CMakeTrackerCompiler.cmake
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_Tracker_COMPILER could be found.
CMake Error: Could not find cmake module file: CMakeTrackerInformation.cmake