Hi,
Has anyone succeeded to build and use pjsip2.8 on Raspberry Pi 3, with
Python bindings?
Can you share the followed steps?
Thanks.
*Alexandre *
Hi Alexandre,
For me, just standard build using configure script followed by make just
worked in Raspbian stretch. Note that I didn't cross compile. I used pjsua2
python binding (through swig) without a problem. Obsolete pusua-python also
seemed to work- at least examples ran.
Best,
Sangwoo
2019年3月11日(月) 午後11:00 Alexandre Gonçalves alexandre@silvagoncalves.com:
Hi,
Has anyone succeeded to build and use pjsip2.8 on Raspberry Pi 3, with
Python bindings?
Can you share the followed steps?
Thanks.
*Alexandre *
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
hi
Did you try the steps mentioned this Stackoverflow discussion?
[https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded]https://stackoverflow.com/questions/53736284/how-to-install-pjsua2-packages-for-python/53968703#53968703
pjsip - How to install pjsua2 packages for python? - Stack Overflowhttps://stackoverflow.com/questions/53736284/how-to-install-pjsua2-packages-for-python/53968703#53968703
These steps shall work. Step1: Create a directory. /PJSUA2/pjproject/src. Step2: install required modules. sudo apt-get install libasound2-dev libssl-dev libv4l-dev ...
stackoverflow.com
which is based on
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=178384#p1137398
I am able to do it using these steps. In the above discussion you will also find a clue that
for PI3B use:
-march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8
This shall be your
user.mak
This is for PJSUA2 (which can be used with python3).
Sekar
From: Alexandre Gonçalves alexandre@silvagoncalves.com
Sent: Monday, March 11, 2019 7:30 PM
To: pjsip list
Subject: [pjsip] Build PJSIP on Raspberry Pi 3
Hi,
Has anyone succeeded to build and use pjsip2.8 on Raspberry Pi 3, with Python bindings?
Can you share the followed steps?
Thanks.
Alexandre
Hi Sekar,
I'm getting an error on the step of *make *(make dep runs ok). The error
that comes up is:
/home/pi/source/pjproject-2.8/build/rules.mak:124: recipe for target
'../bin/pjlib-test-armv7l-unknown-linux-gnueabihf' failed
make[2]: *** [../bin/pjlib-test-armv7l-unknown-linux-gnueabihf] Error 1
make[2]: Leaving directory '/home/pi/source/pjproject-2.8/pjlib/build'
Makefile:113: recipe for target 'pjlib-test-armv7l-unknown-linux-gnueabihf'
failed
make[1]: *** [pjlib-test-armv7l-unknown-linux-gnueabihf] Error 2
make[1]: Leaving directory '/home/pi/source/pjproject-2.8/pjlib/build'
Makefile:14: recipe for target 'all' failed
make: *** [all] Error 1
I'm building pjsua 2.8.
Thanks.
Alexandre Gonçalves
............................................................................................................................
Email: alexandre@silvagoncalves.com
Sekar S sekarpdkt@hotmail.com escreveu no dia terça, 12/03/2019 à(s)
04:38:
hi
Did you try the steps mentioned this Stackoverflow discussion?
https://stackoverflow.com/questions/53736284/how-to-install-pjsua2-packages-for-python/53968703#53968703
pjsip - How to install pjsua2 packages for python? - Stack Overflow
https://stackoverflow.com/questions/53736284/how-to-install-pjsua2-packages-for-python/53968703#53968703
These steps shall work. Step1: Create a directory. /PJSUA2/pjproject/src.
Step2: install required modules. sudo apt-get install libasound2-dev
libssl-dev libv4l-dev ...
stackoverflow.com
which is based on
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=178384#p1137398
I am able to do it using these steps. In the above discussion you will
also find a clue that
for PI3B use:
-march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8
This shall be your
user.mak
This is for PJSUA2 (which can be used with python3).
Sekar
From: Alexandre Gonçalves alexandre@silvagoncalves.com
Sent: Monday, March 11, 2019 7:30 PM
To: pjsip list
Subject: [pjsip] Build PJSIP on Raspberry Pi 3
Hi,
Has anyone succeeded to build and use pjsip2.8 on Raspberry Pi 3, with
Python bindings?
Can you share the followed steps?
Thanks.
*Alexandre *
Hi
Can you share your user.mak.
Ideally it shall look like
export CFLAGS += -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8
If above doest not work, try
export CFLAGS += -march=armv8-a -mtune=cortex-a53
user.mak file shall be in base directory.
RPI3 is armv8-a.
Thanks.
Regards
Sekar
From: Alexandre Gonçalves alexandre@silvagoncalves.com
Sent: Friday, March 15, 2019 7:26 PM
To: Sekar S
Cc: pjsip list
Subject: Re: [pjsip] Build PJSIP on Raspberry Pi 3
Hi Sekar,
I'm getting an error on the step of make (make dep runs ok). The error that comes up is:
/home/pi/source/pjproject-2.8/build/rules.mak:124: recipe for target '../bin/pjlib-test-armv7l-unknown-linux-gnueabihf' failed
make[2]: *** [../bin/pjlib-test-armv7l-unknown-linux-gnueabihf] Error 1
make[2]: Leaving directory '/home/pi/source/pjproject-2.8/pjlib/build'
Makefile:113: recipe for target 'pjlib-test-armv7l-unknown-linux-gnueabihf' failed
make[1]: *** [pjlib-test-armv7l-unknown-linux-gnueabihf] Error 2
make[1]: Leaving directory '/home/pi/source/pjproject-2.8/pjlib/build'
Makefile:14: recipe for target 'all' failed
make: *** [all] Error 1
I'm building pjsua 2.8.
Thanks.
Alexandre Gonçalves
............................................................................................................................
Email: alexandre@silvagoncalves.commailto:alexandre@silvagoncalves.com
Sekar S <sekarpdkt@hotmail.commailto:sekarpdkt@hotmail.com> escreveu no dia terça, 12/03/2019 à(s) 04:38:
hi
Did you try the steps mentioned this Stackoverflow discussion?
[https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon@2.png?v=73d79a89bded]https://stackoverflow.com/questions/53736284/how-to-install-pjsua2-packages-for-python/53968703#53968703
pjsip - How to install pjsua2 packages for python? - Stack Overflowhttps://stackoverflow.com/questions/53736284/how-to-install-pjsua2-packages-for-python/53968703#53968703
These steps shall work. Step1: Create a directory. /PJSUA2/pjproject/src. Step2: install required modules. sudo apt-get install libasound2-dev libssl-dev libv4l-dev ...
stackoverflow.comhttp://stackoverflow.com
which is based on
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=178384#p1137398
I am able to do it using these steps. In the above discussion you will also find a clue that
for PI3B use:
-march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8
This shall be your
user.mak
This is for PJSUA2 (which can be used with python3).
Sekar
From: Alexandre Gonçalves <alexandre@silvagoncalves.commailto:alexandre@silvagoncalves.com>
Sent: Monday, March 11, 2019 7:30 PM
To: pjsip list
Subject: [pjsip] Build PJSIP on Raspberry Pi 3
Hi,
Has anyone succeeded to build and use pjsip2.8 on Raspberry Pi 3, with Python bindings?
Can you share the followed steps?
Thanks.
Alexandre
Hi Sekar,
My use.mak is:
export CFLAGS += -march=armv8-a -mtune=cortex-a53
#export CFLAGS += -march=armv7-a -mfpu=neon-vfpv4 -ffast-math
-mfloat-abi=hard
#export CFLAGS += -march=armv8-a -mtune=cortex-a53 -mfpu=neon-fp-armv8
-mfloat-abi=hard -mlittle-endian -munaligned-access -ffast-math -lasound
export LDFLGS +=
I tryed both options that you suggested and it fails for both. The output
of the make process is attached, in case you can look at it.
Thanks.
Alexandre Gonçalves
............................................................................................................................
Email: alexandre@silvagoncalves.com
Sekar S sekarpdkt@hotmail.com escreveu no dia domingo, 17/03/2019 à(s)
05:19:
Hi
Can you share your user.mak.
Ideally it shall look like
export CFLAGS += -march=armv8-a -mtune=cortex-a53
-mfpu=crypto-neon-fp-armv8
If above doest not work, try
export CFLAGS += -march=armv8-a -mtune=cortex-a53
user.mak file shall be in base directory.
RPI3 is armv8-a.
Thanks.
Regards
Sekar
From: Alexandre Gonçalves alexandre@silvagoncalves.com
Sent: Friday, March 15, 2019 7:26 PM
To: Sekar S
Cc: pjsip list
Subject: Re: [pjsip] Build PJSIP on Raspberry Pi 3
Hi Sekar,
I'm getting an error on the step of *make *(make dep runs ok). The error
that comes up is:
/home/pi/source/pjproject-2.8/build/rules.mak:124: recipe for target
'../bin/pjlib-test-armv7l-unknown-linux-gnueabihf' failed
make[2]: *** [../bin/pjlib-test-armv7l-unknown-linux-gnueabihf] Error 1
make[2]: Leaving directory '/home/pi/source/pjproject-2.8/pjlib/build'
Makefile:113: recipe for target
'pjlib-test-armv7l-unknown-linux-gnueabihf' failed
make[1]: *** [pjlib-test-armv7l-unknown-linux-gnueabihf] Error 2
make[1]: Leaving directory '/home/pi/source/pjproject-2.8/pjlib/build'
Makefile:14: recipe for target 'all' failed
make: *** [all] Error 1
I'm building pjsua 2.8.
Thanks.
Alexandre Gonçalves
............................................................................................................................
Email: alexandre@silvagoncalves.com
Sekar S sekarpdkt@hotmail.com escreveu no dia terça, 12/03/2019 à(s)
04:38:
hi
Did you try the steps mentioned this Stackoverflow discussion?
https://stackoverflow.com/questions/53736284/how-to-install-pjsua2-packages-for-python/53968703#53968703
pjsip - How to install pjsua2 packages for python? - Stack Overflow
https://stackoverflow.com/questions/53736284/how-to-install-pjsua2-packages-for-python/53968703#53968703
These steps shall work. Step1: Create a directory. /PJSUA2/pjproject/src.
Step2: install required modules. sudo apt-get install libasound2-dev
libssl-dev libv4l-dev ...
stackoverflow.com
which is based on
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=178384#p1137398
I am able to do it using these steps. In the above discussion you will
also find a clue that
for PI3B use:
-march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8
This shall be your
user.mak
This is for PJSUA2 (which can be used with python3).
Sekar
From: Alexandre Gonçalves alexandre@silvagoncalves.com
Sent: Monday, March 11, 2019 7:30 PM
To: pjsip list
Subject: [pjsip] Build PJSIP on Raspberry Pi 3
Hi,
Has anyone succeeded to build and use pjsip2.8 on Raspberry Pi 3, with
Python bindings?
Can you share the followed steps?
Thanks.
*Alexandre *