Re: [AD] mingw vc7 make bug? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
At 07:23 PM 11/09/2003 +0200, you wrote:
> seems the problem is that the MSVCDIR or (upper/lower case
> alternative) sets the path in vcvars32.bat
> with spaces, the trick is to edit the vcvars32.bat to the mangled 8.3
> format //progr~01/ etc.
Yes, of course, we already know of this problem and we must detect it in the
makefile. That's why I asked you to confirm that MSVCDIR is not set, but
only MSVCDir.
yes, it appears to be MSVCDir
here is my vcvars32.bat (also includes my fix)
---snippet begins----
@SET VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE
@SET VCINSTALLDIR=C:\PROGRA~1\MICROS~1.NET
@rem aj commented this out, replaced it with the 8.3 version (above this line)
@rem so that mingw's make can compile allegro
@rem @SET VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio .NET
@SET FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
@SET FrameworkVersion=v1.0.3705
@SET FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK
@rem Root of Visual Studio common files.
@if "%VSINSTALLDIR%"=="" goto Usage
@if "%VCINSTALLDIR%"=="" set VCINSTALLDIR=%VSINSTALLDIR%
@rem
@rem Root of Visual Studio ide installed files.
@rem
@set DevEnvDir=%VSINSTALLDIR%
@rem
@rem Root of Visual C++ installed files.
@rem
@set MSVCDir=%VCINSTALLDIR%\VC7
@rem
@echo Setting environment for using Microsoft Visual Studio .NET tools.
@echo (If you also have Visual C++ 6.0 installed and wish to use its tools
@echo from the command line, run vcvars32.bat for Visual C++ 6.0.)
@rem
@REM %VCINSTALLDIR%\Common7\Tools dir is added only for real setup.
@set
PATH=%DevEnvDir%;%MSVCDir%\BIN;%VCINSTALLDIR%\Common7\Tools;%VCINSTALLDIR%\Common7\Tools\bin\prerelease;%VCINSTALLDIR%\Common7\Tools\bin;%FrameworkSDKDir%\bin;%FrameworkDir%\%FrameworkVersion%;%PATH%;
@set
INCLUDE=%MSVCDir%\ATLMFC\INCLUDE;%MSVCDir%\INCLUDE;%MSVCDir%\PlatformSDK\include\prerelease;%MSVCDir%\PlatformSDK\include;%FrameworkSDKDir%\include;%INCLUDE%
@set
LIB=%MSVCDir%\ATLMFC\LIB;%MSVCDir%\LIB;%MSVCDir%\PlatformSDK\lib\prerelease;%MSVCDir%\PlatformSDK\lib;%FrameworkSDKDir%\lib;%LIB%
@goto end
:Usage
@echo. VSINSTALLDIR variable is not set.
@echo.
@echo SYNTAX: %0
@goto end
:end