【发布时间】:2014-09-28 00:29:13
【问题描述】:
我正在尝试使用 MinGW 在我的 Windows 7 PC 上构建具有 Windows 操作系统视频支持的 PJSIP。 遵循 PJSIP 的官方指南: http://trac.pjsip.org/repos/wiki/Getting-Started/Autoconf#VideoSupportfor2.0andabove
在没有视频支持的情况下构建 PJSIP 对我来说可以正常工作。
- 我正在使用来自 SVN 的最新 PJSIP 2.2.1
- SDL2-devel-2.0.3-mingw.tar.gz(MinGW 32/64 位)
- ffmpeg-20140805-git-de41798-win32-dev
我在 config_site.h 文件中添加了“#define PJMEDIA_HAS_VIDEO 1” 我正在使用以下选项构建 PJSIP: ./configure --with-ffmpeg="/c/PJSIP/ffmpeg" --with-sdl="/c/PJSIP/SDL"
但我对 SDL 有以下编译错误:
c:/PJSIP/SDL/lib/libSDL2main.a(SDL_windows_main.o): In function `console_main':
/Users/slouken/release/SDL/SDL2-2.0.3-source/foo-x86/../src/main/windows/SDL_win
dows_main.c:140: undefined reference to `SDL_main'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [../bin/pjsua2-test-i686-pc-mingw32] Error 1
make[2]: Leaving directory `/c/PJSIP/trunk/pjsip/build'
make[1]: *** [pjsua2-test-i686-pc-mingw32] Error 2
make[1]: Leaving directory `/c/PJSIP/trunk/pjsip/build'
make: *** [all] Error 1
同样的错误也适用于 SDL-2.0.2。
【问题讨论】:
标签: video ffmpeg mingw sdl pjsip