tmakkonen / sipcmd

sipcmd
327 stars 108 forks source link

Cannot Compile under Release = Raspbian GNU/Linux 10 (buster) #66

Open krysly opened 4 years ago

krysly commented 4 years ago

It is possible to use it with the following Raspbian Version?

   Release = Raspbian GNU/Linux 10 (buster)
    ##    Kernel = Linux 4.19.57-v7l+

I get the following errors:

[15:18:39] openhabian@openhab:/opt/sipcmd$ sudo apt-get install libpt-dev libopal-dev Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libopal-dev [15:20:16] openhabian@openhab:/opt/sipcmd$

[15:20:32] openhabian@openhab:/opt/sipcmd$ sudo make g++ -c -Wall src/main.cpp -o src/main.o -I/usr/include/opal -I/usr/include/ptlib -Isrc/ In file included from src/main.h:24, from src/main.cpp:24: src/includes.h:23:10: fatal error: ptlib.h: No such file or directory

include

         ^~~~~~~~~

compilation terminated. make: *** [Makefile:18: src/main.o] Error 1 [15:21:04] openhabian@openhab:/opt/sipcmd$

plutonic1 commented 4 years ago

I was able to install the dependencies by adding the following line to my /etc/apt/sources.list: deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi

Dont't forget sudo apt-get update afterwards.

tobiasr2000 commented 4 years ago

Oh dear on Raspberry 2B+ everything was fine, now on Raspberry 4 B with raspbina buster I can not compile simpcmd anymore. The file sip.h is missing. Here the error message:

[17:05:29] openhabian@openhab:~/sipcmd-master$ make g++ -c -Wall src/main.cpp -o src/main.o -I/usr/include/opal -I/usr/include/ptlib -Isrc/ -g -DDEBUG In file included from src/main.h:24, from src/main.cpp:24: src/includes.h:24:10: fatal error: sip/sip.h: No such file or directory

include <sip/sip.h>

      ^~~~~~~~~~~

compilation terminated. make: *** [Makefile:18: src/main.o] Error 1

How do I add the header file sip.h?

Thanks in advance for any help!

tobiasr2000 commented 4 years ago

With hint of plutonic1 the installation works. Thank you very much for this hint.

After installation I have discovered same issue as already described in #61 https://github.com/tmakkonen/sipcmd/issues/61

Any hints to solve this issue and get simcmd running? Thanks in advance for any help!

rleib commented 4 years ago

I have the same problem: src/includes.h:24:10: fatal error: sip/sip.h: No such file or directory

include <sip/sip.h>

Solution from plutonic1 does not help. Any ideas?

Thanks, Robert!

drexlma commented 4 years ago

use docker :) buster is atm not supported