Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compile open source framework in Visual Studio C++, that has "makefile" only and no solution file?

How to compile open source framework in Visual Studio C++, that has "makefile" only and no solution file?

like image 523
Roman Kagan Avatar asked Jul 24 '09 15:07

Roman Kagan


People also ask

How do I run a Makefile in Visual Studio?

From the Visual Studio start page, type "makefile" in the New Project search box. Or, in the New Project dialog box, expand Visual C++ > General (Visual Studio 2015) or Other (Visual Studio 2017) and then select Makefile Project in the Templates pane to open the project wizard.

Does Visual Studio have a built in compiler?

The C/C++ compiler in Visual Studio is and always has been Microsoft C++ Compiler, built by Microsoft (not based on anything else.)


1 Answers

Unfortunately there is no silver bullet for this kind of change. Make and Visual Studio C++ style build are very different beasts. While they can do very similar operations, they can also have wildly different structures which makes providing a simple guide very difficult.

IMHO, the best way to achieve this is to start a new C++ project. Add in all of the existing files and go through the make file step by step attempting to convert every action to the equivalent C++ action.

like image 149
JaredPar Avatar answered Sep 30 '22 05:09

JaredPar