0

I distribute a c++ program made with visual studio.

Whenever I need to give it to someone I just edit the code with some infos regarding this person to track the executable usage.

I have a server running ubuntu, I already made a shell script that automates the code changes but I can't find a way to compile a visual studio project on linux for windows.

Is it even possible ?

Thanks.

drov
  • 133
  • 2
  • 11

2 Answers2

1

How complex is your Visual Studio project? If it is basically a straightforward project, you should be able to write a Makefile with minimal effort. If Visual studio basically auto-created your project and you did very little customization, other than small stuff like include directories, then the Makefile should be pretty simple.

Dave
  • 320
  • 3
  • 9
  • It is pretty complex in terms of libraries, for example I use boost and others, I already tried a port from visual studio to mingw and it did not go very well that's why I would like to keep my visual studio project ^^ – drov Oct 31 '16 at 09:46
0

There is an option for such a development.

Install all dev libraries with vcpkg tool on Windows. Install all dev libraries with apt-get tool on Ubuntu.

Create cross-platform Linux project in VS2017. Add there all your files from Windows project. Set up remote Ubuntu server(I'm using VirtualBox with Ubuntu installed). Compile and debug your project on Ubuntu server just from VS2017.

There is one problem I'm looking solution for: auto-refresh Linux project according to file changes (add/remove only as modifications are auto-refreshing) in your Windows project, but that is a minor issue.

Have a nice day :)

Paul Yakovenko
  • 143
  • 1
  • 8