Jump to content
  • Advertisement
Sign in to follow this  

I need help installing AllegroGL.

This topic is 4702 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, I need some serious help with anyone familiar with allegro and allegroGL installation with MSVC7 (2003). First off, I have allegro 4.0.3 installed with the help of a second package I downloaded seperate of the source that had msvcmake.bat. So I probably wouldnt know how to install it the way I'm supposed to. Now, it's the allegroGL thats causing me to rip my hair out. I'll give a step by step of what I'm doing, and I'm sure anyone who is familiar with this will know what I'm doing wrong. Using Visual C++ 7 (2003) on Windows XP. I do have Dev-C++ installed but I never use it. The allegro I have in right now is 4.0.3 and the AllegroGL I'm trying to install is 0.2.4. Step 1, I do a run->cmd and drag/drop vsvars32.bat from my vc7/bin directory to the cmd window and get the message "Setting environment up for using Microsoft Visual Studios .NET 2003 tools", seems thats what is supposed to happen. Next, right from the readme.txt Much like making Allegro, first run 'fix msvc', followed my `make' to build the library in optimised mode, then `make install' to install the library and header file in your MSVC directory. For a debugging version, add `DEBUGMODE=1' to the last two command line If you are using Mingw for GNU make, then you may need to run `mingw32-make' instead of `make'. So I type in 'fix msvc' and get "Done! Now run make to start the compilation".... great... except this is where I'm stuck. Typing in 'make' only gives me a 'not recognized as an internal or external command' error. I cannot find ANY information on how this section works, what I need, and what I have to do for it to work. So I need help, what do I need to do to get these 'make' commands working? Do I need to download or install anything? If so, I may need non-cryptic instructions as I'm not used to anything dos. Any help is GREATLY appreciated, I'm so frustrated with this and the lack of finding any answers through searches makes me feel like I'm missing some super simple undocumented step.

Share this post


Link to post
Share on other sites
Advertisement
The last time something like this came up, there was an overwhelming suggestion made to use Allegro CC. It's basically Allegro for a Windows install. When you click on the Files page, it lists a few packages under "Binary" that you can download and go with. If you still want to build from source the source is at the top and there are instructions at the bottom for your IDE as well. Give that a quick try to get Allegro up and running. It is what I did and took me a matter of minutes [smile] Good luck!

Share this post


Link to post
Share on other sites
Yep, I'm using allegro from allegro.cc and all is fine. But it's the AllegroGL (so I can use OpenGL for my games) that I'm having trouble.

I did a computer search and found a make.exe in dev-cpp\bin and it did infact appear to compile, though using an allegroGL example crashes after I run it (compiled/linked fine after I included the libraries). So I'm probably still doing something way off.

Share this post


Link to post
Share on other sites
Went and downloaded Mingw for the latest mingw32-make.exe, this is the dos log of me trying to install allegroGL. As you can see, it's getting errors compiling, I dont know what to do (or what I'm doing wrong). Any ideas?


C:\>cd alleggl

C:\alleggl>"C:\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat"

C:\alleggl>"C:\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat"
Setting environment for using Microsoft Visual Studio .NET 2003 tools.
(If you have another version of Visual Studio or Visual C++ installed and wish
to use its tools from the command line, run vcvars32.bat for that version.)

C:\alleggl>fix msvc

Configuring AllegroGL for MSVC...
Done! Now run make to start the compilation.

C:\alleggl>C:\MinGW\bin\mingw32-make.exe
cl -c src/alleggl.c @_tmp.arg -MD -W3 -Ox -Gs -GF -GA -G5 -nologo
alleggl.c
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(8) : warnin
g C4013: 'install_allegro_gl' undefined; assuming extern returning int
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(14) : warni
ng C4013: 'allegro_gl_set' undefined; assuming extern returning int
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(14) : error
C2065: 'AGL_Z_DEPTH' : undeclared identifier
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(15) : error
C2065: 'AGL_COLOR_DEPTH' : undeclared identifier
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(16) : error
C2065: 'AGL_SUGGEST' : undeclared identifier
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(19) : error
C2065: 'GFX_OPENGL_WINDOWED' : undeclared identifier
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(22) : warni
ng C4013: 'glClear' undefined; assuming extern returning int
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(22) : error
C2065: 'GL_COLOR_BUFFER_BIT' : undeclared identifier
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(22) : error
C2065: 'GL_DEPTH_BUFFER_BIT' : undeclared identifier
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(25) : warni
ng C4013: 'glMatrixMode' undefined; assuming extern returning int
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(25) : error
C2065: 'GL_MODELVIEW' : undeclared identifier
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(26) : warni
ng C4013: 'glLoadIdentity' undefined; assuming extern returning int
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(27) : warni
ng C4013: 'glFrustum' undefined; assuming extern returning int
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(30) : warni
ng C4013: 'glBegin' undefined; assuming extern returning int
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(30) : error
C2065: 'GL_QUADS' : undeclared identifier
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(31) : warni
ng C4013: 'glColor3ub' undefined; assuming extern returning int
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(32) : warni
ng C4013: 'glVertex3f' undefined; assuming extern returning int
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(36) : warni
ng C4013: 'glEnd' undefined; assuming extern returning int
C:\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\gl\GL.h(39) : warni
ng C4013: 'allegro_gl_flip' undefined; assuming extern returning int
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(6) : error C2059: syntax error :
','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(6) : error C2143: syntax error :
missing ')' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(6) : error C2143: syntax error :
missing '{' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(6) : error C2143: syntax error :
missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(6) : error C2059: syntax error :
')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(6) : error C2059: syntax error :
';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(7) : error C2059: syntax error :
','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(7) : error C2143: syntax error :
missing ')' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(7) : error C2143: syntax error :
missing '{' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(7) : error C2143: syntax error :
missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(7) : error C2059: syntax error :
')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(7) : error C2059: syntax error :
';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(8) : error C2059: syntax error :
','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(8) : error C2143: syntax error :
missing ')' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(8) : error C2143: syntax error :
missing '{' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(8) : error C2143: syntax error :
missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(8) : error C2059: syntax error :
')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(8) : error C2059: syntax error :
';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(9) : error C2059: syntax error :
','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(9) : error C2143: syntax error :
missing ')' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(9) : error C2143: syntax error :
missing '{' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(9) : error C2143: syntax error :
missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(9) : error C2059: syntax error :
')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(9) : error C2059: syntax error :
';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(11) : error C2143: syntax error
: missing ')' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(11) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(11) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(11) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(12) : error C2143: syntax error
: missing ')' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(12) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(12) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(12) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(13) : error C2143: syntax error
: missing ')' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(13) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(13) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(13) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(14) : error C2059: syntax error
: ','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(14) : error C2143: syntax error
: missing ')' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(14) : error C2143: syntax error
: missing '{' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(14) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(14) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(14) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(16) : error C2059: syntax error
: ','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(16) : error C2143: syntax error
: missing ')' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(16) : error C2143: syntax error
: missing '{' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(16) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(16) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(16) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(17) : error C2059: syntax error
: ','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(17) : error C2143: syntax error
: missing ')' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(17) : error C2143: syntax error
: missing '{' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(17) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(17) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(17) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(22) : error C2059: syntax error
: ','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(22) : error C2143: syntax error
: missing ')' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(22) : error C2143: syntax error
: missing '{' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(22) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(22) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(22) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(23) : error C2059: syntax error
: ','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(23) : error C2143: syntax error
: missing ')' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(23) : error C2143: syntax error
: missing '{' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(23) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(23) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(23) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(25) : error C2059: syntax error
: ','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(25) : error C2143: syntax error
: missing ')' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(25) : error C2143: syntax error
: missing '{' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(25) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(25) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(25) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(27) : error C2059: syntax error
: ','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(27) : error C2143: syntax error
: missing ')' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(27) : error C2143: syntax error
: missing '{' before 'const'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(27) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(27) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(27) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(30) : error C2143: syntax error
: missing ')' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(30) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(30) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(30) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(31) : error C2143: syntax error
: missing ')' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(31) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(31) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(31) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(32) : error C2143: syntax error
: missing ')' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(32) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(32) : error C2059: syntax error
: ')'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(32) : error C2059: syntax error
: ';'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(33) : error C2143: syntax error
: missing ')' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(33) : error C2143: syntax error
: missing '{' before '*'
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(33) : error C2059: syntax error
: ','
c:\alleggl\include\allegrogl\GLext\gl_ext_api.h(33) : fatal error C1003: error c
ount exceeds 100; stopping compilation
C:\MinGW\bin\mingw32-make.exe: *** [obj/msvc/release/alleggl.obj] Error 2

C:\alleggl>

Share this post


Link to post
Share on other sites
Why did you start using the MingW make command? Either use vcvars32.bat and make (for Visual Studio) or don't use it, and use mingw32-make. I expect that mixing these is what's giving you the problem here.

Share this post


Link to post
Share on other sites
You are probably using the allegro 4.2 betas right? There have been some internal changes to allegro that have broken the alleggl library: either download the latest alleggl cvs from sourceforge (recommended) or downgrade the allegro library (_not_ recommended).

If you wish, I can send you last month's alleggl cvs, which worked for me.

EDIT: @Kylotan: No, allegro's and alleggl's build system uses the mingw32-make, not the msvc nmake. However, a msvc project is now included with allegro (and will, probably, also be included with the next alleggl distribution).

Share this post


Link to post
Share on other sites
Fiddler, maybe you missed my point? The output SirSmoke posted above shows that he started off using the MSVC commands (eg. vcvars), and then ran the mingw make program at the end, which ended up using MSVC, perhaps as a result of running vcvars32.bat first.

Share this post


Link to post
Share on other sites
I have given up trying to get allegro installed, and am now giving ClanLib a try. Getting that installed was awsome, it actually had a VC++ workspace to compile everything which just made me feel like I'm using something less dated, but allegro did completely mess something up and I couldnt compile anything relating to GL so I had to reinstall VS.NET but now I have ClanLib all setup.

Learning it seems like it may be trickier, havent seen any tutorials yet that arent using some older version that wont compile, though the examples are useful. Not 100% educated on OOP yet, but from what I see it will handle everything I need once I learn how to use it, while getting 3d hardware acceleration out of 2d graphics :)

Share this post


Link to post
Share on other sites
Well, you can do what I did..., change to SDL..., much better speed and control over things..., haven't seen any code with ClanLib, but SDL is C, not C++, so, it shouldn't be as hard to learn ....

Any way..., good luck!

Haora

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!