From 9c46ea9db28bd8c8fd227cdeb49e2609972b9f23 Mon Sep 17 00:00:00 2001 From: srcejon <57259258+srcejon@users.noreply.github.com> Date: Fri, 8 Sep 2023 13:23:05 +0100 Subject: [PATCH] Updated Compile in Windows (markdown) --- Compile-in-Windows.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Compile-in-Windows.md b/Compile-in-Windows.md index c0ef4e2..f7d380b 100644 --- a/Compile-in-Windows.md +++ b/Compile-in-Windows.md @@ -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.