Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Running Allegro in VSCode on Windows

This thread is locked; no one can reply to it. rss feed Print
Running Allegro in VSCode on Windows
Flouid
Member #23,734
February 2023

I've been having trouble getting Allegro to play nice with VSCode. I initially just followed the instructions in the quickstart found on on the wiki for the allegro github and copied the folders directly into my MinGW install. This just kind of worked but an extension I used called C/C++ Runner for VSCode. However, as my project grows I wanted to swap to a CMake system for building. I installed allegro5 through vcpkg, but when I try to link to my project in the CMake, I'm met with the following error:

[build] Could not find a package configuration file provided by
[build] "unofficial-allegro5" with any of the following names:
[build]
[build] unofficial-allegro5Config.cmake
[build] unofficial-allegro5-config.cmake

I've looked around but all my searching led to a single github issue marked as resolved for vcpkg which did not help. I'm looking for guidance as to why CMake isn't allowing me to import allegro, even though I know it is already installed and built. I'll provide any other output/code or links to the resources I mentioned if requested. Thanks!

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Go to: