Kamil Zadora | 1 May 14:11 2012
Picon

Problem building hamlib under Cygwin

Hello,

In short: I am trying to build hamlib under Cygwin :). and as you may already deduct it does not go smoothly.

I have latest revision cloned from the git repo, I tried following the README.win32 but it seems to be a bit old (2004?), I assume hamlib is not often compiled under cygwin lately :)
Mentioned file suggest to execute following:
$ export CC="gcc -mno-cygwin"
$ export CXX="g++ -mno-cygwin"
$ ./autogen.sh --prefix=/usr/local --disable-static  \
--without-tcl-binding --without-perl-binding \
--without-python-binding --build=i686-pc-cygwin --host=i686-pc-mingw32 \
--target=i686-pc-mingw32

Beside minor problems like --without-tcl-binding being no longer a proper option, script goes fine until:
...
checking if g++ -mno-cygwin supports -c -o file.o... (cached) yes
checking whether the g++ -mno-cygwin linker (/usr/bin/ld) supports shared libraies... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
configure: error: ltdl.h not found.  Please install the libltdl development
files package which provides /usr/include/ltdl.h
(perhaps called 'libltdl-dev' or 'libltdl-devel').

But the file exists:

$ test -e /usr/include/ltdl.h && echo "File exists" || echo "File does not exist"
File exists

I think that the relevant part of configure.ac script is:

dnl Check whether we can actually find ltdl.h
AC_CHECK_HEADER([ltdl.h], [AC_MSG_RESULT([yes])],
   [ AC_MSG_ERROR([ltdl.h not found.  Please install the libltdl development
files package which provides /usr/include/ltdl.h
(perhaps called 'libltdl-dev' or 'libltdl-devel').]) ])

My autoconf fu is weak... so I have no idea what could be wrong here, except maybe that the default value of optional fourth parameter in 
AC_CHECK_HEADER macro is not playing nice with my setup.

Here are my versions of required tools as per README.developer

gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
autoconf (GNU Autoconf) 2.68
automake (GNU automake) 1.11.3
libtool (GNU libtool) 2.4

Suggestions are much appreciated!

Kamil Zadora - SQ9IVL
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Hamlib-developer mailing list
Hamlib-developer <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hamlib-developer
Remi Chateauneu | 1 May 16:37 2012
Picon

Re: Problem building hamlib under Cygwin

Hi,

Maybe overriding CC and CXX erased the default include directory ?
Could you please check if the script could find other include files
located here ?

On Tue, May 1, 2012 at 1:11 PM, Kamil Zadora <kamil.zadora <at> gmail.com> wrote:
> Hello,
>
> In short: I am trying to build hamlib under Cygwin :). and as you may
> already deduct it does not go smoothly.
>
> I have latest revision cloned from the git repo, I tried following the
> README.win32 but it seems to be a bit old (2004?), I assume hamlib is not
> often compiled under cygwin lately :)
> Mentioned file suggest to execute following:
> $ export CC="gcc -mno-cygwin"
> $ export CXX="g++ -mno-cygwin"
> $ ./autogen.sh --prefix=/usr/local --disable-static  \
> --without-tcl-binding --without-perl-binding \
> --without-python-binding --build=i686-pc-cygwin --host=i686-pc-mingw32 \
> --target=i686-pc-mingw32
>
> Beside minor problems like --without-tcl-binding being no longer a proper
> option, script goes fine until:
> ...
> checking if g++ -mno-cygwin supports -c -o file.o... (cached) yes
> checking whether the g++ -mno-cygwin linker (/usr/bin/ld) supports shared
> libraies... yes
> checking dynamic linker characteristics... Win32 ld.exe
> checking how to hardcode library paths into programs... immediate
> checking ltdl.h usability... no
> checking ltdl.h presence... no
> checking for ltdl.h... no
> configure: error: ltdl.h not found.  Please install the libltdl development
> files package which provides /usr/include/ltdl.h
> (perhaps called 'libltdl-dev' or 'libltdl-devel').
>
> But the file exists:
>
> $ test -e /usr/include/ltdl.h && echo "File exists" || echo "File does not
> exist"
> File exists
>
> I think that the relevant part of configure.ac script is:
>
> dnl Check whether we can actually find ltdl.h
> AC_CHECK_HEADER([ltdl.h], [AC_MSG_RESULT([yes])],
>    [ AC_MSG_ERROR([ltdl.h not found.  Please install the libltdl development
> files package which provides /usr/include/ltdl.h
> (perhaps called 'libltdl-dev' or 'libltdl-devel').]) ])
>
> My autoconf fu is weak... so I have no idea what could be wrong here, except
> maybe that the default value of optional fourth parameter in
> AC_CHECK_HEADER macro is not playing nice with my setup.
>
> Here are my versions of required tools as per README.developer
>
> gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
> GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
> autoconf (GNU Autoconf) 2.68
> automake (GNU automake) 1.11.3
> libtool (GNU libtool) 2.4
>
> Suggestions are much appreciated!
>
> Kamil Zadora - SQ9IVL
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Hamlib-developer mailing list
> Hamlib-developer <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hamlib-developer
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
SourceForge.net | 1 May 22:25 2012
Picon
Picon

[Help] hamlib-1.2.15.1, Elektor SDR-USB missing

The following forum message was posted by moserwi at http://sourceforge.net/projects/hamlib/forums/forum/25919/topic/5241647:

