Allegro installation?

Started by
13 comments, last by Programming020195BRook 11 years, 7 months ago
Okay this is the problem, it cannot find allegro.h !

For example, I use: #include <allegro5/allegro.h> because I have my C/C++ General Include set to ->>>> C:\allegro-5.0.5\include

If you go into your include folder, you should see another folder which has your allegro.h file, mine happens to be allegro5.

I just downloaded the 5.0.7 version to check the folder, and it shows the file in allegro5.

Using: #include <allegro5/allegro.h> should work! So you must have set your direct wrong in your settings.

Type your directory address for the file instead. Should show this:
#include "C:\allegro-5.0.5\include\allegro5\allegro.h" (SOMETHING LIKE THIS) and remove: #include <allegro5/allegro.h>
GameDev Journal: http://www.gamedev.n...-rooks-journal/

OpenChess - 1.0 done!

Classic RPG #1 - Task 9 -> January 1st 2013
Advertisement
OMG you are awsome!

That worked ....on the first error. I have another error:


1>------ Build started: Project: AllegroTest2010, Configuration: Debug Win32 ------
1> main.cpp
1>c:\allegro\include\allegro5\allegro.h(26): fatal error C1083: Cannot open include file: 'allegro5/base.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
[/quote]

even thou I knew it would not work I tried to use an include directive for it ....... obviously it did not work.I am going to try googling it, but if anyone knows how to fix it I would appreciate you telling me.

@Black-Rook - Does this website have rep/karma if so how do i give it to you (or is that what the little arrows under your avatar is for?) Thank you so much, I'm glad to make progress on this, I was about to give up.
Okay what appears to have happened is that you've set your directories incorrectly. Just encase you didn't know, you must also reset your directory for each new project you create in your project settings. I would strongly suggest you make a project already setup with a generic main.cpp file, and just copy and past the whole project so you don't have to setup everything again. However, if you use a new version you will have to redo everything.
GameDev Journal: http://www.gamedev.n...-rooks-journal/

OpenChess - 1.0 done!

Classic RPG #1 - Task 9 -> January 1st 2013
ok, I think I got it. I am no longer getting those errors. I am instead getting


1>------ Build started: Project: test1Console, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
[/quote]

After a little googling it looks like I have to uninstall my vs 2010 and 2012 along with frameworks 4.0 and 4.5 and then re-install vs 2010 ..... the point is the code that is calling allegro is no longer underlined in red and no longer throwing an error (unless this new error for console apps is just taking precedence). Any way it looks like it will be work for my next day off. This issue was solved. Thanks everyone. Black-rook your a life saver


Edit: Actually I only had to install SP1 for VS 2010 and now it is working!!! I finally get to start my adventure in game programming! Thank you!!!
Yes, the 4.5 framework causes issues sadly. You can try the following though:

Set Generate Manifest to No, or you can disable incremental Linking. Under Project Properties -> Configuration Properties -> Linker (General) -> Enable Incremental Linking -> "No (/INCREMENTAL:NO)".

Hope this helps!

Edit: Yes, SP1 is also an option, sorry I forgot all about it.
GameDev Journal: http://www.gamedev.n...-rooks-journal/

OpenChess - 1.0 done!

Classic RPG #1 - Task 9 -> January 1st 2013

This topic is closed to new replies.

Advertisement