简体   繁体   English

如何从Eclipse CDT打开vcproj文件?

[英]How to open a vcproj file from Eclipse CDT?

I know, the question has already been asked but the answer doesn't meet my requirements. 我知道,问题已经被问到,但答案不符合我的要求。

So is there is any way to import a Visual Studio project with all its parameters in Eclipse CDT ? 那么有没有办法在Eclipse CDT中导入Visual Studio项目及其所有参数? If yes, how could I do that ? 如果是的话,我怎么能这样做?

If you want to know more details about my situation, there it is : 如果您想了解有关我的情况的更多详细信息,那就是:

I am joining a rather big collaborative C++ project, with a complex repository and many sub-projects. 我正在加入一个相当大的协作C ++项目,具有复杂的存储库和许多子项目。 Each of these sub-projects was initially developed with Visual Studio, and the parameters of the build chain are stored in a vcproj file. 这些子项目中的每一个最初都是使用Visual Studio开发的,构建链的参数存储在vcproj文件中。

Yet, I strongly resent the use of Visual Studio, am more efficient with Eclipse CDT, and don't have access to a Windows machine, so I would be really happy to not loose weeks in order to understand the whole building process... 然而,我强烈反感使用Visual Studio,使用Eclipse CDT更高效,并且无法访问Windows机器,因此我很乐意不花费数周时间来了解整个构建过程......

With the risk of being a detracted answer from your question, I believe that the solution is NOT to convert a vcproj to an EClipse CDT project. 由于存在从您的问题中删除答案的风险,我认为解决方案不是将vcproj转换为EClipse CDT项目。 You should use a better build toolchain (eg CMake). 你应该使用更好的构建工具链(例如CMake)。 Once such a toolchain is in place, you can create a Visual Studio project, an EClipse CDT project, a QtCreator project, a XCode project, ... from the same build configuration files. 一旦有了这样的工具链,就可以从相同的构建配置文件中创建一个Visual Studio项目,一个EClipse CDT项目,一个QtCreator项目,一个XCode项目。

That way, when the next IDE for C++ comes along, nobody will be wasting their time converting project files. 这样,当下一个C ++ IDE出现时,没有人会浪费时间来转换项目文件。

I think you're asking the wrong question. 我想你问的是错误的问题。 As you've found, the .vcproj describes the build process (in addition to the list of files), and that strongly depends on the MS compiler toolchain being available. 正如您所发现的,.vcproj描述了构建过程(除了文件列表之外),这很大程度上取决于MS编译器工具链的可用性。

A better alternative (though harder to implement late in the lifetime of a project) is to use free tools such as Premake and JamPlus (just to name a few) to decouple the list of files from the build process. 一个更好的选择(尽管在项目生命周期的后期更难实现)是使用免费工具,如PremakeJamPlus (仅举几例),以便从构建过程中分离文件列表。 This is especially useful for multiplatform projects, as each developer can use their preferred editor and toolchain to contribute to the project. 这对于多平台项目尤其有用,因为每个开发人员都可以使用他们喜欢的编辑器和工具链来为项目做出贡献。

That being said, I do believe Visual Studio can run under Wine... ;) 话虽这么说,我相信Visual Studio可以在Wine下运行...;)

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM