|
Having issues with the install |
Timothy Wilson
Member #16,093
October 2015
|
Greetings. I am running windows 10, using Microsoft visual studio 2015, and programming in C++. To install I did a few things. What I did was download the 4.5.0 MINGW version, and extract to a temp file that I created. After this I copied the bin and pasted the files to C:Windows, then proceeded to copy the lib and include files and pasted those inside of their respective folders in sysWOW>VC>. The issue that I am having is every time I compile the sample code: the same exact error continually pops up saying no such allegro.h exists, and cannot find allegro.h I am willing to do whatever it takes to get this running, Ive been making games within the MinGW compiling screen [the black screen] and theyve been pretty decent. I am so excited that I can start to learn actual ways to program like this without compromising a lot of space and whatnot. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Timothy Wilson said: I will just get right to the point with my issue. I will give a brief overview of my setup, then I will explain the methods that I have used to attempt the install, and lastly I will explain the issue that I am having. I am running windows 10, using Microsoft visual studio 2015, and programming in C++. To install I did a few things. What I did was download the 4.5.0 MINGW version, and extract to a temp file that I created. After this I copied the bin and pasted the files to C:Windows, then proceeded to copy the lib and include files and pasted those inside of their respective folders in sysWOW>VC>. The issue that I am having is every time I compile the sample code: First, you can't mix versions made for MinGW and versions made for MSVC2015. They are totally different compilers and are not compatible with each other. See the Allegro 5.1.12 release page for information where to get binaries for MSVC 2015, unless you want to compile with MinGW. Second, you should not just be stuffing the bin, include, and lib folders just anywhere. There are settings in MSVC for setting include and linker folder paths that you should set up for each project, or make a template for. If you're really using MinGW then from a command line you would use these commands : mingw32-g++ -Wall -o MyProgram.exe -Ic:\Allegro5112\include MyProgram.cpp -Lc:\Allegro5112\lib -lallegro_monolith-debug.dll -Isets\the\include\path -Lsets\the\linker\path -llinkes_a_library -o Output file name MyProgram.cpp source file -Wall turns on (most)all warnings In MSVC++2010, which I assume is still similar to 2015 in enough ways to be useful, you set the Project properties by right-clicking on the project in the solution explorer and select the Properties sub-menu. Then you go to the entry on the left for VC++ directories - you'll want to edit the values and add in the path to your include folder for allegro under include directories and then set the library directories to your lib folder. Then in the Linker -> Input tab, select Additional dependencies and edit it and add the .lib files you're using. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Timothy Wilson
Member #16,093
October 2015
|
Thanks, will try today and will post results. |
|