Thread: [Hamlib-developer] libhamlib frontend ok
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Frank S. <vk...@ix...> - 2000-09-29 03:49:38
|
Hi, Some activity, when not watching Olympics... :) I have successfully built testrig.c and linked it against libhamlib frontend , and run part of it successfully - cool !!!!!!!!! rig.c ----- Removed rig_caps references for the time being, and replaced with a more generic declaration. At least now I can build "libhamlib.0.0.1" ok, and link testrig against it, and run it !! yippeee :-) #if 0 static const struct rig_caps *rig_base[] = { &ft747_caps, &ic706_caps, &ic706mkiig_caps, /* ... */ NULL, }; #endif /* * removed references to xxx_caps for testing. perhaps we should use * the declaration below, an dthnk about populating it another way -- FS * */ #define MAXRIGSIZE 10 /* put this in .h later */ static const struct rig_caps *rig_base[MAXRIGSIZE]; Also, Added a few printf's to verify rig_xxx is being called ok. Makefile.testrig ---------------- Created this make file to allow compiling and linking of testrig.c against "libhamlib" make -f Makefile.testrig make -f Makefile.testrig runtest make -f Makefile.testrig cleanlocal Some output as follows, we are getting closer !! [frank@kirk common]$ make -f Makefile.testrig runtest LD_LIBRARY_PATH="./lib" ./testrig ; ldd ./testrig testrig:main() has been called rig:rig_init called libm.so.6 => /lib/libm.so.6 (0x4001a000) libhamlib.so.0 => ./lib/libhamlib.so.0 (0x40037000) libc.so.6 => /lib/libc.so.6 (0x4003c000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) [frank@kirk common]$ Outstanding ----------- 1. Get a good way of populating rig_base[] array. 2. Test drive a backend lib after frontend dlopens the approriate backend. 3. Symbol resolution - needs a generic approach here.. Cheers / Frank.. -- Frank Singleton VK3FCS Email: victor kilo three foxtrot charlie sierra at ix dot netcom dot com |
From: Stephane F. <f4...@fr...> - 2000-10-01 14:23:41
|
Hi, I can't tell you for the Olympics, I don't have TV. However, I heard on the radio that the french basket ball team made his way to final, beating you know who during their previous game ;-) Besides that, I don't think we have a chance with the USA.. Okay, enough noise, let have some signal: I've finaly reorganized a bit the Hamlib directories, please see my previous mail for an idea of the new tree. The common/ directory is to be removed very soon (-> Attic), all the sources moved to src/ Next, I've played a bit with automake/autoconf. Now, the whole Hamlib module is ruled by these handy applications. Once you have the configure.in, and Makfile.am's files, here is what you need to do in the hamlib dir the first time: $ aclocal $ autoheader $ automake --add-missing --copy --include-deps $ autoconf If the main Makefile is already generated (by ./configure), then the sub Makfile will be automatically generated (ie. no need to re-issue all these commands! make and that's it!). This is pretty cool, the only thing I've haven't figured out is the shared lib directory setting. Right now, these files are located in src/.libs/, icom/.libs/, ft847/.libs/, and so on. So if you want to run any of the tests/ dir apps, you will have to set your LD_LIBRARY_PATH to all these dirs. This is only a quick work around until we have the backend registering interface. $ export LD_LIBRARY_PATH=`pwd`/src/.libs:`pwd`/ft847/.libs:`pwd`/ft747/.libs:`pwd`/icom/.libs The good news is all of this compile, link, run, and do what it is supposed to do! Yesterday, I grabbed a MAX232, a handfull of caps to make a V.24<->CI-V converter, and I am now able to control my IC706MKIIG using hamlib!!! yipeee :-) Well, I still have a bunch of API calls to implement, but that should be fairly easy with the generic layout. Meanwhile, I've added couple of simple features, like convenient debugging, generic bcd functions, and a printcaps program that dumps in a human readable form the capabilities of a rig. There must other changes I forget to mention here, but they're listed in the CVS rep (BTW, maybe a cvs-commit-digest mailing list would help) Next on the TODO list: the backend registering stuff with dynamic loading.. Big time! -- Stephane Fillod F4CFE |
From: Frank S. <vk...@ix...> - 2000-10-02 00:26:32
|
Stephane Fillod wrote: > I've finaly reorganized a bit the Hamlib directories, > please see my previous mail for an idea of the new tree. > The common/ directory is to be removed very soon > (-> Attic), all the sources moved to src/ > Ok, > Next, I've played a bit with automake/autoconf. Now, the whole > Hamlib module is ruled by these handy applications. > Once you have the configure.in, and Makfile.am's files, > here is what you need to do in the hamlib dir the first time: > > $ aclocal > $ autoheader > $ automake --add-missing --copy --include-deps > $ autoconf > > If the main Makefile is already generated (by ./configure), > then the sub Makfile will be automatically generated > (ie. no need to re-issue all these commands! make and that's it!). > This is pretty cool, the only thing I've haven't figured > out is the shared lib directory setting. > Right now, these files are located in src/.libs/, icom/.libs/, > ft847/.libs/, and so on. > So if you want to run any of the tests/ dir apps, you will have > to set your LD_LIBRARY_PATH to all these dirs. This is only a quick > work around until we have the backend registering interface. > > $ export LD_LIBRARY_PATH=`pwd`/src/.libs:`pwd`/ft847/.libs:`pwd`/ft747/.libs:`pwd`/icom/.libs > Useful info, Lets put this in in the INSTALL or README file.. > The good news is all of this compile, link, run, and do what > it is supposed to do! Yesterday, I grabbed a MAX232, a handfull of caps > to make a V.24<->CI-V converter, and I am now able to control > my IC706MKIIG using hamlib!!! yipeee :-) go hamlib !! > Well, I still have a bunch of API calls to implement, but that should > be fairly easy with the generic layout. > > Meanwhile, I've added couple of simple features, like convenient > debugging, generic bcd functions, and a printcaps program that dumps > in a human readable form the capabilities of a rig. > There must other changes I forget to mention here, but they're > listed in the CVS rep (BTW, maybe a cvs-commit-digest mailing list would help) > Done, see ham...@li... SHould be visible soon... > Next on the TODO list: the backend registering stuff with dynamic loading.. > Big time! > Yup, sounds good to me. I am in the middle of building a house at the moment, and plan to move in in 4 weeks, so I am VERY BUSY !!!! But I will try and have at least weekly visit and updates .. Cheers / Frank.. -- Frank Singleton VK3FCS Email: victor kilo three foxtrot charlie sierra at ix dot netcom dot com |