Howdy. PJSIP seems to be an amazing project!
I am attempting to compile the 2.7.2 release on Raspian 4.9.80 / RPi3.
#define PJMEDIA_HAS_VIDEO 1
#define PJMEDIA_AUDIO_DEV_HAS_ALSA 1
#define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0
I am able to compile pjsip successfully without openh264, but when I install it and try to recompile pjsip (which properly recognizes it), I get the error below in the vid_codec_test file. This happens regardless of my entries in config_site.h (#define PJMEDIA_HAS_OPENH264_CODEC 1 has no impact).
my config_site.h file:
#define PJMEDIA_AUDIO_DEV_HAS_ALSA 1
#define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0
//tried just about every permutation of the following:
#define PJMEDIA_VIDEO_DEV_HAS_FFMPEG 1
#define PJMEDIA_HAS_OPENH264_CODEC 1
#define PJMEDIA_HAS_FFMPEG_VID_CODEC 1
#define PJMEDIA_HAS_FFMPEG_CODEC_H264 1
#define PJMEDIA_VIDEO_DEV_HAS_FFMPEG 1
#define PJMEDIA_HAS_OPENH264_CODEC 1
#define PJMEDIA_HAS_FFMPEG_VID_CODEC 1
#define PJMEDIA_HAS_FFMPEG_CODEC_H264 1
I can successfully compile with the ./configure --disable-openh264 flag.
output/pjmedia-test-armv7l-unknown-linux-gnueabihf/vid_codec_test.o: In function `vid_codec_test':
vid_codec_test.c:(.text+0x884): undefined reference to `pjmedia_codec_openh264_vid_init'
vid_codec_test.c:(.text+0x8b0): undefined reference to `pjmedia_codec_openh264_vid_deinit'
collect2: error: ld returned 1 exit status
/home/pi/pjsip/pjproject-2.7.2/build/rules.mak:124: recipe for target '../bin/pjmedia-test-armv7l-unknown-linux-gnueabihf' failed
make[2]: *** [../bin/pjmedia-test-armv7l-unknown-linux-gnueabihf] Error 1
make[2]: Leaving directory '/home/pi/pjsip/pjproject-2.7.2/pjmedia/build'
Makefile:243: recipe for target 'pjmedia-test-armv7l-unknown-linux-gnueabihf' failed
make[1]: *** [pjmedia-test-armv7l-unknown-linux-gnueabihf] Error 2
make[1]: Leaving directory '/home/pi/pjsip/pjproject-2.7.2/pjmedia/build'
Makefile:14: recipe for target 'all' failed
make: *** [all] Error 1
Here is the compile error. Any ideas I should try?
output/pjmedia-test-armv7l-
vid_codec_test.c:(.text+0x884)
vid_codec_test.c:(.text+0x8b0)
collect2: error: ld returned 1 exit status
/home/pi/pjsip/pjproject-2.7.
make[2]: *** [../bin/pjmedia-test-armv7l-
make[2]: Leaving directory '/home/pi/pjsip/pjproject-2.7.
Makefile:243: recipe for target 'pjmedia-test-armv7l-unknown-
make[1]: *** [pjmedia-test-armv7l-unknown-
make[1]: Leaving directory '/home/pi/pjsip/pjproject-2.7.
Makefile:14: recipe for target 'all' failed
make: *** [all] Error 1
Regards, olivebreath
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org