Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building for Windows #2

Open
raufaser opened this issue Jun 16, 2021 · 8 comments
Open

Building for Windows #2

raufaser opened this issue Jun 16, 2021 · 8 comments

Comments

@raufaser
Copy link

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
Copy link
Owner

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 <math.h>)

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

Are you using mingw for Qt?

@raufaser
Copy link
Author

I am using mingw.

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

@Oleg-Malyutin
Copy link
Owner

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
Copy link
Author

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 <stdint.h>

Now i seem to have some problems with 'aligned_alloc'

grafik

any ideas?

@Oleg-Malyutin
Copy link
Owner

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
Copy link

DG9BFC commented Nov 8, 2023

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
Copy link
Owner

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

@Oleg-Malyutin
Copy link
Owner

Oleg-Malyutin commented May 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants