W S L Template Stacks

A WSL C++ Template Project for GLFW-Skia applications

View project on GitHub

What VSC Agent

This will try to automatically (or semi-automatically) set up the Windows environment for our project. It uses the Visual Studio Code Copilot Agent.

I’m not sure how reliable this is. It worked for me after a lot of tweaking and adjusting the documentation (and perhaps a few unfriendly words directed at Copilot 😉). I tried disabling the “Continue?” prompt, but it still keeps asking, I haven’t found a fix for that yet.

Feedback
I’m curious how this works for others. Please let me know in the discussion section. I will set up an issue titled “VSC Agent Mode Experience” you can add your experience there if you like. Based on my experience, here are a few things that might go wrong:

What can go wrong

  • GLFW 3.4 is downloaded to the wrong folder, causing the process to stop.
    👉 Fix: Move the files to the expected location.
  • Copilot may skip updating the Makefiles.
    👉 Fix: At the end, ask Copilot:
    “Something tells me you forgot to update the Makefiles — did you?”
  • it remove the opengl32 library from the window.cmake file(GLFW_LIBS_WIN_LOCAL) which resulted in errors while running ./build.ps1
  • Always ask at the end: “Did you skip a step?” after Copilot finishes.


Prepare for Installation With VSC Agent

  1. Open Visual Studio Code.
  2. Open Copilot and ensure Agent is selected from the dropdown.
  3. Recommended model: GPT-4.1.
  4. Make sure your terminal is at the project root.
  5. Enter the question(s) for steps one and two.


Steps for Windows

Step 1 Create open new project.

Enter the following text, and follow the instructions in Copilot:

Note This is the same step as in the procedure as in the Linux based Copilot instructions here in that case skip this step

Clone the GitHub repository https://github.com/NicoJanE/WSL-Development-Stack-GLFW-Skia-CPP-Template into a new subfolder named MyApp inside d:\Temp, and open that folder as a project in Visual Studio Code.


Step 2 Build Windows environment

Assuming the Step 1 was successful created and the project folder is opened it in VSC. Enter the following instruction into you PowerShell :

Automate all steps from the referenced setup guide #fetch https://nicojane.github.io/WSL-Development-Stack-GLFW-Skia-CPP-Template/Howtos/setup_win, strictly in the order written. For each step:

- First tel me which steps your going to do and number them
- Stick to the order/sequence as defined!
- Use the command as defined in this document, do't change them!
- Do not perform any action before its place in the document; treat each bullet or numbered step as a mandatory checkpoint.
- Only create folders, download, unzip, move, or build when explicitly instructed.
- Always follow the literal wording and order; if ambiguous, default to the document’s sequence.
- Do not fix or change folder structure; report and stop on errors.
- Automate each step and proceed immediately to the next.
- If multiple options exist, choose the one marked 'Preferred'.
- When using msbuild.exe, first search for its location, then run vcvars64.bat (default path provided) before executing the build command.
- Do not pause or request any user confirmation between steps; proceed automatically to the next step as soon as the previous one completes successfully


Step 3

Always ask at the end: ‘Did you skip a step ?’ after Copilot is finished

Home Sites
















Maintained by NicoJanE. Generated by GitHub Pages.