-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRequirements.txt
87 lines (55 loc) · 3.46 KB
/
Requirements.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Windows SDK version 10.0.17763.0
// Submodules:
CTPL: Thread Pool Library - Version 0.0.2
https://github.com/vit-vit/CTPL
ctpl_v.0.0.2
https://github.com/vit-vit/CTPL/releases/tag/v.0.0.2
// BOOST:
Run boost_1_71_0-msvc-14.2-64.exe:
Install with defaults ( to "C:\local\boost_1_71_0")
// WT webserver:
https://github.com/emweb/wt/releases/download/4.1.0/Wt-4.1.0-msvs2019-Windows-x64-SDK.exe
Run Wt-4.1.0-msvs2019-Windows-x64-SDK.exe:
Install with defaults (to "C:\Program Files\Wt 4.1.0 msvs2019 x64")
http://redmine.emweb.be/projects/wt/wiki/Installing_Wt_on_MS_Windows
In C/C++ -> General, Additional Include Directories: C:\Program Files\Wt 4.1.0 msvs2019 x64\include
In C/C++ -> Preprocessor, ensure that WIN32 is defined. Also define HPDF_DLL, which will allow you to generate pdf files.
In Linker->General, Additional Library Directories: C:\Program Files\Wt 4.1.0 msvs2019 x64\lib
Go to Linker->Input. In the Additional Dependencies, fill out the Wt libraries you want to link to. At the topleft of the dialog, check the active Configuration.
If it's Debug, link to wtd.lib, wthttpd.lib (and optionally wtdbod.lib, wtdbobackendXXXd.lib, ...).
If it's release, link to wt.lib, wthttp.lib (and optionally wtdbo.lib, wtdbobackendXXX.lib).
Notice that the debug libraries have a 'd' suffix. Be carefull. You need different libraries depending on the Release/Debug configuration, since it's not possible to mix different versions of the MSVC runtime libraries in one application.
THEY MUST BE SEPARATED BY SEMICOLINS!!
You need to set up DLL file copying for the files:
Release: "wt.dll; wthttp.dll; libcrypto-1_1.dll, libhpdf.dll, libssl-1_1.dll, wttest.dll"
Debug: "wtd.dll; wthttpd.dll; libcrypto-1_1d.dll, libhpdfd.dll, libssl-1_1d.dll, wttestd.dll"
If you want to run your fresh application, set these options:
In the Debugging tab, set Command Arguments to --docroot . --config "$(ProjectDir)/ConfigFiles/wt_config.xml" --http-address 0.0.0.0 --http-port 8080 -accesslog="$(ProjectDir)/logs/webServerAccessLog.log"
In the Debugging tab, set Environment to PATH=C:/Program Files/Wt 4.1.0 msvs2019 x64/bin
$(LocalDebuggerEnvironment)
"C:\Common\config\phoBehavioralBoxLabjackController-WT_config.xml"
// Additional Fixes:
1. If you encounter "wtd.dll not found", "wthttpd.dll not found", or a similar ".dll not found" problem:
Copy relevant files from "C:\Program Files\Wt 4.1.0 msvs2019 x64\bin" to program executable directory
2. If you encounter "MSVCP140D.dll", "VCRUNTIME140D.dll", "ucrtbased.dll" errors:
See https://stackoverflow.com/questions/32998902/msvcp140-dll-missing
// CMAKE:
Run cmake-3.15.2-win64-x64.msi:
- Accept the agreement
- Change Install Options to "Add CMake to the system path for all users". Click next.
- Install to the default location ("C:\Program Files\CMake\").
// Open Visual Studio 2019:
phoBehavioralBoxLabjackController.sln
- Up at the top of the window, there are two drop-down menus to the left of a button that looks like a green play button.
- Change the first one to "Debug"
- Change the second one to "x64".
- Click on the "Build > Build Solution" menu up at the top.
MSVCP140D.dll
// LABJACK Software:
Run LabJack-2019-05-20.exe:
Install with defaults
// LABJACK API:
https://labjack.com/support/software/examples/ljm/c
Download the latest version.
Extract the contents of the folder within the .zip (for example in "C_C++_LJM_2019-05-20-beta.zip" there is a folder called "C_C++_LJM_2019-05-20")
to the "src/External/C_C++_LJM" folder.