Oleg-Malyutin / sdr_receiver_dvb_t2

This is a Software Defined Radio(SDR) project implementing a DVB-T2 receiver.
GNU General Public License v3.0
51 stars 10 forks source link

Building for Windows #2

Open raufaser opened 3 years ago

raufaser commented 3 years ago

Hello,

first of all many thanks for investing time in decoding DVB-T2 with an SDR receiver.

I would really like to test it out with my SDRPlay device. I am trying to compile the project for Windows.

I installed the QTCreator and QT 5.12.11. I also dowloaded the FFT library and copied the content to the DSP subdirectory.

I get a lot of errors when i try to build the project.

grafik

Is there any chance you can help me with building the project?

Oleg-Malyutin commented 3 years ago

Hello, Unfortunately, I know English poorly, so I will use the translator. The problem is not in the project, but in the compiler for Windows:

(defined in )

#if __HAVE_FLOAT32 && defined __USE_GNU
...
# define M_PIf32 __f32 (3.141592653589793238462643383279502884) / * pi * /
...

Are you using mingw for Qt?

raufaser commented 3 years ago

I am using mingw.

Qt Creator is configured to use mingw32-make.exe -j8

Oleg-Malyutin commented 3 years ago

Ok. Switching to Windows will still require manual editing. For example:

#ifndef
# define M_PI_2f32  (1.570796326794896619231321691639751442)
#endif

As suggested here -https: //stackoverflow.com/questions/26065359/m-pi-flagged-as-undeclared-identifier

raufaser commented 3 years ago

Thank you very much for the answer.

I added the following lines to the fast_math.h

`#ifndef M_PI_2f32

define M_PI_2f32 (1.570796326794896619231321691639751442)

endif

ifndef M_PIf32

#define M_PIf32 (3.141592653589793238462643383279502884)

endif`

The error message is gone now.

Then i had to install the libusb for windows.

In several files there was the following include neccessary:

include

Now i seem to have some problems with 'aligned_alloc'

grafik

any ideas?

Oleg-Malyutin commented 3 years ago

There is no aligned_alloc in mingw. Here is an example of how this problem is solved: https://osdn.net/projects/mingw/lists/archive/notify/2020-April/000511.html

DG9BFC commented 11 months ago

hello oleg and raufaser i also would like to test it but with a pluto and i am no coder so all the above things like qt creator etc ..l do know nothing about would it be possible to add a precompiled release into github?? tnx dg9bfc sigi

Oleg-Malyutin commented 11 months ago

Hello. I'll try, but I can't promise it will be soon.

Oleg-Malyutin commented 4 months ago

There is a compiled version for Windows 10 (see folder win_x64). But, unfortunately, it does not work with Pluto. Pluto has a limited bandwidth of 7 MHz, which is not enough for DVB-T2 (8 MHz). The applied Pluto firmware kernel patch only works in Linux. I haven't solved this problem yet. If I have free time, I'll try it. There are also binary files for Linux (see the Linux_Mint_20 folder) that can be run from LifeСD(USB). Pluto works there.