[Linux-ham] attempting to compile BPQtermTCP on Raspberry PI

Tadd Torborg tadd at mac.com
Sun Mar 2 16:07:15 EST 2014


Had a "doh" moment.  I was running this via SSH.  It wanted to be run local to the PI   Doh.   Works now.  Very nice.

Sent from my abacus

> On Mar 2, 2014, at 2:43 PM, Tadd Torborg <tadd at mac.com> wrote:
> 
> I found a program called BPQtermTCP that is just wonderful on MSWindows.  It gives a nice keyboard entry area while showing the echo of things that have been sent with <ENTER> as well as any incoming traffic on the BPQ node.  
> 
> This site explains how KB8PMY got it to work on Linux and provides the source code
> http://kb8pmy.net/index.php/hamradio/packet-radio/termtcp
> 
> This site has the source code  
> http://kb8pmy.net/index.php/termtcpsource
> 
> I put it on the PI and attempted to make it.  It called out libraries.  
> 
> CC = gcc
> 
> CFLAGS = -Wall			 	\
> 	-DG_DISABLE_DEPRECATED 	 	\
> 	-DGDK_DISABLE_DEPRECATED 	\
> 	-DGDK_PIXBUF_DISABLE_DEPRECATED
> 	
> TermTCP: TermTCP.c 
> 	$(CC) TermTCP.c -o TermTCP $(CFLAGS) `pkg-config gtk+-2.0 --cflags --libs` 
> 
> Clean:
> 	rm -f *.o TermTCP
> 	
> 
> 
> So.. I did this:
> sudo apt-get install libgtk2.0-dev
> I found a comment on the web about GTK lib and it suggested this:  So I did this.  
> sudo apt-get install glade
> 
> 
> and then make
> which seemed to generate an output file even though giving warnings.  But then the program won’t run.  It says
> pi at dewvil ~/bpqterm $ make
> gcc TermTCP.c -o TermTCP -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED `pkg-config gtk+-2.0 --cflags --libs` 
> TermTCP.c: In function ‘get_fontname’:
> TermTCP.c:886:5: warning: passing argument 2 of ‘strcpy’ from incompatible pointer type [enabled by default]
> /usr/include/string.h:128:14: note: expected ‘const char * __restrict__’ but argument is of type ‘struct PangoFontDescription *’
> pi at dewvil ~/bpqterm $ ls
> Makefile  TermTCP  TermTCP.c  TermTCP.c.tar
> pi at dewvil ~/bpqterm $ ./TermTCP
> 
> (TermTCP:11942): Gtk-WARNING **: cannot open display: 
> 
> 
> I’m not a very good linux hacker, yet.  This may be trivial for all I know.  What next?
> 
> Thanks.
>     Tadd   KA2DEW
> 
> Tadd Torborg
> tadd at mac.com
> 
> 
> 
> _______________________________________________
> Linux-ham mailing list
> Linux-ham at trilug.org
> http://www.trilug.org/mailman/listinfo/linux-ham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.trilug.org/pipermail/linux-ham/attachments/20140302/a1edef52/attachment.html>


More information about the Linux-ham mailing list