![]() |
|
Installing Allegro On Vista |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
I encountered a few hiccups while installing Allegro on Windows Vista. Everything compiled fine for both dynamically and statically linked versions of Allegro for the debug , optimised , and profiling versions of the Allegro Library. I did have a few problems with the installation though , nothing too serious. When I was installing Allegro , make install failed to copy the allegro libraries to the Windows\System32 folder while installing on Vista for the dynamically linked debug , optimized , and profiling versions of Allegro. Apparently in Vista they've made some sort of provision about copying things to the Windows\System32 folder so it denied access to copy into those folders. Allegro compile\install log on Windows Vista
-------------------------------------------- c:\mingw\allegro\lib\mingw32>copy .*.dll c:\Windows\System32 .\alld42.dll Access is denied. .\alleg42.dll Access is denied. .\allp42.dll Access is denied. 0 file(s) copied. c:\mingw\allegro\lib\mingw32>
---------------------------------------------- [Separate side topic] 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 |
Milan Mimica
Member #3,877
September 2003
![]() |
Quote: Even then , I had to give administrator permission before it would copy them and then I had to say it was okay to continue again. Vista is a little paranoid , I think. It's what all other systems do for ages. Isn't there something like "su" on unix, to run a program from a cdm line as another user? "runas"?
-- |
Matthew Leverton
Supreme Loser
January 1999
![]() |
I would disable UAC if I were you. It will just annoy you to no end. Quote: Just a note in case anyone else encounters that at some point. It's well known that MinGW is broken under Vista. Adjusting the path fixes most things, but you still cannot do things such as compile files on secondary drives. |
Evert
Member #794
November 2000
![]() |
I'm curious to know what changed in the way Vista worked to how XP worked that would cause such seemingly random breakage in MinGW while other programs keep working. That aside though, Quote: Adjusting the path fixes most things, but you still cannot do things such as compile files on secondary drives. I did a quick google, and according to this forum post linked from this wiki article it does work, at least from Code::Blocks. Is their setup different or is this one of those cases where things randomly work for some people but not for others? |
Elias
Member #358
May 2000
|
Trent also has been using mingw for developing Allegro 5 for months, so it can't be totally broken. -- |
BAF
Member #2,981
December 2002
![]() |
Quote: I'm curious to know what changed in the way Vista worked to how XP worked that would cause such seemingly random breakage in MinGW while other programs keep working. IIRC, they were relying on something with undefined outcome. MS fixed a bug or something, and it broke MinGW. |
Matthew Leverton
Supreme Loser
January 1999
![]() |
I didn't say it was totally broken. The path system is broken due to a horrible design by the MinGW people. Quote: The first problem I encountered was that the built-in paths within the mingw environment were no longer working. This is an actual mingw bug that has been tracked down to a change in the way the Microsoft standard C libraries handle invalid parameters. Older versions of the DLL would not check invalid parameters and go down potentially untested code paths with them. The versions in Vista do stricter parameter checking. Some calls made by the mingw tools pass invalid parameters to one of the functions and fail, causing the internal paths to quit working. It's possible to work around it by adding extra files to the paths, by copying MinGW libraries all over the place, and other annoyances. Some of these things you may get for free from an IDE (or they might even be updated to work around the MinGW bug), so you might not notice all the problems. |
ImLeftFooted
Member #3,935
October 2003
![]() |
The title's desires said: Installing Allegro On Vista ..
It can't be done! There is no way! |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Milan said: Isn't there something like "su" on unix, to run a program from a cdm line as another user? "runas"? The cmd line interpreter I was installing Allegro from was started from an Administrator account , apparently it doesn't have the same permissions as explorer. Matthew said: I would disable UAC if I were you. It will just annoy you to no end.
What does UAC stand for? Is there a control panel setting for it somewhere? Evert's link to a Code::Blocks wiki article said: The problem here actually is, that MinGW is unable to find its helper executeables, in this case cc1plus.exe. To fix this go to your "Settings" -> "Compiler and Debugger" -> "Toolchain executeables" -> "Additional paths" and add there the Directory "C:\MinGW\libexec\gcc\mingw32\MinGW-Version" where MinGW-Version is the Version of MinGW you are using When I got Code::Blocks installed and tried to compile a simple c or c++ source file this is the same error and same solution that I used to fix it. 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 |
Matthew Leverton
Supreme Loser
January 1999
![]() |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Thanks for the informative link , it'll be useful. 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 |
Ron Novy
Member #6,982
March 2006
![]() |
UAC? ---- |
Arthur Kalliokoski
Second in Command
February 2005
![]() |
Quote:
UAC? M$ bought them out and rebadged it trying to hide the fact that they didn't develop the gateways to hell themselves. They all watch too much MSNBC... they get ideas. |
|