-
Notifications
You must be signed in to change notification settings - Fork 100
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
No available formula or cask with the name "/tmp/nrsc5". #286
Comments
Yeah, I recommend you don't use the package from Homebrew, although you should use it for the supporting packages. Make sure you use the appropriate build options in the cmake line that fit your particular architecture (Intel should use SSE, M1 should use NEON):
Once you've done all this, it's easy to just update your local git directory and rebuild as needed. Let us know how it goes. |
Thanks @markjfine for the suggestions. I compile it follow the unix instruction. and got error below. I guess it should in the package librtlsdr-dev, however brew doesn't have it, so I only installed librtlsdr. any idea to fix it?
|
Interesting. You should have an alias in /usr/local/include/rtl-sdr.h that points to /usr/local/Cellar/librtlsdr/0.6.0/include/rtl-sdr.h, which was installed with the Homebrew. Perhaps it wasn't installed properly. Try removing librtlsdr from Homebrew and reinstalling it. |
Thanks @markjfine . the file does exist, but still has error after I remove and reinstall the librtlsdr.
|
If the alias is in usr/local/include, then there must be an issue with your compile environment somewhere. Hopefully you're not installing these Homebrew packages and trying to build this as superuser because that can cause a whole lot of problems. Would also be helpful to know what your PATH environment variable looks like. |
this is the first time I use the homebrew and I think install the homebrew require root.
|
maybe it's the user and group names 'admin' that's confusing me. |
I removed homebrew and re-install it and got same error. I noticed that the first time I run the cmake I got error about automake is missing and I have to manually install it even through autoconf supposed to install it. Any idea? I just need nrsc5 binary for macOS.
|
do you know where I can download pre-compiled binary for Mac? thx |
Think you also needed to install autoconf. Unfortunately I don't know where to get a pre-compiled version. Macs are configured differently now because of the M1 Macs, so pre-compiled isn't a really good option. |
yes. I installed autoconf, but still has this error. |
It looked as if you installed just the automake part.
|
I installed both
|
Do you have pkg-config installed? |
It also appears that you do not have |
Thank you so much @markjfine @argilo I installed both pkg-config and fftw and compiled successfully. Thanks again for the help. |
I have not tested this on macOS, but you could perhaps try passing the |
The executable is dependent upon other external dynamic libraries. Unless those libraries are copied as well (and using hte same paths) it won't work. |
Oops, I meant |
Thanks @argilo . I removed everything from build dir and re-run the
|
I guess that option doesn't work on macOS. (It's undocumented and only tested on Windows.) I'm afraid you'll have to investigate linker options on your own if you'd like to get a static build on macOS. |
It's looking for the c runtime library for a static build as if this is Linux. I've only seen that needed on Mac-based builds for cross-compiling under mwin64 as a dll for Windows, for obvious reasons. I'm guessing for a static Mac build it's different than for Linux since it uses clang and not c 'proper', so it should really be either aliased or written to find the clang rt. Edit: Not to sound like a smart-ass, but it seems there are a few of these provided in my version of Xcode. This has just gone at least an echelon beyond my level of how to do this. |
Thank you so much @argilo @markjfine. I found below. It seems macOS is special.
|
I copied all the required library to another Mac and can run the nrsc5 binary, but with error below. it can run successfully on my compiling Mac which is VMware VM, so no sound output. any idea?
|
I got a successful build using Homebrew with this:
Not exhaustively tested yet, but everything did build correctly and the binary runs. (Now to dig out my RTL-SDR tuner stick.) |
Hello,
I am trying to install on macOS 12.5.1 with Homebrew 3.6.2 and failed.
anyone can help?
thx
The text was updated successfully, but these errors were encountered: