Does anybody have working SoapySDR Windows build instructions?

1,126 views
Skip to first unread message

paulc...@gmail.com

unread,
Apr 17, 2019, 8:46:59 PM4/17/19
to Pothos Users

Win 10, x64
CMake 3.14.2
SoapySDR source: https://github.com/pothosware/SoapySDR - 9a94269

CMake has changed since the BuildGuide, but workable I think:
  • Where the source code is: C:/.../Sources/SoapySDR
  • Where to build the binaries: C:/.../Sources/SoapySDRBuild
  • Select Visual Studio 2010, tried both "Optional platform for generator" blank (should be Win32) and x64
  • Use native default compilers
Configure ends with:
######################################################
## SoapySDR enabled features
######################################################
 
* Library, runtime library v0.8.0-g9a942698
 
* Apps, command line applications
 
* Tests, library unit tests
######################################################
## SoapySDR disabled features
######################################################
 
* Docs, doxygen documentation
 
* Python, python bindings v3.6
 
* Python3, python3 bindings

SoapySDR version: v0.8.0-g9a942698
ABI
/so version: v0.8
Install prefix: C:/Program Files (x86)/SoapySDR
Configuring done


So far so good. Generate builds a whole raft of files in C:/.../Sources/SoapySDRBuild.


Start the Visual Studio x64 Cross Tools Command Prompt (2010) and run the command

cmake --build my_build_dir --config Release


Unclear where to run it from, tried in both the SoapySDR and SoapySDRBuild directories with same(?) results. Unclear what to put in "my_build_dir", tried "Build" (after creating that directory), tried ..\SoapySDRBuild from the SoapySDR location, various other permutations.


Basically all result in un-countable warnings, and then a raft of errors, starting with:

C:\...\Sources\SoapySDR\include\SoapySDR/Types.hpp(198): error C2995: 'std::enable_if<!std::tr1::is_same<Type,bool>::value&&std::tr1::is_integral<_Ty>::value&&std::tr1::is_signed<_Ty>::value,Type>::type SoapySDR::Detail::StringToSetting(const std::string &)' : function template has already been defined [C:\...\Sources\SoapySDRBuild\lib\SoapySDR.vcxproj]
          C
:\...\Sources\SoapySDR\include\SoapySDR/Types.hpp(18  9) : see declaration of 'SoapySDR::Detail::StringToSetting'
C
:\...\Sources\SoapySDR\include\SoapySDR/Types.hpp(198): error C2995: 'std::enable_if<!std::tr1::is_same<Type,bool>::value&&std::tr1::is_integral<_Ty>::value&&std::tr1::is_signed<_Ty>::value,Type>::type SoapySDR::Detail::StringToSetting(const std::string &)' : function template has already been defined [C:\...\Sources\SoapySDRBuild\lib\SoapySDR.vcxproj]
          C
:\...\Sources\SoapySDR\include\SoapySDR/Types.hpp(18  9) : see declaration of 'SoapySDR::Detail::StringToSetting'
..\..\SoapySDR\lib\DefaultConverters.cpp(428): warning C4244: 'argument' : conversion from 'const double' to 'float', possible loss of data [C:\...\Sources\SoapySDRBuild\lib\SoapySDR.vcxproj]
C
:\...\Sources\SoapySDR\include\SoapySDR/Types.hpp(198): error C2995: 'std::enable_if<!std::tr1::is_same<Type,bool>::value&&std::tr1::is_integral<_Ty>::value&&std::tr1::is_signed<_Ty>::value,Type>::type SoapySDR::Detail::StringToSetting(const std::string &)' : function template has already been defined [C:\...\Sources\SoapySDRBuild\lib\SoapySDR.vcxproj]
          C
:\...\Sources\SoapySDR\include\SoapySDR/Types.hpp(18  9) : see declaration of 'SoapySDR::Detail::StringToSetting'

Anybody know where I went wrong, or have working build instructions?


Josh Blum

unread,
Apr 17, 2019, 11:08:31 PM4/17/19
to pothos...@googlegroups.com

Everything looks good. It probably needs to be MSVC 2015 or up. There is definitely an older release which will work on 2010 (probably 0.5), but the codebase moved on to C++11 features which offer useful things like threading and mutexes. Its also possible 2013 will work as they implemented most of the C++11 features.

-josh

PS I updated the wiki, I didnt realize it still said 2010.

--
You received this message because you are subscribed to the Google Groups "Pothos Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pothos-users...@googlegroups.com.
To post to this group, send email to pothos...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pothos-users/cab950ce-10b7-4496-91ac-3424141d842c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages