[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 |