Compiling pjproject-2.0-beta under Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We're having trouble getting pjproject 2.0 beta to work correctly
under ArchLinux. We successfully compiled pjproject using:
#define PJMEDIA_HAS_VIDEO 1
#define PJMEDIA_HAS_FFMPEG      1
#define PJMEDIA_VIDEO_DEV_HAS_SDL   1
in 'pjlib/include/pj/config_site.h' with SDL 1.3 passed using
--with-sdl with configure.

We run into 2 problems. The first is related to pjsua, the second is
related to compiling vidgui.

When we try to start pjsua without arguments, it gives us an failed
assertion and aborts:
21:54:22.983       pa_dev.c  ..Sound device count=7
21:54:22.983          pjlib  ..select() I/O Queue created (0x1308c58)
pjsua-x86_64-unknown-linux-gnu: ../src/pjmedia/codec.c:128:
pjmedia_codec_mgr_register_factory: Assertion `factory->op->destroy !=
((void *)0)' failed.

Using --help it won't give us the failed assertion, but any other
options we have tried will fail with the same error.

The second problem occurs when trying to compile vidgui. The
documentation says to first use qmake and thereafter make, however the
Makefile that is generated by qmake is missing a lot of includes and
libraries. We fiddled trying to find a correct Makefile based on
'pkg-config --libs libpjproject'. In the end there are no errors
raised for the includes, but the linking stage fails with the error:
vidgui.o: In function `MainWin::onVidEnabledChanged(int)':
vidgui.cpp:(.text+0xb3d): undefined reference to `pjsua_call_setting_default'
vidgui.cpp:(.text+0xb56): undefined reference to `pjsua_call_reinvite2'
vidgui.o: In function `MainWin::preview()':
vidgui.cpp:(.text+0xd93): undefined reference to `pjsua_vid_preview_stop'
vidgui.cpp:(.text+0xe09): undefined reference to
`pjsua_vid_preview_param_default'
vidgui.cpp:(.text+0xe31): undefined reference to `pjsua_vid_preview_start'
vidgui.cpp:(.text+0xf16): undefined reference to `pjsua_vid_preview_get_win'
vidgui.cpp:(.text+0xf22): undefined reference to `pjsua_vid_win_get_info'
vidgui.o: In function `MainWin::call()':
vidgui.cpp:(.text+0x1106): undefined reference to `pjsua_call_setting_default'
vidgui.cpp:(.text+0x1139): undefined reference to `pjsua_call_answer2'
vidgui.cpp:(.text+0x121a): undefined reference to `pjsua_call_setting_default'
vidgui.o: In function `MainWin::initVideoWindow()':
vidgui.cpp:(.text+0x1456): undefined reference to `pjsua_vid_win_get_info'

These functions seem to be defined in pjsua-lib and also seem to be
included during the compilation of pjproject.

The two problems might be related, though we have no idea why they
occur. Are we missing something else?



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux