Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Allegro compiling Probleme

Credits go to LennyLen for helping out!
This thread is locked; no one can reply to it. rss feed Print
Allegro compiling Probleme
Fredyson
Member #10,173
September 2008

I want to compile Allegro with MinGW. I've installed MinGW in the folder c:\mingw and allegro to the folder c:\mingw\allegro
When I trie to compiele i write fix mingw32 then comes:
5 times configuring
and then Done.

Then when i make mingw32-make comes file cannot found.???
Do i have to extract the allegro files into the bin folder of MinGW ?

I hope my English isn't too bad

OnlineCop
Member #7,919
October 2006
avatar

You'll need some environment variables setup, first of all.

MINGDIR=C:\mingw

I think I've also needed to use:

UNIX_TOOLS=1 (or something like that) so it would use the built-in "copy" instead of trying to run "copy.exe" and not finding it.

On Win9x, this can be put in your c:\autoexec.bat file. In XP and Vista, you can go to System Properties, click the Advanced tab, then "Environment Variables" button near the bottom-left. The top half is for your current user login only, the bottom half affects everyone who logs onto the computer (all users).

Also make sure that somewhere in your PATH environment, you have PATH=C:\mingw\bin in it.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Post a transcript of the errors you get when running mingw32-make.

Environment setup from a command line :

set MINGDIR=c:\mingw
set PATH=c:\mingw\bin;%PATH%

cd /d c:\mingw\allegro

fix.bat mingw32

mingw32-make
mingw32-make install

Look at the text file mingw32.txt in the c:\mingw\allegro\docs\build\ folder.

Fredyson
Member #10,173
September 2008

I've already done that things.
Everytihng is okay. But when I write mingw32-make comes :
Der Befehl "mingw32_make"ist entweder falsch geschrieben oder konnte nicht gefunden werden.

And I made that with Path and so.

EDIT: wehn I make gcc -v under c:\mingw to test the instalation comes the same like above.
But if I make c:\mingw\bin there comes the things like in every tutorial

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Fredyson
Member #10,173
September 2008

How can i make a transcript in dos ?

LennyLen
Member #5,313
December 2004
avatar

Go to the command prompt's properties and turn Quick Edit on. Then select the text you want to copy with the left mouse button and right clcik once it's been selected to copy it.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Fredyson
Member #10,173
September 2008

By the way I installed it on D because i had no mor free
09.09.2008 09:43 <DIR> .
09.09.2008 09:43 <DIR> ..
05.09.2004 01:43 428.544 addr2line.exe
05.09.2004 01:43 397.824 ar.exe
05.09.2004 01:45 600.064 as.exe
21.09.2004 10:13 90.624 c++.exe
05.09.2004 01:44 428.032 c++filt.exe
21.09.2004 10:14 89.600 cpp.exe
05.09.2004 01:43 464.384 dlltool.exe
05.09.2004 01:44 27.136 dllwrap.exe
21.09.2004 10:13 90.624 g++.exe
21.09.2004 10:13 91.648 g77.exe
21.09.2004 10:15 88.064 gcc.exe
21.09.2004 10:13 16.025 gccbug
21.09.2004 10:13 26.112 gcov.exe
21.09.2004 10:07 670.720 gnat.exe
21.09.2004 10:06 561.664 gnatbind.exe
21.09.2004 10:06 19.968 gnatbl.exe
21.09.2004 10:06 210.432 gnatchop.exe
21.09.2004 10:07 673.280 gnatclean.exe
21.09.2004 10:07 317.440 gnatdll.exe
21.09.2004 10:07 340.992 gnatfind.exe
21.09.2004 10:07 66.048 gnatkr.exe
21.09.2004 10:07 231.424 gnatlink.exe
21.09.2004 10:07 500.224 gnatls.exe
21.09.2004 10:07 1.060.864 gnatmake.exe
21.09.2004 10:07 647.680 gnatmem.exe
21.09.2004 10:07 593.408 gnatname.exe
21.09.2004 10:07 373.760 gnatprep.exe
21.09.2004 10:07 339.968 gnatxref.exe
21.09.2004 10:07 524.288 gpr2make.exe
21.09.2004 10:07 257.536 gprcmd.exe
05.09.2004 01:45 489.472 gprof.exe
05.09.2004 01:45 642.048 ld.exe
21.09.2004 10:13 90.624 mingw32-c++.exe
21.09.2004 10:13 90.624 mingw32-g++.exe
21.09.2004 10:15 88.064 mingw32-gcc-3.4.2
21.09.2004 10:15 88.064 mingw32-gcc.exe
15.05.2005 08:59 1.069.568 mingw32-make.exe
13.01.2005 22:19 15.960 mingwm10.dll
05.09.2004 01:44 439.296 nm.exe
05.09.2004 01:43 571.392 objcopy.exe
05.09.2004 01:43 624.128 objdump.exe
05.09.2004 01:43 397.824 ranlib.exe
05.09.2004 01:44 196.608 readelf.exe
05.09.2004 01:43 382.976 size.exe
05.09.2004 01:43 382.464 strings.exe
05.09.2004 01:44 571.392 strip.exe
05.09.2004 01:43 473.600 windres.exe
47 Datei(en) 16.842.481 Bytes
2 Verzeichnis(se), 73.052.553.216 Bytes frei

D:\mingw\bin>set
ALLUSERSPROFILE=C:\Dokumente und Einstellungen\All Users
APPDATA=C:\Dokumente und Einstellungen\Johannes\Anwendungsdaten
CLASSPATH=.;C:\Programme\Java\jre1.6.0_05\lib\ext\QTJava.zip
CommonProgramFiles=C:\Programme\Gemeinsame Dateien
COMPUTERNAME=BÜRO
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Dokumente und Einstellungen\Johannes
LOGONSERVER=\\BÜRO
MINGDIR=D:\mingw
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
PATH=D:\ mingw\ bin;D:\mingw\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0401
ProgramFiles=C:\Programme
PROMPT=$P$G
QTJAVA=C:\Programme\Java\jre1.6.0_05\lib\ext\QTJava.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOKUME~1\Johannes\LOKALE~1\Temp
TMP=C:\DOKUME~1\Johannes\LOKALE~1\Temp
USERDOMAIN=BÜRO
USERNAME=Johannes
USERPROFILE=C:\Dokumente und Einstellungen\Johannes
VS80COMNTOOLS=D:\Programme\Microsoft Visual Studio 8\Common7\Tools\
windir=C:\WINDOWS

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Your PATH environment variable is set incorrectly. Close the console and open a new instance of it. Don't use spaces between the sub directories and make sure to use a semi-colon at the end of the directory for d:\mingw\bin; when you add it to your path.

From there type :

set MINGDIR=d:\mingw
set PATH=d:\mingw\bin;%PATH%

cd /d d:\mingw\allegro

fix.bat mingw32

mingw32-make
mingw32-make install

Fredyson
Member #10,173
September 2008

thx. Now it is compiling:D
EDIT: It's finished.
you are the best;)

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Fredyson
Member #10,173
September 2008

I've got another Question.
How can i compile a programm ? Because i wrote one before.
g++ -o file12_3.exe file12_3.cpp -lalleg . That i must write. But wll I have to write any folder in front of it ?

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

The easiest way to compile from the command line is to use a batch script that sets up your environment and have it run when you open the command console.

First write the script -

SetupMinGW.bat

set MINGDIR=d:\mingw
set PATH=d:\mingw\bin;%PATH%

Create a new shortcut to your command line and put it on your desktop / quick launch bar / wherever you prefer it.
Right click the new shortcut and select properties. In the target string, add this to the end :

/k path_to_startup_script\SetupMinGW.bat

and click okay. Now when you click on the new shortcut your script will be run and your environment setup to compile with MinGW.

Quote:

That i must write. But wll I have to write any folder in front of it ?

If you compile from the directory the files are in then you won't need to use the full path to the files. If you need to add a directory to the include file search directory list use the compiler flag -I. If you need to add a search directory for library files to link against, use the -L flag.

Fredyson
Member #10,173
September 2008

thx

Go to: