Updated Compile in Windows (markdown)

master
srcejon 2023-09-08 13:23:05 +01:00
rodzic d7a165648f
commit 9c46ea9db2
1 zmienionych plików z 4 dodań i 3 usunięć

@ -9,7 +9,7 @@
* Install NSIS (https://nsis.sourceforge.io/Download)
* Make sure git, cmake, nsis and ninja are in your PATH environment variable.
## Compile and build (cmd line)
## Compile and Build (cmd line)
Run Visual Studio shell: `Start > Visual Studio 2022 > x64 Native Tools Command Prompt for VS 2022` Then:
@ -39,11 +39,11 @@ To debug using Visual Studio without a project, run:
devenv /DebugExe .\bin\SDRangel.exe
## Compile and build (Visual Studio)
## Compile and Build (Visual Studio)
* Clone the repo https://github.com/f4exb/sdrangel.git in Visual Studio
* Open the sdrangel folder
* Modify CMake presets (CMakePresets.json - use absolute path for build directory)
* Modify CMake presets (Edit CMakePresets.json and ensure CMAKE_PREFIX_PATH has the correct path to Qt and Boost)
* Build > Build All
* Select Startup Item > Show / hide debug targets
* Uncheck Select All then Check sdrangel.exe (bin\sdrangel.exe)
@ -57,6 +57,7 @@ If Commit Staged button is greyed out:
* Source Control > Git Repository Settings > General
* Set github username and e-mail
* Restart Visual Studio
## Notes
MSVC compiles std::string incompatibly for Release and Debug builds, which means you can't mix different builds of libraries that include std::string in their APIs such as the UHD library. There's currently only a Release build of uhd.dll in the sdrangel-windows-externals repo. This will cause an exception if used with a Debug build of SDRangel. As a workaround, you'll need to either delete uhd.dll before debugging, or replace it with a Debug version you've built.