-
Notifications
You must be signed in to change notification settings - Fork 32
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
macos build #89
Comments
Possibly, not sure which packages from homebrew you would need though to be honest, the other hurdle would also be pulse audio, since I added that as a requirement as well, doing away with OSS and PortAudio entirely. I'm assuming all the mac homebrew packages include the dev components for building as well. I don't suppose it can hurt to homebrew install ncurses and pulseaudio and see what happens. I don't own a mac, so this is one of those things that I can't test out and see for myself. |
Apparently, Pulseaudio is being detected (though I can't tell what happens next!) Brew installs nucurses correctly albeit in keg mode, not directly linked for compilers. Setting ncurses' path variables however is not enough. I see there's an issue with curses/ncurses detection in online literature, but I'm not very proficient (actually not proficient at all) with Cmake and documentation on FindCurses doesn't help me. It should be solvable in principle, because other SDR applications I've built make use of ncurses. Thanks for your input, maybe some other Mac users have found a solution! For the moment I'll stick to dsd rtl branch, for me correct usage is far from trivial... |
I honestly have no idea, the only other thing I could think of to try would be to try to build ncurses from the source code first, and then see if it works properly. https://github.com/mirror/ncurses If you wanted to try to do a quick mod to the original rtl branch source code, you could make the change mentioned in this issue and do a rebuild if you wanted to try to run it at 12kHz for example. |
That sounds promising, I've already experienced the need to build from source, not from brew, with some libraries. Either this or maybe a brew HEAD/link combination. I saw comparchitect's note on defining a 12000 rate instead of 48000, it looks more suitable for DMR. Thanks, again! |
Just wanted to add ncurses detection has been solved with a "-D CMAKE_PREFIX_PATH=" option pointing to the Homebrew install of ncurses 6.3.
But I refuse giving up too soon! |
One step forward. Could be the same or similar fix to what you had to do with ncurses to make that work as well. Another thing to try in the cmake/FindPULSEAUDIO.cmake file is to try to hard code the path to the pulseaudio.h and simple.h to where they are stored on your directory structure here:
|
@lawendel Wanted to get back in touch with you, was working on a new 'lite' version based on the current main branch, and was wondering on the other versions that you've used (szechy with rtl support) what audio output method do you use, do you use the OSS output method, or do you use port audio output? Also, wasn't entirely sure which internal method I needed, dsd originally made a check against this line, I have no idea if current macs (or any older macs) needed this include or not.
What full command do you give to the szenchy rtl branch to get it going with rtl input and audio output on your m1 mac? |
Sorry for this @lwvmobile, I've missed your comment's notification and I've just read this message. I'll be back with a feedback on this in a while. Lately, work has been keeping me off my Mac porting experiments! |
Excuse me hijacking the ticket as I'm too trying to build the project on MacOS. It seems like I overcome the issues with dependencies but I bumped into the following errors during
To me it seems like I either need to use a different version of gcc or provide a flag. @lwvmobile could you please give a hint on what exactly could be the cause? The version I'm trying with:
|
I honestly don't know what to tell you regarding this, but the best I can tell is that Apple Clang (or maybe any Clang) doesn't like implicit function declarations, so if you could find a way to switch to gcc instead of Clang, then it might work for you, but since I don't have any Apply stuff to test on or figure out (which would be an entirely new learning experience trying to figure that out to begin with) I really wouldn't know what to advise you on how to go about doing that, assuming that is the only thing needed to figure it out. It might also heavily rely on what kind of hardware you have (Intel vs M1, etc, assuming M1 because its arm64??) |
I've already installed both the original dsd master and its rtl branch on my Macbook Air M1 with Monterey, but it would be nice to try for the new bandwidth options introduced with dsd-fme. Trying with the usual build instructions I fail with a
Could NOT find Curses (missing: CURSES_INCLUDE_PATH)
error message. I know Curses is available on MacOS via Homebrew/ncurses, would installing it be a direct solution to my problem or I'd rather modify the INCLUDE path in Cmakelists.txt? Or completely make without Curses?
Thanks!
The text was updated successfully, but these errors were encountered: