Page 1 of 1

Porting a C++ VS project to Linux

Posted: 2021-04-21 04:51am
by Eleas
Hey all,

So I've been fiddling with a C++ project, and it turned out pretty neat. Now I want to make it work on Linux. Problem is, I'm used to all the bells and whistles of Visual Studio. I have literally no idea where to begin when it comes to writing a makefile, let alone something platform-independent.

So where do I begin? Yeah, I know, not the most common type of request for this forum, but I figured it wouldn't hurt to ask.

Re: Porting a C++ VS project to Linux

Posted: 2021-04-21 03:14pm
by Steel
Now that we live in the future, this is much less miserable.

You should be able to get VS to create you some cmake build stuff and use that on linux. This may be easier or harder depending on if you're using other libraries.

This tutorial might have useful information, although I don't know if it explicitly covers converting an existing project to cmake

https://docs.microsoft.com/en-us/cpp/bu ... w=msvc-160

Re: Porting a C++ VS project to Linux

Posted: 2021-04-23 04:43am
by Eleas
Ooo. I hadn't realized VS integration of CMake had progressed that far.

Thank you kindly. I'll check it out.