Scope
|
Just copy everything into e.g. C:\Program Files\Windows Template Library.
Install Visual Studio 2012, then install Update 2. Install Git Tools. Git should be automatically installed, too.
In Visual Studio you have to add WTL to the general include directories: While any solution is open go to View->Property Manager, in Debug|Win32 and Release|Win32 -> Microsoft.Cpp.Win32.user -> VC++ Directories -> Include directories add C:\Program Files\Windows Template Library\include.
Clone sourceforge repository https://git.code.sf.net/p/rkscope/code
to a local directory.
Copy everything into e.g. c:\Temp\boost. Open a command prompt, go to that directory and execute 'bootstrap'. Then b2 --toolset=msvc --build-type=complete stage
. Detailed information in the boost documenation. After compile is finished (can take very long...) copy everything into e.g. "C:\\Program Files\\Boost\\boost_1_53_0".
Again, in Visual Studio add this path to the general include directories: While any solution is open go to View->Property Manager, in Debug|Win32 and Release|Win32 -> Microsoft.Cpp.Win32.user -> VC++ Directories -> Include directories add "C:\\Program Files\\Boost\\boost_1_53_0"
For a 64 bit build of boost invoke b2 --toolset=msvc address-model=64 --build-type=complete stage
.
Just install, now further configuration needed.
Extract the 32bit libraries for Visual Studio 2012 into 'scope/devices/xyz/galil'. For 64bit extract those libraries into 'scope/devices/xyz/galil/x64'. Later copy Galil2.dll (from debug&release subdirectories) into the respective Debug&Release directories where your Scope.exe is built in. In that way you can run scope.exe from Visual Studio, otherwise it complains that it cannot find the Galil dlls. Be careful not to confuse debug and release dlls as this can lead to very confusing errors!
Install MicroSMC (32bit for 32bit builds of Scope).
Add Doxgen under Tools-External Tools... (Name: "Doxygen", Command: "C:\Program Files\doxygen\bin\doxygen.exe", Arguments: "$(SolutionDir)\documentation\default.doxygen", Initial directory: "$(SolutionDir)", check "Use output window"). Now, with a click on "Doxygen" you can build the html documentation.
Now you have to create some local files that are not part of the Scope Git repository:
Scope calls the exiftool.exe to fix TIF tags of saved files. Obviously it cannot be included in the sources. Copy exiftool.exe (rename if necessary) to scope/tools/ (create this folder if necessary).
For linking to the Galil libraries, copy them to devices/xyz/galil/debug/Galil2.lib and Galil2.pdb and devices/xyz/galil/release/Galil2.lib To run Scope from Visual Studio, Galil2.dll has to be in the same directory as scope.exe. Thus copy release/debug versions to scope/Release and scope/Debug.