|
|
This thread is locked; no one can reply to it.
|
1
2
|
| Aother Problems building Allegro with MinGW |
|
Simondererste
Member #10,071
August 2008
|
I think this is a newb failure but i don't know how i could build allegro. C:\Programme\MeineProgramme\allegro>make Hope you can help me. |
|
Trent Gamblin
Member #261
April 2000
|
Use mingw32-make not make.
|
|
Simondererste
Member #10,071
August 2008
|
Don't work and by the way make works(only a copy of mingw23-make so it should) but i have tried both. Hope i get help soon. |
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Quote: process_begin: CreateProcess(NULL, gcc -dumpversion, ...) failed. Have you setup your PATH to include the <mingw>/bin directory? 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 |
|
Trent Gamblin
Member #261
April 2000
|
make isn't a copy of mingw32-make unless you copied it, which you shouldn't. Regular 'make' doesn't work under DOS command prompt, only in MSYS or Cygwin or another bash shell. mingw32-make is for the DOS prompt, and it doesn't work under bash.
|
|
Evert
Member #794
November 2000
|
Quote: make isn't a copy of mingw32-make unless you copied it, which you shouldn't. Regular 'make' doesn't work under DOS command prompt, only in MSYS or Cygwin or another bash shell. Huh? Quote:
C:\Programme\MeineProgramme\allegro>make
This used to be caused by having an incompatible version of sh.exe somewhere in the path. So check if you have an sh.exe somewhere in the path and try moving it out of the way and try again. I don't know if this still causes problems, but it's easily checked. |
|
Simondererste
Member #10,071
August 2008
|
@Trent Gamblin: I copied it but i used the mingw23-make too. But thanks for explanation. Thanks for helping me. -> deleted the whole Path and included only <mingw>/bin. Now this failure:process_begin: CreateProcess(NULL, gcc -dumpversion, ...) failed. is gone but i have still this problem: Der Befehl "C:\DOKUME~1\SIMON" ist entweder falsch geschrieben oder In English: The command "C:\DOKUME~1\SIMON" is either wrong spelled or couldn't be found. |
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Quote: -> deleted the whole Path and included only <mingw>/bin. Hopefully you only did that through a command console so the changes aren't permanent. Deleting your path means many files won't be found by your system when needed. You only want to add <mingw>/bin to your path, not replace everything with it. The directories are listed in search order - first in the list is the first directory searched. set PATH=c:\mingw\bin;%PATH% The semi-colon separates each directory from the next. As to your remaining error, I don't know. It's strange that running make would look for anything in the Documents and Settings folder unless you are trying to compile Allegro from there. 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 |
|
Simondererste
Member #10,071
August 2008
|
I have made a copy. It's basic to make backup if you work with a computer. |
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Quote: In the book is an instruction that i have followed but there is still this one failure. Why don't you do yourself a favor and read the instructions to compile Allegro that come with the source code instead. It's the file allegro\docs\build\mingw32.txt that is in the source code zip file. Unzip alleg42.zip to your <mingw> directory and unzip dx70_mgw.zip there as well. Then set the path properly by adding the <mingw>/bin directory to your path, not by replacing your path string with <mingw>/bin only. You also need to set the MINGDIR variable to your MinGW directory. set MINGDIR=c:\mingw
Quote: And i don't want to add <mingw>/bin because i have done it already but i want to eliminate the thing with the sh.exe. sh.exe doesn't even come with MinGW, at least not version 3.4.5 anyway. Isn't that just for Unix variants? 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 |
|
Simondererste
Member #10,071
August 2008
|
I have done most of that. I used dx80 and don't set MINGDIR. |
|
Jonatan Hedborg
Member #4,886
July 2004
|
Soo... how about doing what it says instead?
|
|
Simondererste
Member #10,071
August 2008
|
K i will try it again from the beginning hope i won't make a failure. |
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Quote: I used dx80 and don't set MINGDIR. dx80_mgw may work but I can't verify that it will. Regardless, the instructions for MinGW specify the use of dx70_mgw.zip instead. Not setting the MINGDIR will result in failure of the makefile as it is used for determining the locations of files during compilation. Using grep to ascertain references to MINGDIR in the makefile.mgw yields :
However, you haven't gotten the error regarding line 108 of makefile.mgw :
@echo Your MINGDIR environment variable is not set!
This leads me to believe that you haven't run this command before using mingw32-make : fix.bat mingw32
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 |
|
Simondererste
Member #10,071
August 2008
|
I ran fix.bat mingw32. If run fix.bat 32mingw again that comes up. Do i have to do something with it? C:\Programme\MeineProgramme\allegro>fix.bat 32mingw Usage: fix platform [--crlf] [--nomsvcpaths] Where platform is one of: The --crlf parameter is used to turn on LF to CR/LF conversion. |
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Lines 90-95 of makefile.all contain the only reference to gcc --dumpversion out of all the makefiles involved in building allegro on MinGW that I can find and it only calls that process if the suffix of MAKEFILE_INC is not one of (.be .dj .mgw .osx .qnx). Fix.bat
# -------- include platform-specific definitions --------
ifneq (,$(findstring $(suffix $(MAKEFILE_INC)),.be .dj .mgw .osx .qnx))
ifndef GCC_MTUNE
gcc_version = $(subst ., ,$(shell gcc -dumpversion))
Post a transcript of your console session including the result of the following commands and all the output that mingw32-make returned. set PATH echo %MINGDIR% type makefile Don't worry about the 'set PATH' command as it will only change the setting if you use an equals sign after the variable name. Without an equals sign it simply outputs its value.
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 |
|
Simondererste
Member #10,071
August 2008
|
C:\Programme\MeineProgramme\allegro>echo %MINGDIR% C:\Programme\MeineProgramme\allegro>type makefile
MAKEFILE_INC = makefile.mgw C:\Programme\MeineProgramme\allegro>mingw32-make C:\Programme\MeineProgramme\allegro> |
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Quote: C:\Programme\MeineProgramme\MinGW C:\Programme\MeineProgramme\allegro>type makefile The problem is that the allegro directory should be a sub directory of c:\Programme\MeineProgramme\MinGW. So move the allegro directory into \MinGW. C:\Programme\MeineProgramme\MinGW\allegro\mingw32-make
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 |
|
Simondererste
Member #10,071
August 2008
|
C:\Programme\MeineProgramme\MinGW\allegro>fix.bat mingw Same error. |
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Quote:
Der Befehl "C:\DOKUME~1\SIMON" ist entweder falsch geschrieben oder I just don't understand why it would need to look for anything in your Documents and Settings folder. Please post the results of the 'set' command by itself from a console window. set
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 |
|
Simondererste
Member #10,071
August 2008
|
It's a temp folder but not a normal folder can't find a direction C:\DOKUME~1\SIMON. It could be that it is hidden. The dir is found in the Temp/Tmp variable. C:\Dokumente und Einstellungen\Simon(noadmin)>set |
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
The quickest way to fix it is to exit your command shell and open a new one. That way, any temporary changes you've made to your PATH will be removed and you can verify this by using the set command again. If the entries are still there then you may need to take a look at your global system environment variables. The way I create my compiler setup is through a batch program run upon the start of the command console through a customized shortcut to cmd.exe - The full text of the shortcut target is : %SystemRoot%\system32\cmd.exe /k "c:\mingw\setupMinGW.bat" And this is what that batch file contains : @echo on @rem This command starts pathMinGW.bat which sets MINGDIR=C:\mingw and @rem sets PATH=c:\mingw\bin;%PATH% to use the MinGW compiler call c:\mingw\PathMinGW.bat @rem The second command runs my macros from the file MinGWmacros.bat call c:\mingw\MinGWmacros.bat cd /d c:\ctwoplus\progcode\allegro @rem call c:\scriptlearning\pathscript.bat cls @echo off So now whenever I need my compiling environment for MinGW setup, I just use the shortcut. The batch file specified with /k calls the other setup batch programs. One fixes the environment to use with MinGW and the other installs my macro shortcuts using doskey. Presto chango, ready to go. So in this fashion, you can customize and automate your environment setup and allow for more than one setup by using multiple shortcuts or calling setup batch scripts from a plain command console. Quote: It's a temp folder but not a normal folder can't find a direction C:\DOKUME~1\SIMON. It could be that it is hidden. The dir is found in the Temp/Tmp variable. Verify the directory exists, if it does then it may be a permissions problem with mingw32-make being denied access to create files there. Run the command console as an administrator and see if it changes anything. You'll have to run it as an administrator for 'mingw32-make install' to work properly as it needs to copy the dll files to your system32 folder. 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 |
|
Simondererste
Member #10,071
August 2008
|
I am admin on my pc the name is only a misunderstood from me as i installed it. Don't realy understood what you mean and what that should help me but i will have a look on it tomorrow it is a bit late. |
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Which version of Windows are you using? If you're on Vista and you have UAC (User Account Control) enabled, then even if you're logged in as an administrator, the command console will not be run as a process with administrative priveleges. You would have to right click on the shortcut to it and select 'Run As Administrator'. Quote: Don't realy understood what you mean and what that should help me but i will have a look on it tomorrow it is a bit late. These were the important parts - Quote: The quickest way to fix it (the abnormal PATH) is to exit your command shell and open a new one. That way, any temporary changes you've made to your PATH will be removed and you can verify this by using the set command again. If the extra entries are still there then you may need to take a look at your global system environment variables. Verify the directory exists, if it does then it may be a permissions problem with mingw32-make being denied access to create files there. Run the command console as an administrator and see if it changes anything. You'll have to run it as an administrator for 'mingw32-make install' to work properly as it needs to copy the dll files to your system32 folder. The rest of what I said was just to make setting up your MinGW environment more convenient for you, but that can be dealt with later. Until tomorrow then. 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 |
|
Trent Gamblin
Member #261
April 2000
|
Evert said: Huh? Just what I said. mingw32-make and the make you get with, for example, unxutils or cygwin are not compatible.
|
|
|
1
2
|