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 > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 06-18-2010, 07:03 AM
taurnil taurnil is offline
Junior Member
 
Join Date: Jun 2010
Posts: 2
taurnil is on a distinguished road
Default

rtmpdump-2.2e and ffmpeg-0.6


I have compiled rtmpdump from source (Linux) and when setting --enable-librtmp to compile ffmpeg, the make will barf on;

Code:
LD libavformat/libavformat.so.52
/usr/bin/ld: /usr/lib64/librtmp.a(rtmp.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/librtmp.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libavformat/libavformat.so.52] Error 1
So normally in this type of case I would add -fPIC to the CFLAGS. Then recompile the app, in this case rtmpdump, then recompile in this case ffmpeg and be on my merry way. However, adding -fPIC to the rtmpdump make process still causes the ffmpeg make to barf.

Any thoughts or pointers to resolve this?
Reply With Quote
  #2  
Old 06-18-2010, 10:05 AM
taurnil taurnil is offline
Junior Member
 
Join Date: Jun 2010
Posts: 2
taurnil is on a distinguished road
Default

Re: rtmpdump-2.2e and ffmpeg-0.6 [SOLVED]


Quote:
Originally Posted by taurnil View Post
I have compiled rtmpdump from source (Linux) and when setting --enable-librtmp to compile ffmpeg, the make will barf on;

Code:
LD      libavformat/libavformat.so.52
/usr/bin/ld: /usr/lib64/librtmp.a(rtmp.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/librtmp.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libavformat/libavformat.so.52] Error 1
So normally in this type of case I would add -fPIC to the CFLAGS. Then recompile the app, in this case rtmpdump, then recompile in this case ffmpeg and be on my merry way. However, adding -fPIC to the rtmpdump make process still causes the ffmpeg make to barf.

Any thoughts or pointers to resolve this?
Ah ha. It seems the CFLAG variable I was using to inject -fPIC was not being picked up by the Makefile. Manually inserting -fPIC in the CFLAG line fixed it.
Reply With Quote
  #3  
Old 06-18-2010, 03:15 PM
hyc hyc is offline
RTMPdump team
 
Join Date: Dec 2009
Posts: 169
hyc will become famous soon enoughhyc will become famous soon enough
Default

Re: rtmpdump-2.2e and ffmpeg-0.6


Manually inserting anything into the Makefile should never be necessary.

Use "make XCFLAGS=..." to add to the CFLAGS.

All of the available variables are clearly defined in the Makefile.
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 01:31 AM.


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