Skip to content

Can't create new project on Windows #8446

@whoisryosuke

Description

@whoisryosuke

Hey all, trying to just get started with the project but I keep running into weird errors right off the bat.

  1. Downloaded OF for Windows and extracted onto my external drive in my dev folder.
  2. Ran the project generator, platform was set to Windows (VS) and Template was OpenGL 4.3 Emscriptem. Also to note - there were 2 sets of Emscriptem options in dropdown - so there are 2 OpenGL 4.3s. I tried the first one.
  3. Opened the generated project folder, only found a .vcxproj file -- opened that.
  4. I get the following error from Visual Studio 2022:

Error saying "unable to read project file MySketch.vcxproj"

I tried the process again with a different template (VS Code) and the project generated with only .make files and no source files. Also tried the second OpenGL 4.3 option in the dropdown with Visual Studio - same results as the first time.

So then I moved on to using the examples.

  1. Opened the "emptyExample" folder (examples\templates\emptyExample).
  2. Opened the .sln file there.
  3. Tried building the project in VS 2022, got the following error:
Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB3191	Unable to create directory "E:\Development\C++\of_v0.12.1_vs_64_release\examples\templates\emptyExample\obj\x64\Debug\Build\C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\modules\Debug". The given path's format is not supported.	emptyExample	C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets	1016	

I checked the Project Settings and it seems the output folder is correct (you can see it in the error) - but for some reason Visual Studio keeps appending the VS path to it - which causes the error since it's adding to "Program Files" folder. I can't seem to find a reference to it anywhere in VS settings or the .make files.

Visual Studio project settings window

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions