-
Notifications
You must be signed in to change notification settings - Fork 36
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
possible to compile this for windows? #58
Comments
Unfortunately I don't have any Windows machines available and I can't answer this straight away. Redsea can read a raw MPX stream from a 192kHz soundcard. There is an example for how to do it on Linux in the wiki. |
Hi some progress after installing msys2 and mingw toolchain and development tools (base-devel msys2-devel) I was able to run autogen.sh script now I already builded liquid-dsp per this tut: https://github.com/cjcliffe/CubicSDR/blob/master/external/liquid-dsp/How_to_build_liquid_dsp_for_Windows.txt now I just need to somehow reference it when executing configure so I am asking how can I specify path to my build dll and a from configure but when I try with configure --without-liquid I get here is my autogen.sh and configure output if needed autogen.sh
configure --without-liquid
Thanks for Anwsering and Best Regards |
The error message can be seen on the next to last line; it means that You may build redsea without libsndfile by downloading a release version. For example, 0.15 can be built without libsndfile using The |
Thanks will try installing libsndfile (there must be one for MSYS2/MinGW) but I still don't know how to specify path to liquid-dsp when running configure (because I already builded that and now have my dll and .lib file to link agains) UPDATE: I am getting somewhere (still using --without-liquid because I first want to build to see if it builds) I've installed mingw-w64-x86_64-pkg-config-0.29.2-1 (probably not needing it here but its useful to have) and mingw-w64-x86_64-libsndfile now running ./configure --without-liquid it makes makefile but when I execute make it all goes well but then stops at jsoncpp here is the last part of makeprocess when it fails mv -f .deps/redsea-jsoncpp.Tpo .deps/redsea-jsoncpp.Po
g++ -g -O2 -o redsea.exe redsea-redsea.o redsea-input.o redsea-subcarrier.o redsea-block_sync.o redsea-groups.o redsea-tables.o redsea-rdsstring.o tmc/redsea-tmc.o tmc/redsea-locationdb.o redsea-util.o redsea-channel.o redsea-options.o redsea-liquid_wrappers.o redsea-jsoncpp.o -lc -lsndfile
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lc
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile:376: redsea.exe] Error 1
make[2]: Leaving directory '/tobuild/rdssea/redsea/src'
make[1]: *** [Makefile:419: all-recursive] Error 1
make[1]: Leaving directory '/tobuild/rdssea/redsea'
make: *** [Makefile:339: all] Error 2 what library would c be? |
It seems to be libc or glibc: https://unix.stackexchange.com/questions/228886/gcc-ld-cannot-find-lc |
well now I have a problem because glibc and libc are not uvailable on MinGW. There is msvrc but I don't know what needs to be changed for rdsea to use and build agains: https://stackoverflow.com/questions/6394512/standard-c-library-in-mingw |
I build it using msys2 32 bits with gcc 7.3.0 |
@bra1z - Great! If there's a way to test whether we're building in msys2, this check could perhaps be added to the autoconf files. |
yep it works but you have to go to src dir first now is there a way to quickly test it I tried with rtl_fm is there a command that would play mpx stream over to stdout to rdssea |
Try this: It works for me on macOS, at least. |
hmm that odd I tried with your command but nothing interesting happened then tried ./redsea -v and it echoed but when trying to read it just sits there doing nothing it also does nothing if also did nothing when trying with mpx stream
not sure if matters but I am using PowerShell because its the only shell that supports pipes (cmd doesn't) |
redsea reads standard input, unless a WAV file is given with Unfortunately I haven't used PowerShell myself. Could it be that you'd have to set the pipe to some kind of raw mode? According to this document, the pipe is not what you'd expect, as PowerShell only pipes 'objects' https://docs.microsoft.com/en-us/powershell/scripting/getting-started/fundamental/understanding-the-windows-powershell-pipeline?view=powershell-6 |
You can also cross-compile redsea via MinGW. I created a mingw package for redsea on OBS: The example @windytan mentioned does work fine with windows cmd.exe Here's an archive with precompiled windows binaries for redsea v0.16.0, flac and curl: |
yey works like a charm using this command to get only PS
(cmd doesn't like ' so " it is) now I just need to filter nulls out PS: how can I grep TMC like you did here: http://www.windytan.com/2013/05/a-determined-hacker-decrypts-rds-tmc.html because if I do ".tmc" I get messages not raw data like you did (and redsea crashes for some reason if reading from file) |
This blog post is quite old; Redsea does not use Perl anymore. The TMC printout has also changed, everything is now in these messages. I'd be interested to hear about the error message when it crashes. |
I Think it crashes because it reaches end of file
as for TMC is is possible to get RAW data to trow it into some other TMC Decoder like: https://github.com/razor/rds-tmc-decoder or https://github.com/mueschel/TmcDecoder? |
Yes, using the |
great because without LC you can't do much with TMC |
This depends entirely on the individual organisation. It's unfortunate that they don't want to give that out, but it could be part of their business model. I got mine a very long time ago by just asking, but it could be that they have changed their policies, too. You can only use a location table that has the same country code and location table number as in the transmission. |
which TMC provider did you have (probably not TrafficNav) now the only option would be to extraxt them along with the keys from Navigation system that payed the licenses: http://www.navitotal.com/general-discussions-about-tomtom-f81/rsd-tmc-traffic-decryption-keys-t18115.html http://download.tomtom.com/sweet/navcore/8.351.go530-go730-go930.CAB-navcore-GO.cab the file that should hold them |
I found a project with a few location tables: |
nice |
Yeah, sure
|
I made a program for Windows in C# language using redsea. The program draw the plots of RDS-TMC traffic. Be sure to put in TMC folder the correct location tables and edit the file run.cmd to change frequency and gain. https://github.com/bra1z/redseaTMCmap |
The original issue being resolved by the mingw build I'm closing this issue now. I added a mention about this in the wiki. |
Just in-case anyone looks at this issue again, I've added additional ways which redsea can be installed on Windows on the Wiki: These include:
@windytan FYI. |
Hi I wonder if its posible to cross-compile this for windows and also wonder if rdssea can read raw MPX stream from 192khz soundcard like RDS Spy can
Thanks for Anwsering and Best Regards
The text was updated successfully, but these errors were encountered: