Go to Menu->Project->Build Options and select the overall project in the upper left (not the individual build targets). Duplicate the Debug and Release targets and name them DebugStatic and ReleaseStatic respectively. With the project open and active in CB, go to Menu->Project->Properties, and select the Build Targets tab. If you install them somewhere else, you will have to modify the paths given below accordingly. This gives you c:\allegro\include, c:\allegro\lib, and c:\allegro\bin. You may put these folders anywhere you like, but it is recommended NOT to install them to your compiler folder but to keep them separate.įor purposes of this guide, we will assume you have extracted the folders to c:\allegro. ![]() These are the 'bin', 'include', and 'lib' folders contained inside the archive. Your binary distribition of Allegro 5 should come with 3 folders inside. Now we need to configure our project to find and link to allegro. Accept the default settings for the default configurations. ![]() Give it a title, home folder, and filename and continue. You will want to use an Empty Project as your project template (until such time as there is an Allegro project template). Follow the onscreen instructions to setup your basic project. Do so by going to Menu->File->New and selecting Project from the options. Now create an empty project and add the debug and release configurations as default. ![]() Note that this is a 32 bit compiler, and so it references the i686 executables for building with MinGW. It should look like this for the MinGW-W64 compiler : Go to Menu->Settings->Compiler and select the Toolchain Executables tab. Compilerįirst make sure your compiler is setup properly and working in a stand alone project. NOTE Your MinGW version must match the version used to build allegro exactly. So, you want to set up Code::Blocks to use MinGW and Allegro 5? Thankfully, it's fairly simple once you get used to configuring a CB project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |