Marco Cattaneo, 19-June-20001 Building and running software on WNT with Visual Studio and CMT A step...
-
Upload
dustin-lynch -
Category
Documents
-
view
212 -
download
0
Transcript of Marco Cattaneo, 19-June-20001 Building and running software on WNT with Visual Studio and CMT A step...
Marco Cattaneo, 19-June-2000
1
Building and running Building and running software on WNT with Visual software on WNT with Visual
Studio and CMTStudio and CMT
A step by step recipeA step by step recipe
Marco Cattaneo, 19-June-2000
2
PrerequisitesPrerequisites
You need a PC running WNT....You need a PC running WNT.... You need to install:You need to install:
Windows AFS client See a system manager
Visual Studio 6.0, service pack 2 Available from NICE
Visual Fortran 6.1A Available from NICE
CMT must be installed on disk visible from your CMT must be installed on disk visible from your PCPC
On the S: disk at CERN
Installation details at:Installation details at: http://lhcb.cern.ch/computing/Support/html/DevStudio/
Marco Cattaneo, 19-June-2000
3
Install CMT add-inInstall CMT add-in
Tools Menu > Customise... > Add-Ins and Macro Files tab > Browse... Button
Browse to S:\LHCb\Software\NtUtils\CmtAddIn.v2.dll
Marco Cattaneo, 19-June-2000
4
1. getpack1. getpack
Gets package toGets package tolocal CMT arealocal CMT area
Creates DevStudioCreates DevStudioworkspaceworkspace
Using CMT requirementsfile
Marco Cattaneo, 19-June-2000
5
2. Open the 2. Open the workspaceworkspace
File > Open Workspace... Menu navigate to the "Visual" subdirectory of your package open file called <packagename>.dsw
Workspace must be updatedif requirements change:
Build MSDEV Reload open projects
3. Build and execute3. Build and execute
If package consists of only one project (i.e. library)If package consists of only one project (i.e. library) Menu: Build > Build <package>
or F7 shortcut, or “build” icon on the toolbar.
If it consists of several projectsIf it consists of several projects can select the projects one by one, or build them all in one go: Menu Build > Batch build...
If package is an application, now ready to executeIf package is an application, now ready to execute Make sure that correct environment variables are set:
click on SetEnvironment button of the CMT toolbaronly needed first time you execute a particular program, or each time
requirements change (equivalent to "source setup.csh" on Unix)
Menu: Build > Execute <program>or Ctrl+F5 shortcut, or the “execute program” icon on the toolbar.
N.B.: execution directory is, by default, the directory in which the executable resides (usually Win32Debug).
To change: modify the working directory using Menu: Project > Settings... and change the Working directory in the Debug tab.
Marco Cattaneo, 19-June-2000
7
ConclusionConclusion
Initial installation takes some timeInitial installation takes some time
CMT add-in, plus AFS access, (plus CMT add-in, plus AFS access, (plus WinCVS), make working with LHCb WinCVS), make working with LHCb packages in Visual Studio a pleasurepackages in Visual Studio a pleasure
Recommended to anyone who does not like debugging on Linux!
Looking into providing a batch build Looking into providing a batch build environment for people without access to a environment for people without access to a Windows PC.Windows PC.
No excuse for not testing software on both Linux and WNT...