[Solved] cmdline-mythremote.tgz no longer works & can't recompile

For discussion of topics specific to MythTV on linux
Post Reply
Vaska
Junior
Posts: 57
Joined: Fri Sep 01, 2017 11:09 pm
Canada

[Solved] cmdline-mythremote.tgz no longer works & can't recompile

Post by Vaska »

Hi,

I really like using the cmdline-mythremote.tgz CLI remote found here http://www.phaze.org/mythtv/cmdline-mythremote.tgz.

It recently stopped working and when I try to recompile it I get these errors:

Code: Select all

make
gcc remote.c -o remote -lncurses
remote.c: In function ‘main’:
remote.c:29:8: warning: implicit declaration of function ‘strtol’; did you mean ‘strtok’? [-Wimplicit-function-declaration]
   29 |   port=strtol(args[2],NULL,10);
      |        ^~~~~~
      |        strtok
remote.c:62:2: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
   62 |  close(s);
      |  ^~~~~
      |  pclose
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /tmp/ccsJ6955.o: undefined reference to symbol 'keypad'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:8: remote] Error 1
User avatar
bill6502
Developer
Posts: 2307
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: cmdline-mythremote.tgz no longer works & can't recompile

Post by bill6502 »

Can't explain why it doesn't make, works on my Ubuntu 20.04 host. You can use the Services API,
although the following only sends one key at a time:

Code: Select all

curl --data Key=DOWN yourFrontendHostnameOrIP:6547/Frontend/SendKey
Note the API port number is different.
Vaska
Junior
Posts: 57
Joined: Fri Sep 01, 2017 11:09 pm
Canada

Re: cmdline-mythremote.tgz no longer works & can't recompile

Post by Vaska »

Thanks bill6502. I tried that trick (which is really cool to learn about) and it also didn't work. I haven't recompiled MythTV 31-Fixes since installing some system updates last week. I've just pulled the latest git changes and will try to recompile, maybe that'll fix my issues.
Vaska
Junior
Posts: 57
Joined: Fri Sep 01, 2017 11:09 pm
Canada

Re: cmdline-mythremote.tgz no longer works & can't recompile

Post by Vaska »

Looks like I just had a defunct mythfrontend process running and once I killed it the cmdline-mythremote worked again. Sorry for the false alarm.
Post Reply