Fix compilation of retpitaya and rtl_tcp with MinGW #5

Merged
horizon merged 3 commits from argilo/gr-osmosdr:fix-win-compile into master 2023-12-03 09:08:40 +00:00
Contributor

gr-osmosdr's redpitaya and rtl_tcp drivers fail to build with MinGW because the dependency on ws2_32 is specified in a #pragma comment only understood by MSVC. I have moved it into CMake instead.

Also, I removed rtl_tcp_source_f.cc and rtl_tcp_source_f.h, which were made obsolete in 26f93e4687, and I fixed a compiler warning (redefinition of ENOPROTOOPT).

gr-osmosdr's redpitaya and rtl_tcp drivers fail to build with MinGW because the dependency on ws2_32 is specified in a `#pragma comment` only understood by MSVC. I have moved it into CMake instead. Also, I removed `rtl_tcp_source_f.cc` and `rtl_tcp_source_f.h`, which were made obsolete in 26f93e46874824cd36bd9f05baf3fe3b851aa640, and I fixed a compiler warning (redefinition of `ENOPROTOOPT`).
argilo added 3 commits 2023-12-03 00:52:58 +00:00
Author
Contributor

I tried building with MSVC (in a Conda environment) and these changes work there as well.

I had to apply this patch, since the Red Pitaya driver does not currently compile with MSVC: https://github.com/conda-forge/gnuradio-osmosdr-feedstock/blob/main/recipe/0002-redpitaya-For-Windows-target-Vista-or-newer-for-wins.patch

I tried building with MSVC (in a Conda environment) and these changes work there as well. I had to apply this patch, since the Red Pitaya driver does not currently compile with MSVC: https://github.com/conda-forge/gnuradio-osmosdr-feedstock/blob/main/recipe/0002-redpitaya-For-Windows-target-Vista-or-newer-for-wins.patch
horizon merged commit 73d8982ac0 into master 2023-12-03 09:08:40 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sdr/gr-osmosdr#5
No description provided.