Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Broadcasting streaming media > Re-broadcasting streaming media
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 07-06-2011, 10:39 AM
andersoz andersoz is offline
Junior Member
 
Join Date: Jun 2011
Posts: 1
andersoz is on a distinguished road
Default

Compile MPlayer with librtmp on Windows


I am a Java Developer that is trying to patch an abandoned C# project that needs to play an rtmpe stream. I would like to compile mplayer with librtmp so that I can simply pass "ffmpeg://rtmpe://....." to mplayer. I have successfully compiled both rtmpdump with openssl and mplayer using mingw. However, I cannot get librtmp linked correctly to mplayer. Whenever I run ./configure, RTMP library check always comes up no. I've tried putting librtmp.a and librtmp.dll in the mingw/lib folder and putting the entire librtmp folder inside mingw/include. I appears that the OpenSSL libraries aren't being found, but they were found when compiling rtmpdump? Can someone walk me through the correct way to add librtmp to mplayer using mingw?

Here's a sample of the rtmp section when I run configure:
Code:
============ Checking for RTMPDump Streaming Media library ============

#include <librtmp/rtmp.h>
int main(void) { RTMP_Socket(NULL); return 0; }

gcc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99  -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer /tmp/mplayer-configure-27683-1176/tmp.c -Ilibdvdread4 -I. -Iffmpeg  -fno-common    -lwinmm -ffast-math -lws2_32 -liconv -lz -ladvapi32 -lole32  -lgdi32 -lopengl32 -lgdi32 -lwinmm  -o /tmp/mplayer-configure-27683-1176/tmp.exe -lrtmp
C:/DOCUME~1/Zach/LOCALS~1/Temp/mplayer-configure-27683-1176/tmp.c: In function 'main':
C:/DOCUME~1/Zach/LOCALS~1/Temp/mplayer-configure-27683-1176/tmp.c:2:1: warning: implicit declaration of function 'RTMP_Socket'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x2d9): undefined reference to `BN_new'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x2f3): undefined reference to `BN_set_word'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x2ff): undefined reference to `BN_cmp'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x313): undefined reference to `BN_copy'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x323): undefined reference to `BN_sub_word'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x32f): undefined reference to `BN_cmp'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x33f): undefined reference to `BN_CTX_new'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x35f): undefined reference to `BN_mod_exp'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x36a): undefined reference to `BN_CTX_free'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x36f): undefined reference to `BN_value_one'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x37b): undefined reference to `BN_cmp'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x38c): undefined reference to `BN_free'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x440): undefined reference to `DH_generate_key'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x454): undefined reference to `BN_hex2bn'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x475): undefined reference to `BN_free'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x48f): undefined reference to `BN_free'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x49a): undefined reference to `BN_free'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x4b3): undefined reference to `BN_free'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x504): undefined reference to `HMAC_CTX_init'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x509): undefined reference to `EVP_sha256'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x52e): undefined reference to `HMAC_Init_ex'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x53e): undefined reference to `HMAC_Update'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x554): undefined reference to `HMAC_Final'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x55c): undefined reference to `HMAC_CTX_cleanup'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x679): undefined reference to `HMAC_CTX_init'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x67e): undefined reference to `EVP_sha256'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x6a4): undefined reference to `HMAC_Init_ex'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x6b8): undefined reference to `HMAC_Update'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x6ce): undefined reference to `HMAC_Final'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x6d6): undefined reference to `HMAC_CTX_cleanup'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x71b): undefined reference to `RC4_set_key'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x723): undefined reference to `HMAC_CTX_init'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x728): undefined reference to `EVP_sha256'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x74e): undefined reference to `HMAC_Init_ex'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x768): undefined reference to `HMAC_Update'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x778): undefined reference to `HMAC_Final'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x780): undefined reference to `HMAC_CTX_cleanup'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x7c5): undefined reference to `RC4_set_key'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xa64): undefined reference to `inet_addr@4'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xa79): undefined reference to `htons@4'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xacc): undefined reference to `gethostbyname@4'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xb44): undefined reference to `BN_bin2bn'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xb5d): undefined reference to `BN_hex2bn'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xb85): undefined reference to `BN_free'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xb8d): undefined reference to `BN_free'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xba2): undefined reference to `DH_compute_key'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xbcc): undefined reference to `DH_new'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xbd7): undefined reference to `BN_new'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xbf1): undefined reference to `BN_hex2bn'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xc08): undefined reference to `BN_set_word'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xc20): undefined reference to `DH_free'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xc4c): undefined reference to `BN_num_bits'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xc8e): undefined reference to `BN_bn2bin'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xdd7): undefined reference to `SSL_load_error_strings'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xddc): undefined reference to `SSL_library_init'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xde1): undefined reference to `OpenSSL_add_all_digests'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xde6): undefined reference to `SSLv23_method'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xdee): undefined reference to `SSL_CTX_new'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xe13): undefined reference to `SSL_CTX_ctrl'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0xe20): undefined reference to `SSL_CTX_set_default_verify_paths'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x1ef1): undefined reference to `SSL_read'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x1f01): undefined reference to `WSAGetLastError@0'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x1fa1): undefined reference to `recv@16'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x2162): undefined reference to `send@16'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x2274): undefined reference to `SSL_shutdown'
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../librtmp.a(rtmp.o):rtmp.c:(.text+0x2282): undefined reference to `SSL_free'
collect2: ld returned 1 exit status
Reply With Quote
Reply Post New Thread
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 08:19 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons