oatpp / website

oatpp.io public website
https://oatpp.io/
Apache License 2.0
13 stars 24 forks source link

website changes for Visual Studio 2022 windows build #26

Closed kushnertodd closed 1 year ago

kushnertodd commented 1 year ago

These are notes on the changes to the README.md's.

docs/docs/installation/windows/README.md

Change: updated Visual Studio version

## Requirements
-- Microsoft Visual Studio (Tested with Visual Studio 2022)
+- Microsoft Visual Studio (Tested with Visual Studio 2017)

Change: Windows build cmake must be run on an administrator command prompt

 ## Install Oat++
-Build at an administrator command prompt.

Change: added additional Windows install step to copy pdb file. This should be possible to add to cmake/module-install.cmake, I haven't figured it out yet. We can wait until then if you'd like.

 $ git clone https://github.com/oatpp/oatpp.git

 $ cmake ..
 $ cmake --build . --target INSTALL
-$ copy src\Debug\oatpp.pdb  "C:\Program Files (x86)\oatpp\lib\oatpp-1.3.0"

Change: changes required to the Visual Studio solution after creating:

define environment variable OATPP_HOME as "C:\Program Files (x86)\oatpp" add additional include dir: $(OATPP_HOME)\include\oatpp-1.3.0\oatpp add additional lib dir: %OATPP_HOME%\lib\oatpp-1.3.0 [won't get into why "$()" for include and "%..%" for libs] add additional link dependency: oatpp.lib

-## Application build notes
-
-To build Oat++ applications under Windows do the following:
-
-- Define an environment variable OATPP_HOME as `C:\Program Files (x86)\oatpp`
-- Add this code to the main program after all the `#includes`:
-```cpp
-#if defined(WIN32) || defined(_WIN32)
-#pragma comment(lib, "Ws2_32.lib")
-#endif 
-```
-- Make the following changes to Visual Studio projects:
-  - add an additional include directory `$(OATPP_HOME)\include\oatpp-1.3.0\oatpp`
-  - add an additional lib directory `%OATPP_HOME%\lib\oatpp-1.3.0`
-  - add an additional link dependency `oatpp.lib`

docs/docs/start/step-by-step/README.md

Change: required after the #includes in main programs examples


 #include ...
 #include ...

-#if defined(WIN32) || defined(_WIN32)
-#pragma comment(lib, "Ws2_32.lib")
-#endif
lganzzzo commented 1 year ago

Merged! Great work!