Locksim: Windows

Short instructions for Windows:
  1. You need Visual Studio 2013. 2012 works, but you'll need to change the source code a bit.
  2. Download Locksim-0.3-project.zip
  3. Unpack the Zip file
  4. Click on Locksim-0.3/Locksim-0.3.sln to start Visual Studio
  5. Build
  6. Find the executable, Locksim-0.3/Debug/Locksim-0.3.exe
  7. You can drag and drop scenario files on the icon. As a better alternative, you can start a command window, change directory to Locksim-0.3/Debug, and run Locksim in the command window.
Here is an image of Locksim in a command window:

Windows Command Prompt (this one in Windows 10 Technical Preview)

Some more information:

You need Visual Studio 2013. The C code in the Locksim source uses features from the C99 standard, and these are not available in Visual Studio 2012 and earlier versions. You may be able to compile the code as C++, or if you make some changes.

If you download the project file, you might still want to download the source file locksim-0.3-source.zip. It contains the same C source as the project, but also some example scenarios.

A process in Windows or in Linux, such as Locksim when it is run, has a current working directory (or "folder"). It is not necessarily the same directory as the one where the executable file (the "exe" file) is located. When opening a file given withouth a full path name, such as the file name "swap.txt", it will be searched for in the current working directory. You can change the current working directory in the Windows command window with the command cd.


Thomas Padron-McCarthy (thomas.padron-mccarthy@oru.se), January 24, 2015