[gecode-users] Adventures in installation

Christian Schulte cschulte at kth.se
Thu Jan 17 15:23:10 CET 2008


Dear David,

It's not that hard. Either do as I said in one of my previous mails (copied
again below) or do as discussed earlier on this list:
	- start up the commandline thing that comes with MSVC (it has a
separate entry in your start menu)
	- then from that start bash (goto the Cygwin\bin dir then start
bash.exe)

Or, if you like neither, edit the cygwin.bat file so that it includes the
vcvars32.bat file from the MSVC distro.

The catch is that setting the PATH is not sufficient, you need much more
than that, please see below.

Christian


Here we go: Snip and add to your .bashrc and start bash again
>>>
export FrameworkDir="c:\\WINDOWS\\Microsoft.NET\\Framework"
export FrameworkVersion="v2.0.50727"
export Framework35Version=v3.5
export WindowsSDK="c:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A"

export VSINSTALLDIR="c:\\Program Files\\Microsoft Visual Studio 9.0"
export VCINSTALLDIR="c:\\Program Files\\Microsoft Visual Studio 9.0\\VC"
export DevEnvDir="$VSINSTALLDIR\\Common7\\IDE"

export CygFrameworkDir="/cygdrive/c//WINDOWS/Microsoft.NET/Framework"
export CygWindowsSDK="/cygdrive/c//Program Files/Microsoft
SDKs/Windows/v6.0A"

export CygVSINSTALLDIR="/cygdrive/c//Program Files/Microsoft Visual Studio
9.0"
export CygVCINSTALLDIR="/cygdrive/c//Program Files/Microsoft Visual Studio
9.0/VC"
export CygDevEnvDir="$CygVSINSTALLDIR\\Common7\\IDE"

export
PATH="$CygDevEnvDir:$CygVCINSTALLDIR/BIN:$CygVSINSTALLDIR/Common7/Tools:$Cyg
VSINSTALLDIR/Common7/Tools/bin:$CygVCINSTALLDIR/PlatformSDK/bin:$CygWindowsS
DK/bin:$CygFrameworkDir/$FrameworkVersion:$CygVCINSTALLDIR/VCPackages:$PATH"
export INCLUDE="$VCINSTALLDIR\\INCLUDE;$WindowsSDK\\include;$INCLUDE"
export LIB="$VCINSTALLDIR\\LIB;$WindowsSDK\\lib;$LIB"
export LIBPATH="$FrameworkDir\\$FrameworkVersion;$VCINSTALLDIR\\LIB"
<<<


--
Christian Schulte, www.ict.kth.se/~cschulte/


-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of David Barton
Sent: Thursday, January 17, 2008 3:08 PM
To: cschulte at kth.se; users at gecode.org
Subject: Re: [gecode-users] Adventures in installation

Christian, thank you for your time in writing.  I have downloaded the MSVC 
as you suggested, and am one frustrated puppy (as described below) which is 
why this Email is late.  You wrote:

> As said, I use cygwin every day but together with the freely available
> Express Edition of Microsoft's Visual C++ compiler. It works as follows:
> download, install, set up the environment that cygwin can pick up the
> necessary environment variables for the commandline version of the 
> compiler
> (easy, has been discussed before on this list) and then ./configure CC=cl
> CXX=cl (the documentation discusses compiling for MSVC).
>
> The benefits are enormous. Compilation is much much faster and so is the
> generated code.
>
> I stopped using gcc on cygwin completely as it is so outdated and any
> improvement is not in sight. But I have to admit that even if a recent gcc
> would be available on cygwin I still would use MSVC.

Very well.  I am a believer!  I downloaded MSVC, and installed it.  Full of 
confidence, I run .configure CC=cl CXX=cl.

It fails.

Why does it fail?  Cygwin cannot find cl.  Ah, but the installation of MSVC 
went perfectly.  Why can cygwin not find cl, I ask?  I start up a command 
shell.  The cmd command shell cannot find cl either.  Something is amiss!  I

start up their fancy user interface.  It has a tool for starting up a Visual

C++ command shell.  I do so, which looks like an ordinary command window. 
Surprise!  It finds cl just fine.  I examine its path.  It has a bunch of 
extra things on its path that the ordinary path does not.  I place these on 
the default path.  Now cygwin can find cl.  Success, I think.

But I'm wrong.

Now .configure still fails, because cl cannot find the standard libraries 
(specifically, it fails on LIBCMT.LIB).  Somehow the environment variables 
(or something or other) is still not set correctly.  Only this time it is 
not as obvious as the path, but is some variable (or something or other) 
that I know not of, and therefore cannot check.

Obviously, this is a new version of MSVC.  I cannot find where they will 
allow me to download an old version, or what I can do to avoid the lovely 
paternalistic Microsoft setting of environment variables (or something or 
other) that disallows batch routines outside of their little environment.

Is there something I can do to address this situation?

Have I mentioned this has added to my dislike of Microsoft?  Even when it 
gives out free software?

David L. Barton
Director, Rosetta CoE
EDAptive Computing, Inc.
1245-G Lyons Road, Dayton, OH 45458
(937) 433-0477

CONFIDENTIALITY NOTICE: The information transmitted is intended only for the

person or entity to which it is addressed and may contain company 
proprietary and/or privileged material. Any review, retransmission, 
dissemination or other use of, or taking of any action in reliance upon, 
this information by persons or entities other than the intended recipient is

prohibited. If you received this in error, please contact the sender and 
destroy any copies of this document. 



_______________________________________________
Gecode users mailing list
users at gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users





More information about the gecode-users mailing list