Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » I'm scared of MinGW, mommy!

This thread is locked; no one can reply to it. rss feed Print
 1   2 
I'm scared of MinGW, mommy!
23yrold3yrold
Member #1,134
March 2001
avatar

Too many "MinGW is giving me problems" posts here. Is it much trouble to get Allegro working with it? I downloaded the latest version and it works fine with my stadard C++ programs, but is Allegro hard to get up and running for it? Or is it enough to type
fixming
make
makeinstall
I like the idea of dll's and AllegGL, but at what price of time and sanity?

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Todd Cope
Member #998
November 2000
avatar

I followed the instructions in the readme and it worked perfectly for me. No problems.

23yrold3yrold
Member #1,134
March 2001
avatar

Which readme? Allegro's?

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Todd Cope
Member #998
November 2000
avatar

Yep. I just went step-by-step through the readme.mgw file.

Bob
Free Market Evangelist
September 2000
avatar

You should use Mingw 1.01. I just downloaded it, deleted the old Mingw dir (so I can do a fresh install), unzipped, then followed the instructions in allegro/readme.mgw and was able to compile Allegro within 10 minutes.
(it helps to have a high-speed connection to the net too )

--
- Bob
[ -- All my signature links are 404 -- ]

Bob
Free Market Evangelist
September 2000
avatar

Frankly, most of the Mingw related posts are due to people not reading the instructions, or trying to make Allegro work with DX8 SDK or a very old Mingw version, or an incomplete one.

--
- Bob
[ -- All my signature links are 404 -- ]

23yrold3yrold
Member #1,134
March 2001
avatar

I downloaded the latest DX (that'd be 8) and Dev-C++ a few weeks ago. Is the version of MinGW with Dev-C++ good enough, and can I not make Allegro using DX8? Can I even get DX7 anymore?

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Bob
Free Market Evangelist
September 2000
avatar

You can get the DX7 mini-SDK here.

I don't know which version DevC comes. Try doind gcc -v in the command prompt to see which version of gcc is being used.

--
- Bob
[ -- All my signature links are 404 -- ]

23yrold3yrold
Member #1,134
March 2001
avatar

gcc -v gives me DJGPP stats ;)

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

StevenVI
Member #562
July 2000
avatar

Remove your DJGPP directory from the path, and type it in your Dev-C++/bin directory.

-Steve

__________________________________________________
Skoobalon Software
[ Lander! v2.5 ] [ Zonic the Hog v1.1 ] [ Raid 2 v1.0 ]

23yrold3yrold
Member #1,134
March 2001
avatar

And what is "The Path"? I ran into the same term trying to get NASM working.

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Bob
Free Market Evangelist
September 2000
avatar

In Windows 95/98 or DOS, open your autoexec.bat file and look at the line: PATH = (something)
This "command" tells DOS where to find exectuables, so you don't have to type c:/progra~1/micros~2/progra~1/foo.exe.
If you're using Windows NT/2000/ME, it's in the Control Panel/System/Advanced/Environment.

--
- Bob
[ -- All my signature links are 404 -- ]

23yrold3yrold
Member #1,134
March 2001
avatar

Not really a help. I got MinGW by downloading Dev-C++, and the site says it's version MSCVRT 2.95.2-1. Must I use 1.01, or just not an older verison than that?

Hmm ... the Dev-C++ site says it can be used with Cygwin ... I wonder if I can use it for my Dreamcast work ...

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Bob
Free Market Evangelist
September 2000
avatar

Mingw is composed of several parts. The run time library (libc, or msvcrt in Windows) has a particular version number, gcc has another version, as as even another version, etc.

Mingw 1.01 is the package of all these different programs. Mingw 1.01 actually comes with gcc 2.95.3-5.

--
- Bob
[ -- All my signature links are 404 -- ]

23yrold3yrold
Member #1,134
March 2001
avatar

So am I good? Do I need to download a new MinGW and find a way to combine it with Dev-C++ (I hate running off command prompts, mostly because I can't make that work either)?

I asked in my first post "... at what price of time and sanity? " I think I'm getting my answer ....

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Bob
Free Market Evangelist
September 2000
avatar

I think you should update your version of Mingw. I don't know where DevC stores it, but you should be able to overwrite it with the newer build.

--
- Bob
[ -- All my signature links are 404 -- ]

23yrold3yrold
Member #1,134
March 2001
avatar

I'll give it a try. Then where do I install that DX 7 SDK? And after all that:
fixming
make
make install
will do it for me?

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Bob
Free Market Evangelist
September 2000
avatar

I think it's "fix mingw32" for 3.9.37+.

You should unzip the libraries (*.a) in mingw/lib, and the includes (*.h) in mingw/include.

--
- Bob
[ -- All my signature links are 404 -- ]

23yrold3yrold
Member #1,134
March 2001
avatar

Alright, I'll go find the latest MinGW and take a shot at installing it into Dev-C++. (crosses fingers) ....

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

23yrold3yrold
Member #1,134
March 2001
avatar

No dice. I tried overwriting all the MinGW stuff in Dev-C++ with the new stuff, and now it complains that cpp0.exe isn't in C:/Dev-C++/bin/, which it clearly is.

Well, it's officially crossed the line of aggrevation, so hell with it. Maybe I can get Dev-C++ to work with Cygwin; that'd make my DC programming easier.

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

George Foot
Member #669
September 2000

I hate integrated environments. :) It looks to me horribly like Dev-C++ is getting in the way here. I've found Mingw itself pretty simple to set up, from the readme.mgw instructions. That was a few versions ago, so I don't know if much has changed. I was following the Mingw32-only instructions (there were no Dev-C++ instructions back then I think), so perhaps that's why it worked better.

23yrold3yrold
Member #1,134
March 2001
avatar

Quote:

I hate integrated environments.

I can't get commands from the DOS prompt to work either. For DJGPP I mean. So no command line, and no IDE. Call me SOL ....

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Bob
Free Market Evangelist
September 2000
avatar

23yrold3yrold: What do you the command line doesn't work? Do you get a "bad command or file name" type of error? If so, then its your path; you need to make it point to the compiler's dirctory (as per the Mingw and DJGPP installation instructions).

--
- Bob
[ -- All my signature links are 404 -- ]

23yrold3yrold
Member #1,134
March 2001
avatar

When I installed DJGPP, I added those two lines to my Autoexec.bat. But I got "bad command or file name" last time I tried. But I tried again just now, and it worked OK. Go figure ::)

So if I installed the latest MinGW by itself so it ran off the DOS prompt, threw the DX7 libs in mingw/lib, threw the includes in mingw/include, did the fix/make/make, I'd be golden? Would that interfere with DJGPP (would I have to remove those lines from Autoexec.bat, or does mingw use different commands)? And as an added bonus, when I install Cygwin, is that going to provide similar problems? I think all 3 compilers are gcc ....

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Goodbytes
Member #448
June 2000
avatar

Bah. Don't install Cygwin just because you want Dev-C++. Really, I don't knwo what the problem is, I downloaded Dev-C++ and Allegro 3.9.37 and they work together perfectly. Just follow the instructions in readme.mgw... and make sure to really follow them ;) And by the way, cpp0.exe shouldn't be in your dev-c++ bin directory because cpp0.exe is a new program, found only AFAIK in the newest builds of gcc, which dev-c++ doesn't use. Also, make sure to make the Dev-C++ directory C:/DevCpp/ or something instead of C:/Dev-C++/, because the latter will interfere with some gcc tools(the '-'s confuse gcc).


--
~Goodbytes

 1   2 


Go to: