Re: [Hamlib-developer] How to link in binary
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: John R. <js...@ho...> - 2001-11-27 13:39:39
|
>From: Stephane Fillod <f4...@fr...> >To: Ham...@li... >Subject: Re: [Hamlib-developer] How to link in binary >Date: Mon, 26 Nov 2001 18:39:02 +0100 (MET) > > >En réponse à John Roberts <js...@ho...>: > > How do I link my binary with hamlib? Do I have to use libtool and do all >the > > DLL stuff? Or can I just link the .a for my radio into the binary? [I >can't > > get the latter to work -- it complains about calls to dl_open...] > >hmm, some output traces would help in that case. I'm suspecting Hamlib >is unable to load the backend (i.e. the .so or .la module). >Linking against Hamlib is be pretty straight forward. No need to worry >about libtool, it is there to be transparent. > > gcc myapp.o -lhamlib -o myapp > >Add -L/usr/local/lib if needed. Statically linking with .a if okay too. >If linking is fine, "ldd myapp" should report no unmet dependencies. I'll give that a shot. Thanks! > >When does the problem appear? at link time or at run time? >Are you using the RPM release? Does rigctl works for you? Run time. If it continues I'll post sessions. rigctl and testrig both work. I'm using testrig as the starting point for my application. When you compile testrig you use libtool and a really funking link-line so I'm trying to extract the code from that build process and simplify it. > >My guess is your application is not able to find the backend module. >This should not happen with the RPMs (unless there's a bug waiting for a >fix :) I might try and load the RPMs so I can easily link the library in. >In the other cases, you may have to play with LD_LIBRARY_PATH. > > > BTW, I still can't read sig strength or freq from my Icom 756Pro. Is >that > > right? I'm using 1.1.2. > >Same question, are you using rigctl to query freq and sig strength? >What are the error message (add -vvvv for verbose mode) ? No, I'm using testrig and it says something like "Feature not supported" BTW, here's what I'm up to: I have a "product" that collects and processes signals in the HF spectrum. In order to test my product I have an Icom 756Pro and some special modems that I use to transmit test signals into a dummy load to see if my product can detect them. Hamlib is saving me SOOO much time because with it I will be able to automate most of my testing. I can use hamlib to move the transmitter around the bands and see how my product performs. What I want to do next is write a GUI for hamlib. Has anyone done this already? I'm thinking that it's best to do it Java so I'm going to use JNI to call Hamlib and use RMI to allow the GUI to live in a web-browser on a remote machine. Should be pretty neat. Obviously all this code will be GPL under the same terms as Hamlib. Cool? Has anyone already done this? John _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |