Porting a C++ VS project to Linux

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Eleas
Jaina Dax
Posts: 4896
Joined: 2002-07-08 05:08am
Location: Malmö, Sweden
Contact:

Porting a C++ VS project to Linux

Post 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.
Björn Paulsen

"Travelers with closed minds can tell us little except about themselves."
--Chinua Achebe
User avatar
Steel
Jedi Master
Posts: 1122
Joined: 2005-12-09 03:49pm
Location: Cambridge

Re: Porting a C++ VS project to Linux

Post 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
Apparently nobody can see you without a signature.
User avatar
Eleas
Jaina Dax
Posts: 4896
Joined: 2002-07-08 05:08am
Location: Malmö, Sweden
Contact:

Re: Porting a C++ VS project to Linux

Post by Eleas »

Ooo. I hadn't realized VS integration of CMake had progressed that far.

Thank you kindly. I'll check it out.
Björn Paulsen

"Travelers with closed minds can tell us little except about themselves."
--Chinua Achebe
Post Reply