简体   繁体   English

如何更改 Visual Studio 项目的完整路径,以便可以在多台计算机上使用它?

[英]How do I alter the full path of visual studio project so I can use it on multiple computers?

So for a class we have a couple of programs where we are using opengl.因此,对于一个类,我们有几个使用 opengl 的程序。 To make setup easier we started by cloning glitter https://github.com/Polytonic/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.然后我根据 Visual Studio 2017 的说明编译它,并将我的代码添加到我正在处理的项目中。 I did this on my desktop computer but saved the files in onedrive.我在台式计算机上执行此操作,但将文件保存在 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.当我在笔记本电脑上打开同一个项目并尝试构建项目时,我收到错误“源目录 D:/OneDrive/fall_2017/Glitter 似乎不包含 CMakeLists.txt”和其他几个类似的错误。 On my laptop the directory to the files is C:/Users/Me/OneDrive/fall_2017/Glitter.在我的笔记本电脑上,文件的目录是 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. 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?我有办法更改文件路径还是我的 cmake 文件有问题? 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.我对视觉工作室知之甚少,所以我不知道我需要改变什么才能让它工作。

Turns out I have to rebuild on every computer.原来我必须在每台计算机上重建。 Thanks to those who left comments.感谢那些留下评论的人。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Visual Studio Visual C ++ Win32项目中查看主窗体,以便编辑它? - How can I view the main form in a Visual Studio Visual C++ Win32 Project so I can edit it? 在 Visual Studio C++ 项目中,如何添加到“标题搜索路径”和“源列表” - In visual studio C++ project, how do I add to "headers search path" and "source list" 我想使用64位整数可以接受的全部范围。 如何在x86 Visual Studio 2008中做到这一点? - I want to use the full range that the 64-bit integer can take. How can I do it in x86 Visual Studio 2008? 如何在 Visual Studio 中使用 cURLpp? - How do I use cURLpp with Visual Studio? 我可以在 Visual Studio 2019 的一个项目下使用多个主 function 吗? - Can I use multiple main function under a project on Visual Studio 2019? 使用CMake构建后,如何在Visual Studio中创建项目以使用OpenMesh? - How do I create a project in Visual Studio to use OpenMesh after I've built using CMake? 如何在 Visual Studio 上使用库? - How can I use a library on Visual Studio? 在Visual Studio '13中,我该怎么做,以便可以在exe的相对子文件夹中包含dll文件? - In visual studio '13 how do I make it so I can include dll files in a relative sub folder of my exe? 如何在Visual Studio 2010 c ++项目中使用System.Net命名空间? - How can I use the System.Net namespace into a Visual Studio 2010 c++ project? 包含文件时,如何告诉Visual Studio使用项目目录而不是当前文件目录? - How can I tell Visual Studio to use the project directory instead of the current file directory when including files?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM