So for a class we have a couple of programs where we are using opengl. To make setup easier we started by cloning glitter https://github.com/Polytonic/Glitter. I then compliled it according to the instructions for visual studio 2017 and added my code to the project I am working on. I did this on my desktop computer but saved the files in onedrive. When I open the same project on my laptop and try to build the project I get the error "the source directory D:/OneDrive/fall_2017/Glitter does not appear to contain CMakeLists.txt" and several other similar errors. On my laptop the directory to the files is C:/Users/Me/OneDrive/fall_2017/Glitter. The visual studio program lists the full path as D:/OneDrive/fall_2017/Glitter which is the path of the folder on my desktop.
所以对于一个课程,我们有几个程序,我们使用opengl。为了使设置更容易,我们开始克隆闪烁https://github.com/Polytonic/Glitter。然后我根据visual studio 2017的说明对它进行了编辑,并将我的代码添加到我正在处理的项目中。我在台式计算机上执行了此操作,但将文件保存在onedrive中。当我在笔记本电脑上打开同一个项目并尝试构建项目时,我收到错误“源目录D:/ OneDrive / fall_2017 / Glitter似乎不包含CMakeLists.txt”和其他几个类似的错误。在我的笔记本电脑上,文件的目录是C:/ Users / Me / OneDrive / fall_2017 / Glitter。 visual studio程序将完整路径列为D:/ OneDrive / fall_2017 / Glitter,这是我桌面上文件夹的路径。
Is there a way for me to change the filepath or is the issue with my cmake file? Do I have to rebuild it for every computer I use it on? I don't know a whole lot about visual studio so I don't know what I need to change to get this to work.
有没有办法让我更改文件路径或是我的cmake文件的问题?我是否必须为我使用它的每台计算机重建它?我不太了解视觉工作室,所以我不知道我需要改变什么来让它工作。
1 个解决方案
#1
0
Turns out I have to rebuild on every computer. Thanks to those who left comments.
结果我必须在每台计算机上重建。感谢那些发表评论的人。
#1
0
Turns out I have to rebuild on every computer. Thanks to those who left comments.
结果我必须在每台计算机上重建。感谢那些发表评论的人。