Presentation is loading. Please wait.

Presentation is loading. Please wait.

Marco Cattaneo, 19-June-20001 Building and running software on WNT with Visual Studio and CMT A step by step recipe.

Similar presentations


Presentation on theme: "Marco Cattaneo, 19-June-20001 Building and running software on WNT with Visual Studio and CMT A step by step recipe."— Presentation transcript:

1 Marco Cattaneo, 19-June-20001 Building and running software on WNT with Visual Studio and CMT A step by step recipe

2 Marco Cattaneo, 19-June-20002 Prerequisites  You need a PC running WNT....  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 PC On the S: disk at CERN  Installation details at: http://lhcb.cern.ch/computing/Support/html/DevStudio/

3 Marco Cattaneo, 19-June-20003 Install CMT add-in Tools Menu > Customise... > Add-Ins and Macro Files tab > Browse... Button Browse to S:\LHCb\Software\NtUtils\CmtAddIn.v2.dll

4 Marco Cattaneo, 19-June-20004 1. getpack  Gets package to local CMT area  Creates DevStudio workspace Using CMT requirements file

5 Marco Cattaneo, 19-June-20005 2. Open the workspace File > Open Workspace... Menu navigate to the "Visual" subdirectory of your package open file called.dsw Workspace must be updated if requirements change: Build MSDEV Reload open projects

6 3. Build and execute  If package consists of only one project (i.e. library) Menu: Build > Build  or F7 shortcut, or “build” icon on the toolbar.  If 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 execute Make sure that correct environment variables are set: click on SetEnvironment button of the CMT toolbar  only needed first time you execute a particular program, or each time requirements change (equivalent to "source setup.csh" on Unix) Menu: Build > Execute  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.

7 Marco Cattaneo, 19-June-20007 Conclusion  Initial installation takes some time  CMT add-in, plus AFS access, (plus WinCVS), make working with LHCb packages in Visual Studio a pleasure Recommended to anyone who does not like debugging on Linux!  Looking into providing a batch build environment for people without access to a Windows PC. No excuse for not testing software on both Linux and WNT...


Download ppt "Marco Cattaneo, 19-June-20001 Building and running software on WNT with Visual Studio and CMT A step by step recipe."

Similar presentations


Ads by Google