Platform Kubuntu 11.10
downloaded the tarball ./configure, make, make install as root with no problems
but
rigctl --list does not show elektor sdr-usb any more

checked the definition in rigctl.h and the elektor sdr-usb is there
Ahm... sorry I am a little bit confused and have no Ideas on this...

Can I download the elektor definition and slam it in as a plugin somehow?

Tks for helping me out..

brgds willi

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
SourceForge.net | 1 May 23:06 2012
Picon
Picon

[Help] RE: hamlib-1.2.15.1, Elektor SDR-USB missing

The following forum message was posted by n0nb at http://sourceforge.net/projects/hamlib/forums/forum/25919/topic/5241647:

Do you have the libusb-dev package installed as noted in the README.betatester
file?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
SourceForge.net | 2 May 00:02 2012
Picon
Picon

[Help] RE: hamlib-1.2.15.1, Elektor SDR-USB missing

The following forum message was posted by moserwi at http://sourceforge.net/projects/hamlib/forums/forum/25919/topic/5241647:

yes, 2:0.1.12-18
I'll read README.betatester

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
SourceForge.net | 2 May 01:00 2012
Picon
Picon

[Help] RE: hamlib-1.2.15.1, Elektor SDR-USB missing

The following forum message was posted by moserwi at http://sourceforge.net/projects/hamlib/forums/forum/25919/topic/5241647:

ok was going through the readme but didn't see a hint...

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
SourceForge.net | 2 May 01:39 2012
Picon
Picon

[Help] RE: hamlib-1.2.15.1, Elektor SDR-USB missing

The following forum message was posted by moserwi at http://sourceforge.net/projects/hamlib/forums/forum/25919/topic/5241647:

purged all packages libhamlib hamlib* with synaptic ( had some 1.2.14.1 packages
installed too)
with 12.15.1
make uninstall
make clean
make distclean...
./configure
make
elektor 503 + 507 objects are created
make install
ldconfig
rigctl --list shows elector sdr-usb

though it went ok this time.

could be that the last installation did not purge some config files with the
old definitions?

Thank you for your helping hand...

brgds willi

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
SourceForge.net | 2 May 04:00 2012
Picon
Picon

[Help] RE: hamlib-1.2.15.1, Elektor SDR-USB missing

The following forum message was posted by n0nb at http://sourceforge.net/projects/hamlib/forums/forum/25919/topic/5241647:

Hard to say what was the cause.  I know that in the past that installing the
libusb-dev package has solved the Kist USB backends build issue.

Have fun, Willi.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Ricardo Leonardo | 3 May 13:50 2012
Picon

Re: python binding documentation / pcr1000

Hi,
Thanks for  the feedback and apologies for the delay.

my comments inline.

On Fri, Apr 20, 2012 at 3:53 AM, Nate Bargmann <n0nb <at> n0nb.us> wrote:
>
> * On 2012 18 Apr 21:10 -0500, Ricardo Leonardo wrote:
> > Hi,
> >
> > I'm on a Uni project concerning developing an automated scanning system
> > with an ICOM PCR1000 and linux.
> > I'm thinking on using hamlib as API for my sw, with python binding.
>
> Hi Ricardo.
>
> That is one way, the rigctld network daemon is another.
>
> > I already made some simple programs in python interacting with the radio,
> > but can't use essential features like scanning and checking squelch
> > status (as sw scanning (changing freq and checking signal) gets too slow).
> > Can't figure if ît's wrong method calling or unsupported operation. In
> > fact, pcr_get_dcd is implemented in pcr.c but "Can get DCD:N" on rig caps
> > (rigctl -m401 -u).
> > Any help on this?
>
> I see that the function pcr_get_dcd is currently only used by the
> pcr2500 backend.  Does the code in pcr_get_dcd at line 1683 make sense
> to you?   Does the PCR1000 support either of the 'I4' or 'I0' commands
> on that line?
>

Yes, the rig supports the function via I0? command, with the same
expected responses.

I tried to implement the function adding 	
    ".get_dcd = pcr_get_dcd," to pcr1000_caps in pcr1000.c.

tried: make distclean, ./configure, make
and ran the rigctld from hamlib-1.2.15.1/tests/.libs/

Still, the output from a simple connection with python calling get_dcd was:
    >>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    >>> s.connect((ip, port))
    >>> s.send("\x8b\n")
    2
    >>> print s.recv(b_size)
    RPRT -4

on the rigctld -vvvvv output:
    Connection opened from 127.0.0.1:53473
    rigctl(d):  'currVFO' '' '' ''

Maybe I didn't compile it correctly, this is not the correct way to
test it without installing?

Many thanks
--
73 de CT2GLW Ricardo

> > Is there any documentation on how to use the methods in python?
>
> None that I'm aware of.  You'll probably have to read the Hamlib.py file
> to learn was is needed.  No one has submitted any documentation for the
> bindings.
>
> 73, de Nate >>
>
> --
>
> "The optimist proclaims that we live in the best of all
> possible worlds.  The pessimist fears this is true."
>
> Ham radio, Linux, bikes, and more: http://www.n0nb.us
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Hamlib-developer mailing list
> Hamlib-developer <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hamlib-developer

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Jim Nicolet | 4 May 03:03 2012

IOS Question ....

Anyone know of a similar library for IOS (objective C) ? Same question for .net support (mono or ms) ?

Thanks for any information you can give.

Jim

Sent from my iPad2
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Gmane