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

Installing nrsc5-gui-2.0.0 in MSYS2 MinGW x64 under Win. 11 #22

Open
Fairyball opened this issue Jan 27, 2022 · 11 comments
Open

Installing nrsc5-gui-2.0.0 in MSYS2 MinGW x64 under Win. 11 #22

Fairyball opened this issue Jan 27, 2022 · 11 comments

Comments

@Fairyball
Copy link

Hi, I was wondering if anyone was able to install nrsc5-gui within MSYS2 MinGW x86/x64? I don't know how to build the program or run it in MSYS2. I installed all of the prerequisite packages that were listed for nrsc5_gui under the code tab, but I'm not sure if I should type CMAKE, or INSTALL, or some other command?
Screenshot 2022-01-26 223042

@ferrellsl
Copy link

ferrellsl commented Feb 12, 2022

Hi. Yes, I was able to get this running on Windows 11 with MSYS2. I generally followed the build instructions that one would use on a Linux box. Build the NRSC5.exe per the build instructions on the NRSC5 github page for MSYS2. Next, you will need to make sure that your MSYS2 python3 environment gets set up properly. Do not use pip3 to install the python3 packages. Install them using pacman like so:

pacman -S mingw-w64-x86_64-python-pillow
pacman -S mingw-w64-x86_64-python-gobject

Next, you will need to install PyAudio. It will fail under both pacman and pip3 so I had do do the following to get PyAudio installed:

  1. Download PyAudio from github: https://git.skeh.site/skeh/pyaudio
  2. Run: pacman -S mingw-w64-x86_64-portaudio
  3. Go to pyaudio project folder and run: python3 setup.py build_ext --inplace
  4. Finally run: python setup.py install
    Now, go to the folder where you cloned the NRSC5-GUI code and run: python3 nrsc5-gui.py

This should all work now provided that you've installed the SDR dongle properly using the Zadig drivers.

It should then be running.

image

image

image

@Fairyball
Copy link
Author

Hi. Yes, I was able to get this running on Windows 11 with MSYS2. I generally followed the build instructions that one would use on a Linux box. Build the NRSC5.exe per the build instructions on the NRSC5 github page for MSYS2. Next, you will need to make sure that your MSYS2 python3 environment gets set up properly. Do not use pip3 to install the python3 packages. Install them using pacman like so:

pacman -S mingw-w64-x86_64-python-pillow pacman -S mingw-w64-x86_64-python-gobject

Next, you will need to install PyAudio. It will fail under both pacman and pip3 so I had do do the following to get PyAudio installed:

  1. Download PyAudio from github: https://github.com/jleb/pyaudio
  2. Run: pacman -S mingw-w64-x86_64-portaudio
  3. Go to pyaudio project folder and run: python3 setup.py build_ext --inplace
  4. Finally run: python setup.py install
    Now, go to the folder where you cloned the NRSC5-GUI code and run: python3 nrsc5-gui.py

This should all work now provided that you've installed the SDR dongle properly using the Zadig drivers.

It should then be running.

image

image

image

Hi, so sorry for the late response. This is going to be a long story, but I found a tutorial on YouTube which described how to install nrsc5-gui version 1.2.2. Yes, it might be an older version of nrsc5 gui, but anyways, in the video tutorial, the host said to download MINGW. I already had a copy of MSYS2 and MSYS2 MINGW, but I think downloading that other version of MINGW messed up my install of MSYS2, so now the cmake and sudo commands don't work. I also forgot how to compile nrsc5 in MSYS2, so at this point, while I already have a working copy of nrsc5-gui, I'm stuck not being able to update it. I was able to successfully install python pillow and python gobject and pyaudio, however at this point, I'm a bit stuck without a reinstall or MSYS2.

@Fairyball
Copy link
Author

Ok, I tried to follow your instructions (I needed to find a guide on how to install pyaudio and portaudio in MSYS2MINGW, but I got it working! Success!
2022-12-23

@Fairyball
Copy link
Author

hmm, I spoke a bit too soon, nrsc5-gui isn't detecting my RTL-SDR V3 radio and it also seems to be stuck not being able to find some .dll files. 🤔
2022-12-23

@ferrellsl
Copy link

ferrellsl commented Dec 24, 2022 via email

@Fairyball
Copy link
Author

Fairyball commented Dec 24, 2022

Did you run python setup.py install from within the pyaudio folder? On Friday, December 23, 2022 at 09:59:04 PM MST, Fairyball @.> wrote: Hi. Yes, I was able to get this running on Windows 11 with MSYS2. I generally followed the build instructions that one would use on a Linux box. Build the NRSC5.exe per the build instructions on the NRSC5 github page for MSYS2. Next, you will need to make sure that your MSYS2 python3 environment gets set up properly. Do not use pip3 to install the python3 packages. Install them using pacman like so: pacman -S mingw-w64-x86_64-python-pillow pacman -S mingw-w64-x86_64-python-gobject Next, you will need to install PyAudio. It will fail under both pacman and pip3 so I had do do the following to get PyAudio installed: - Download PyAudio from github: https://github.com/jleb/pyaudio - Run: pacman -S mingw-w64-x86_64-portaudio - Go to pyaudio project folder and run: python3 setup.py build_ext --inplace - Finally run: python setup.py install Now, go to the folder where you cloned the NRSC5-GUI code and run: python3 nrsc5-gui.py This should all work now provided that you've installed the SDR dongle properly using the Zadig drivers. It should then be running. Hi, so yikes... I tried to follow your instructions today, however while executing the command: python3 setup.py build_ext --inplace in a Windows Command Prompt window, the process halted because Python wasn't able to find a file called portaudio.h. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

I'm trying to remember... I think so.

@Fairyball
Copy link
Author

Right... I ran the command "python setup.py install" from within the py-audio folder a second time, but I'm still seeing this error where nrsc5-gui is able to tune into a station, but freezes afterwards when it can't quite make sense of the audio streams.
2022-12-24 (2)

@ferrellsl
Copy link

ferrellsl commented Dec 24, 2022 via email

@Fairyball
Copy link
Author

Phew, thanks so much for the help. nrsc5-gui works almost perfectly now, just with some slight audio stuttering occasionally. The audio's working, and the program isn't freezing any longer.

@ferrellsl
Copy link

ferrellsl commented Dec 24, 2022 via email

@Fairyball
Copy link
Author

Fairyball commented Dec 24, 2022

You're welcome.  I noticed a few small bugs that are a bit irksome.  Under python 3.10 tonight I kept getting an error that the gui couldn't find the config file or the map and art folders.  Running the gui and going immediately to the "Settings" and making a small change created a config.json that seemed to have been missing and then after running the gui again, the errors disappeared.  I didn't notice this behavior under python 3.9 although it may have been present there too. On Friday, December 23, 2022 at 11:58:33 PM MST, Fairyball @.> wrote: Phew, thanks so much for the help. nrsc5-gui works almost perfectly now, just with some slight audio stuttering occasionally. The audio's working, and the program isn't freezing any longer. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

Huh, strange, I haven't run into that issue yet, so thanks for documenting it in the... off chance it crops up on other computers. On a side note, I'm also running into segmentation issues when I try to save too many bookmarks at once.

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

2 participants