Hi Miguel,

I'm definitely not an expert on windows software building, but "the libuhd 
environment" actually sounds like it is what you want to build. You probably 
shouldn't try to link your build of libuhd against our build.

Best regards,
Marcus

On 14 May 2018 06:16:12 GMT+02:00, Miguel P via USRP-users 
<usrp-users@lists.ettus.com> wrote:
>Hello,
>
>As I wanted a statically linked .lib I downloaded the source, but I've
>had a lot of trouble trying to build the library. I'm using VS 2017,
>and the latest Boost version, and libuhd. I compiled Boost for static
>linkage and the complete libuhd system. Then cloned the uhd and tried
>set up cmake "ENABLE_STATIC_LIBS". Then when I tried to build the
>solution I first got linking errors because
>"boost_unit_test_framework-vc141-mt-x64-1_67.lib" was missing. I'm not
>sure why it would want to link to a dynamic link library, but I just
>rebuilt boost and added the dynamic lib so that uhd linkage would
>work. And then it worked (eventually depending on a Boost .dll), but
>the "uhd_static" project still failed to compile.
>"1>c:\lib\uhd\host\lib\utils\log_c.cpp(19): error C2491: '_uhd_log':
>definition of dllimport function not allowed" which as I understand is
>because functions are being "__declspec(dllimport)" and for static
>linkage you don't want that.. I tried to manually set UHD_API to no
>
>How can I fix this? Is there interest in keeping UHD compatible to
>Windows (as you mostly focused on Linux)?
>
>Thanks in advance.
>
>_______________________________________________
>USRP-users mailing list
>USRP-users@lists.ettus.com
>http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

-- 
This was written on my cellular phone. whilst an impressive piece of 
engineering, this might not be the perfect device to write emails on - please 
excuse my brevity.
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to