Hello Mike,
which packages are installed at your system? There are several hamlib* packages, but there are two important, which you need: libhamlib-dev libhamlib-utils I think the libhamlib-dev contains the header files and libraries, utils package contains rigctl and another binary tools. That depends from author of package. Once upon I looked the source of hamlib, I found few small bugs in Python code - so I have installed hamlib from source. You can check the state of the packages: dpkg -l "*hamlib*" If you see there is the libhamlib-dev mark as installed (ii sign in the front of line), the headers and libraries are installed - then please send the full output of gcc. 73, Ervin HA2OS On Tue, Dec 10, 2013 at 05:51:43AM -0600, Mike Waters wrote: > Hello Ervin, > > Thank you. Hamlib seems to be installed in Synaptic, but rotator.h is > nowhere to be found and sothe code would not compile. I'm not sure what to > do right now. > > 73, Mike > www.w0btu.com > > > On Mon, Dec 9, 2013 at 4:26 PM, Ervin Hegedüs <airw...@gmail.com> wrote: > > > Hello Mike, > > > > may be you don't need to reverse any Pascal code :) > > > > I hope, every Linux user had been installed Hamlib - and Hamlib > > contains many good functions, eg. it can calculate the distance > > (and bearing) between two locator. > > > > Here is a sample code: > > > > ==%== > > #include <stdio.h> > > #include <hamlib/rotator.h> > > > > int main(int argc, char ** argv) { > > double s1long, s1lat, s2long, s2lat; > > char s1qra[] = "EM37cg"; > > char s2qra[] = "jn97om"; > > double dist = 1000, az = 90; > > > > locator2longlat(&s1long, &s1lat, s1qra); > > locator2longlat(&s2long, &s2lat, s2qra); > > > > printf("W0BTU coords: lat: %f lon: %f\n", s1lat, s1long); > > printf("HA2OS coords: lat: %f lon: %f\n", s2lat, s2long); > > > > qrb(s1long, s1lat, s2long, s2lat, &dist, &az); > > > > printf("distance between W0BTU and HA2OS: %f km, dir: %f\n", dist, az); > > return 0; > > } > > ==%== > > > > You can compile that code with this command: > > > > gcc -Wall qrasrc.c -lhamlib > > > > and run: > > > > $ ./a.out > > W0BTU coords: lat: 37.270833 lon: -93.791667 > > HA2OS coords: lat: 47.520833 lon: 19.208333 > > distance between W0BTU and HA2OS: 8485.799136 km, dir: 40.000000 > > > > These values are the short path info's. > > > > > > Please note, this is just an after-a-fast-explore snippet, there > > isn't any error handling. > > > > > > 73, > > > > > > Ervin > > HA2OS > > > > > > On Sun, Dec 08, 2013 at 08:24:55PM -0600, Mike Waters wrote: > > > Thanks to Pat's help via e-mail, I was able to get tlf working for the > > ARRL > > > 160. I have never used tlf before, and love it. I noticed that tlf's > > > constant score update feature adds to the enjoyment of the contest as > > well > > > as providing some incentive to keep going when a body gets tired. :-) > > > > > > I know that tlf can be used in the Stew Perry for logging, but will not > > > display the score. I would really, REALLY like to see it display the > > > running score for the Stew (at the end of this month), which is based on > > > the distance between grid squares. > > > > > > I just did some searching and found some C source that I believe could be > > > used for that here: > > > > > > http://dev.unclassified.de/en/source/locator-distance > > > http://dev.unclassified.de/en/source/maidenheadlocator > > > > > > There are links on those pages that appear to lead to more useful code, > > > including Pascal, which I used to program in years ago. I've done very > > > little in C. > > > > > > I know nothing about the C source structure of tlf, and I was wondering > > if > > > anyone could steer us in the right direction. I would appreciate any > > advice. > > > > > > 73, Mike > > > www.w0btu.com > > > > > _______________________________________________ > > > Tlf-devel mailing list > > > Tlf-devel@nongnu.org > > > https://lists.nongnu.org/mailman/listinfo/tlf-devel > > > > > > -- > > I � UTF-8 > > _______________________________________________ Tlf-devel mailing list Tlf-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tlf-devel