kopia lustrzana https://github.com/f4exb/sdrangel
Updated Compile in Windows (markdown)
rodzic
d7a165648f
commit
9c46ea9db2
|
@ -9,7 +9,7 @@
|
||||||
* Install NSIS (https://nsis.sourceforge.io/Download)
|
* Install NSIS (https://nsis.sourceforge.io/Download)
|
||||||
* Make sure git, cmake, nsis and ninja are in your PATH environment variable.
|
* 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:
|
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
|
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
|
* Clone the repo https://github.com/f4exb/sdrangel.git in Visual Studio
|
||||||
* Open the sdrangel folder
|
* 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
|
* Build > Build All
|
||||||
* Select Startup Item > Show / hide debug targets
|
* Select Startup Item > Show / hide debug targets
|
||||||
* Uncheck Select All then Check sdrangel.exe (bin\sdrangel.exe)
|
* 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
|
* Source Control > Git Repository Settings > General
|
||||||
* Set github username and e-mail
|
* Set github username and e-mail
|
||||||
* Restart Visual Studio
|
* Restart Visual Studio
|
||||||
|
|
||||||
## Notes
|
## 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.
|
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.
|
||||||
|
|
Ładowanie…
Reference in New Issue