hepmc - Rev 298
Subversion Repositories:
#-------------------------------------------------------------# running configure#-------------------------------------------------------------To build for Windows Visual C++, configure with CXX=cl CC=cl.Configure has an annoying habit of setting the -g flag, which isignored by Visual C++. To avoid this warning, use the following command:/full/path/to/configure --prefix=<install directory> CXX=cl CC=cl CXXFLAGS=#-------------------------------------------------------------# setup the compiler#-------------------------------------------------------------For the compilation under cygwin using VC++, you have to make sure thatthe PATH contains the path to the installation of Visual Studio.The safest way to do this, is to add VC to your Cygwin.bat file.Since it is possible to have several different versions of VC on the samemachine, we recommend keeping a generic Cygwin.bat and creating specialCygwinXXX.bat file for each compiler you want to use.Here is an example for VC9:@echo off@call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"@set PATH=%PATH%;C:\cygwin\binC:chdir C:\cygwin\binbash --login -iTwo lines, "@call..." and "@set...", have been added to the default Cygwin.bat.#-------------------------------------------------------------# add information to the environment#-------------------------------------------------------------You need to tell VC where to find libraries and include files,even if the location is specified in your Makefile. Here is anexample for CLHEP:export INCLUDE="C:/cygwin/home/clhep/1.9.2.2/include";${INCLUDE}export LIB="C:/cygwin/home/clhep/1.9.2.2/lib";${LIB}#-------------------------------------------------------------# setting the path explicitly for VC 7.1#-------------------------------------------------------------For the compilation under cygwin using VC 7.1 (Version 13.10.3077)you have to make sure that the PATH contains the path to theinstallation of Visual Studio .NET 2003. This example also addsCLHEP to the path. CLHEP is not required, but you may need it for yourown purposes:export VSPATH="/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003"export PATH="/cygdrive/c/WINNT/Microsoft.NET/Framework/v1.1.4322":${PATH}export PATH="${VSPATH}/SDK/v1.1/bin":${PATH}export PATH="${VSPATH}/Common7/Tools/bin":${PATH}export PATH="${VSPATH}/Common7/Tools/bin/prerelease":${PATH}export PATH="${VSPATH}/Common7/Tools/":${PATH}export PATH="${VSPATH}/Vc7/bin":${PATH}export PATH="${VSPATH}/Common7/IDE":${PATH}The compiler also needs the following variables set up (andas these are interpreted by the compiler, they have to be in"windows-syntax"):export INCLUDE="C:/cygwin/home/clhep/1.9.2.2/include;c:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include"export LIB="C:/cygwin/home/clhep/1.9.2.2/lib;c:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/lib;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib"Notice that CLHEP needs to be defined in LIB and INCLUDE.You may have to adapt to your installation path, if different.#-------------------------------------------------------------# trouble reports#-------------------------------------------------------------Please report problems using the bug-tracker of the savannah portal at:http://savannah.cern.ch/projects/hepmc/
