************************************************ Getting the LabVolt simulator going on Windows: ************************************************ Note: I put a video on Brightspace which walks you through this **************************** Install OpenCV on Windows **************************** Go to: https://sourceforge.net/projects/opencvlibrary/files/opencv-win/ Click "Download Latest Version" (Green button near top) Run the .exe file (as administrator?) -- extracts files I moved them to the top of my C: drive: C:\opencv\ **************************** Install VisualStudio Community Edition: **************************** https://visualstudio.microsoft.com/downloads/ Click Community, Free download When installing, when Workloads options are given make sure to check "Desktop development with C++" **************************** Download virtuallabvolt.zip from the web page and unzip into a folder **************************** **************************** Run VisualStudio, sign in **************************** Development Settings --> Visual C++ (Was General by default) (Preparing for first use) Create a new project (button in lower right) Choose Console App, C++ Click "Next" Configure your new project: Project name: lab1 (or whatever) Location: (change to whatever - it will create a subdirectory here) (I picked "Place solution and project in the same directory", but do what you want) Click "Create" Arrange the files you unzipped above: I put lab1.cpp, in the project directory and the other three unzipped files (virtuallaabvolt.h, vlabvolt.cpp, vlabvolt.h) in its parent directory. I.e., my tree is: vlabvolt (parent directory) virtuallabvolt.h vlabvolt.h vlabvolt.cpp lab1 (project directory) lab1.cpp <-- this replaces the default file created by Visual Studio lab1.sln etc. In Solution Explorer (probably on left) make sure it reflects these four files: Expand Source Files: Right click on a file and select "Remove" to remove it Right click on Source Files click Add --> Existing Item... Navigate up a directory and select "vlabvolt.cpp" to include that one Right click on Header Files click Add --> Existing Item... Navigate up a directory and select "vlabvolt.h" to include that one Repeat for virtuallabvolt.h **************************** Getting Visual Studio to work with OpenCV **************************** In the following: Follow the instructions here: https://www.opencv-srf.com/2017/11/install-opencv-with-visual-studio.html Add system environment variable: In Control panel, search for "Environment" and select Edit the system environment variables and add one for OPENCV_DIR as C:\opencv\build\ (or wherever you left the directory) Continue with the steps at the above link The only thing I chaged was to change vc14 to vc15 in the directory paths Also, note that opencv_world331d.lib in the tutorial is now opencv_world451d.lib and opencv_world331.lib is opencv_world451.lib Click Build --> Build Solution to build it F5 or Ctrl+F5 to run (with/without debugging) See virtuallabvolt notes on my web page for more information on running the simulator **************************** Copying the solution for the next week's lab **************************** I recommend having the labs for different weeks each in their own folder. To start on lab5: Copy the lab1 folder (Ctrl click and drag then rename is one way) Now in lab5 folder click on lab1.sln to open it up in VisualStudio In the Solution Explorer, right click and rename: Solution 'lab1' rename to 'lab5' lab1 (just below that) rename to lab5 lab1.cpp rename to lab5.cpp Then rebuild solution