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

Tadd Torborg tadd at mac.com
Sun Mar 2 14:43:55 EST 2014


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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.trilug.org/pipermail/linux-ham/attachments/20140302/a13b912e/attachment.html>


More information about the Linux-ham mailing list