How to create standalone oF export package from Visual Studio 2017


#1

I have searched the forum extensively and can’t find a simple description of how to bundle a VS-based executable with perhaps “content” for export to another Windows PC that does not have oF installed…
The package would contain the DLLs necessary for standalone execution in addition to the .exe file and anything in bin/data. I think such a bundle could be copied to the desktop for testing or anywhere outside C:\openFrameworks\apps. Although, I do have a second PC running Windows 10 for testing.
A bare minimum tutorial or a few hints would be very welcome.
Thanks, Bob


#2

Hi,
You don’t need to have OF installed on another machine to run your app. What you need is to send the bin folder which contains all data folder and DLL’s files. And you have to install the Microsoft Visual C++ Redistributable corresponding to the compiler you used to build the app.

Here is for Visual Studio 2015:
https://www.microsoft.com/en-us/download/details.aspx?id=48145
and here is a help how to download for VS2017:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/e653a57a-bc32-4134-87bf-df33058f0531/download-microsoft-visual-c-2017-redistributable?forum=vssetup

That’s all.

You can check this tool if you would like to build an installer. Unfortunately, I don’t have any experience with that.


And check this after:


#3

Sebastian: Many thanks for your thorough description of how to bundle an oF-based app for export. It certainly cleared up the question for me and, I’m sure, for many others!