Build Errors when Trying to Run Examples in Visual Studio 2017

I’m new to both VisualStudio and OpenFrameworks and I can’t seem to even get started with the examples.

I’ve tried a bunch of different examples, and I’ve tried both opening the .sln file from within Visual Studio, and using projectGenerator.exe to import the folder, and either way I get the same problems.

Whether I go to Build Solution, Start Debugging or Start Without Debugging I get the same sort of output in the console:

1>------ Build started: Project: openframeworksLib, Configuration: Debug x64 ------
1>Object reference not set to an instance of an object.
1>Error: Object reference not set to an instance of an object.
2>------ Build started: Project: blendingExample, Configuration: Debug x64 ------
2>Object reference not set to an instance of an object.
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

A message pops up telling me there were build errors and asking whether I would like to run the last successful build, but if I click Yes, it can’t be found, presumably because there isn’t one.

I’m using Microsoft Visual Studio Community 2017 version 15.9.7, on Windows 10 64-bit, with version 0.7 of the OpenFrameworks plugin, and for OpenFrameworks itself I’ve got of_v0.10.1_vs2017_release.

Hello! I did the upgrade of the plugin to VS2017 and I must confess I didn’t test the examples. I will take a look this week and post the results.

Meanwhile, did you get a new, empty project to run? (by running the wizard from New, Project, openFrameworks). An “empty” project generated from the wizard should compile and run.

By the way, where do I find those examples? :slight_smile:

I just checked, and I get the same error message with an empty project.

My Visual Studio is also 15.9.7 with OF version of_v0.10.1_vs2017_release. Other info copied from About dialog - perhaps the C++ version is worth comparing?

What about a regular C++ console application, does that compile and run? (just trying to figure out if the error is from the C++ tooling or from OpenFrameworks)

Did you include any addons to your OF project?

Microsoft Visual Studio Community 2017
Version 15.9.7
VisualStudio.15.Release/15.9.7+28307.423
Microsoft .NET Framework
Version 4.7.03056

Installed Version: Community

Visual C++ 2017 00369-60000-00001-AA830
Microsoft Visual C++ 2017

From the About dialog:

Microsoft Visual Studio Community 2017
Version 15.9.7
VisualStudio.15.Release/15.9.7+28307.423
Microsoft .NET Framework
Version 4.7.03056

Installed Version: Community

Visual C++ 2017 00369-60000-00001-AA193
Microsoft Visual C++ 2017

I’m new to Visual Studio, I don’t know how to make a regular C++ console application. If you can tell me, I’ll try it!

I wasn’t including any addons to my empty OF project.

Did you ever find a solution for this?? I have the same problem

I tried various routes to get OF working in WIndows but none worked for me so I gave up and installed a Linux partition!