|
Allergo Installation Problems |
AdmiralStalfos19
Member #10,074
August 2008
|
Hey guys I'm new to this forum, and I'm having a problem installing Allegro, and I'd appreciate any help I can get. I'm using MSVC 9.0 and the version of Allegro I'm using is 4.9.3. Last time I tried using it, it came with this: |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Allegro 4.9.3 is an unfinished work in progress for the up coming Allegro 5.0. The latest release of the stable version of Allegro is 4.2.2. The link still isn't on the Allegro Files page, but here's a direct link to it : - Edit : The link doesn't work anymore - 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 |
AdmiralStalfos19
Member #10,074
August 2008
|
Edgar Reynaldo said: Allegro 4.9.3 is an unfinished work in progress for the up coming Allegro 5.0. Does that explain the missing files I found? (why did this have to include setup.exe? ) EDIT (now that I actually found the edit button): Oh and the link's broken. I just went into it and it came up with a 404... |
Thomas Fjellstrom
Member #476
June 2000
|
Quote: Does that explain the missing files I found? It might, but Allegro 5 will be fairly different from Allegro 4, and already its API and build system are different. So if you followed the normal procedure for Allegro 4, things just won't work. -- |
Trent Gamblin
Member #261
April 2000
|
If you really want to use "Allegro 5" now, it will work but you will need cmake to compile it. You should download it from svn and not use 4.9.3. There have been a lot of bugfixes and new features added since 4.9.3 was released. If you have any questions about getting it to compile with MSVC9, post them here.
|
AdmiralStalfos19
Member #10,074
August 2008
|
OK, I've downloaded the 2005 MSVC (8.0 I believe), and I also have DirectX SDK (June 2008) Then I followed the instructions from there The INSTRUCTIONS!! said: Before you can use the project files, you must first double-click on the /build/msvc/pre-build-msvc.bat file. Then open the Allegro project file and select Build / Batch Build from the menu. Select the versions you want to build and then press the Build button. They didn't tell me anything about THIS coming up after the build button: http://i302.photobucket.com/albums/nn112/Admiral_Stalfos19/pic.jpg?t=1218742293 Then I just saved it on the Desktop just to see what happened and it came up with 217 errors All of them (at least I think all of them) said this: The 217- ERRORS!! said: fatal error C1083: Cannot open include file: 'windows.h': No such file or directory I found the windows.h file at C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include. Is this where I was supposed to save the file? EDIT: Suppose not then... I tried putting it in there too and it didn't work. Where am I supposed to put this thing?? |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Your Original Post said: I'm using MSVC 9.0
Quote: OK, I've downloaded the 2005 MSVC (8.0 I believe), and I also have DirectX SDK (June 2008) Do you mean you've downloaded MSVC version 8.0 or the allegro binary package for MSVC 8.0? 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 |
AdmiralStalfos19
Member #10,074
August 2008
|
Both I believe, I just downloaded them |
Milan Mimica
Member #3,877
September 2003
|
Quote:
Then I followed the instructions from there ... Wrong instructions if you're trying 4.9.3. All instructions available for 4.9 are in readme_a5.txt. Quote: fatal error C1083: Cannot open include file: 'windows.h': No such file or directory Obviously C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include is not in your include path. Add it.
-- |
AdmiralStalfos19
Member #10,074
August 2008
|
Quote: Wrong instructions if you're trying 4.9.3 I'm not using that anymore, I've gone 4.2.2 as Edgar advised Quote: Obviously C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include is not in your include path. Add it. How am I supposed to add it? |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Quote:
Quote: The link still isn't on the Allegro Files page, but here's a direct link to it : EDIT (now that I actually found the edit button): Oh and the link's broken. I just went into it and it came up with a 404... That link worked a few days ago. I blame it on the gremlins. Quote: I'm not using that anymore, I've gone 4.2.2 as Edgar advised Okay, so you're using Microsoft Visual C++ version 8.0. Have you installed Service Pack 1 for MSVC 8 yet? Files page said: Microsoft Visual C++ 8.0 - zip, 7z, exe (Requires VC++ SP1)
After that, if you're building allegro from source, you can follow the build instructions on this page under the heading Project file : If you're using the binaries for MSVC 8 instead, follow this part of the same page I just linked to using the contents of the allegro folder from the zip file : Quote: Copy the files 1. Copy the contents of C:\allegro\include to C:\Program Files\Microsoft Visual Studio 8\VC\include
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 |
AdmiralStalfos19
Member #10,074
August 2008
|
OK, I think I got it installed properly now: Proof of my belief that I installed it properly said: 0 succeeded; 0 failed; 1 up-to-date; 0 skipped Build successful This was the program I was using to test it
It built OK, but this came up when I tried to run it. http://i302.photobucket.com/albums/nn112/Admiral_Stalfos19/pic2.jpg?t=1219176158 Any idea why? |
Edgar Reynaldo
Major Reynaldo
May 2007
|
In Allegro 4.2.2 the text_mode function and the textout_* functions have been deprecated in favor of the textout_*_ex functions. Trust the Allegro Manual over any books or tutorials.
Quote: 0 succeeded; 0 failed; 1 up-to-date; 0 skipped I think you should rebuild your project. Since it said 1 was up-to-date, that's just saying it didn't compile or link anything. When you put your code up on the forums, use the code tags for it. This will wrap long code into a scrollable area and format for easier reading. <code> Code goes here... </code>
Quote: It built OK, but this came up when I tried to run it. Any idea why? The program file doesn't exist or it's looking for it in the wrong location. 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 |
AdmiralStalfos19
Member #10,074
August 2008
|
Quote: The program file doesn't exist or it's looking for it in the wrong location. How am I supposed to create the file? |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Rebuild it? Make sure all your project settings are correct. 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 |
AdmiralStalfos19
Member #10,074
August 2008
|
I've rebuilt the program, and now I've got this: Quote:
------ Build started: Project: i, Configuration: Debug Win32 ------ Help |
|