本文介绍了Windows构建系统:如何构建一个项目(从其源代码),没有* .sln或Visual C ++ proj文件(* .vcproj)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我面对这个问题。所以,我需要构建支持库(zlib,libtiff,libpng,libxml2,libiconv)与多线程DLL(/ MD)& 多线程DLL调试(/ MDd)运行时选项。但问题是没有直接的方法。我的意思是没有* .sln / * .vcproj文件,我可以在Visual C + +中打开它并建立它。I'm facing this problem. So, I need to build the support libraries (zlib, libtiff, libpng, libxml2, libiconv) with "Multithreaded DLL" (/MD) & "Multithreaded DLL Debug" (/MDd) run-time options. But the problem is there is no direct way . I mean there is no *.sln / *.vcproj file which I can open in Visual C++ and build it.我知道与 GNU构建系统:$./configure --with-all-sorts-of-required-switches$./make$./make install在我搜索期间遇到了一些名为 CMake 生成* .vcproj& * .sln文件,但为此CMakeLists.txt是必需的。不是所有的项目都提供CMakeLists.txt。During my search I've encountered with something called CMake which generates *.vcproj & *.sln file but for that CMakeLists.txt is required. Not all projects provide CMakeLists.txt.我从来没有编译任何Visual C ++命令行。 I've never compiled anything from Visual C++ Command Line. 通常大多数项目提供 makefile 。现在我如何从这里生成* .vcproj / * .sln?Generally most projects provide makefile. Now how do I generate *.vcproj / *.sln from this?我可以使用 mingw-make MinGW ? 如果可以,如何设置不同的选项(多线程(/ MT),多线程调试运行时库的多线程DLL(/ MD),多线程DLL调试(/ MDd)? If I can, how do I set different options ("Multi-Threaded"(/MT), "Multi-Threaded Debug"(/MTd), "Multi-Threaded DLL"(/MD), "Multi-Threaded DLL Debug"(/MDd)) for run-time libraries? 我不知道有什么其他方法可用。 I don't know what other ways are available. Please throw some light on this.推荐答案我相信所有这些项目都包括一个.vcproj文件(在VC中打开/构建)和/或VC makefile(使用nmake构建)。I believe all those projects include a .vcproj file (open/build in VC) and/or VC makefile (build with nmake). 这篇关于Windows构建系统:如何构建一个项目(从其源代码),没有* .sln或Visual C ++ proj文件(* .vcproj)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-21 21:36