-
Notifications
You must be signed in to change notification settings - Fork 66
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
gpssim.c uses conio.h which isn't available on linux so can't compile #13
Comments
Sorry for the trouble. I'm not a Linux person, and the code was only tested on the Windows. You can find the source code for the "khbit" and "getch" equivalents for Linux on the net. |
@nzkarit does this help at all? https://sourceforge.net/projects/linux-conioh/ or this http://stackoverflow.com/questions/29335758/using-kbhit-and-getch-on-linux |
I've forked this repo and got it compiling and running on Linux with only a few tweaks, mostly just using ncurses for getch (from ncurses-dev) and adding a little khbit function, plus a small change to the Makefile to link to the ncurses lib. I haven't coded in C for many years now, so there's probably some improvements that can be made to whatever I do. I'm going to clean it up a bit this weekend and see if osqzss wants to pull it, but if you're interested in playing with it now it's available here: https://github.com/keith-citrenbaum/bladeGPS I'm going to also try to get it cycling on OS X as well this weekend. |
@keith-citrenbaum there seems to be an issue with your code while using the interactive mode. No key can be pressed, I can't even exit the program using Ctrl+C. |
Ack! You're right @Robert-steve. I just tested it with the static mode, not interactive. I'll take a look at it this evening. |
I think that it would be better to use getchar() instead of getch(). I will test and give some feedback. |
Anyone ever able to compile this in Linux with functional interactive mode? I tried keith-citrenbaum's code however I continued to run into ncurses errors. I also tried to run the windows complied version in wine (with ubuntu) and couldn't get it to initialize the bladeRF. I think wine can work, but I'd rather find a way to run this natively in linux if possible, thank you. |
Try to build from the latest source. It's not working quite right but can be some help. I couldn't figure out the way to clear the STDIN buffer after reading a single character with getchar(). |
Indeed this works thank you very much! |
I have added a little more touch. It works much better. |
I just compiled it on raspbian and got some warnings: tmax.mm, hh, etc "may be used uninitialized in this function" However it appears to run fine. I couldn't get a fix but that could have been because I was lazy and used the 2 year old brdc file in the directory as opposed to grabbing a new one and setting an appropriate time. (I get some live sky leakage where I'm at.) |
Hello, I have problem with installation: |
I can't compile a program containing conio.h |
gpssim.c uses conio.h, which from my googling is Windows only. When you run make on linux you get the following error:
The text was updated successfully, but these errors were encountered: