Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 2.77 KB

File metadata and controls

83 lines (54 loc) · 2.77 KB

Visual Studio

Prerequisites

Visual Studio Installation


Download and install Visual Studio 2022 or Visual Studio 2026.

We recommend the free Community edition.

During installation, select the Desktop development with C++ workload.

Install openFrameworks

Libraries


If missing any libraries or want to update them run the script at vs/scripts/

  • download_libs.sh

Creating a new openFrameworks project


  1. Open the Project Generator (ofxImGui interface).
  2. Enter your Project name.
  3. Choose your Project path.
  4. Under Platforms, select Windows (Visual Studio).
  5. Under Template:
    • For Visual Studio 2022 → leave the Template field empty (default)
    • For Visual Studio 2026 → select vs2026 from the dropdown
  6. Click Generate.

Project Generator — Visual Studio 2022 (default template)

Project Generator — selecting the vs2026 template

Open and Run your project


Project Generator success screen

You can run by clicking Open in IDE in Project Generator or Open Folder to access directory.

Your project solution file is located at:
openFrameworks/apps/[yourFolder]/[projectName]/[projectName].sln

Double-click the .sln file to open it in the matching version of Visual Studio (2022 or 2026).

Visual Studio 2026 loading

Press F5 to build and run in Debug mode.

Debug vs Release


  • Debug — best while developing (full error info).
  • Release — smaller and faster (use when finished).

Switch between them using the dropdown at the top of Visual Studio.

Architectures


  • Targets are x86_64 - x64 - Default Windows
  • ARM64 - for arm64 processors (native arm)
  • ARM64EC - a mixture of both x64/arm64 for Windows 11

Start coding


Hit Esc to close the window, then edit your code in src/ofApp.cpp and src/ofApp.h.

Visual Studio 2026 Running