Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-13-2010, 04:00 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 66
hatembr is on a distinguished road
Default got ffmpeg compiled, but got error when compilin it in my project (help plz)

hey guys,

I got ffmpeg lib compiled correctly (or it seems to) in XCode, resulting in a .a file.
I imported the lib in a fresh new project but when I tried to compile it, I get this error :

Code:
  "_gDesiredBitRate", referenced from:
      _gDesiredBitRate$non_lazy_ptr in libffmpegLib.a(rtsp.o)
     (maybe you meant: _gDesiredBitRate$non_lazy_ptr)
  "_Status_SetNewStatusByKey", referenced from:
      _tcp_read in libffmpegLib.a(tcp.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status

I have no clue how to solve this. Help me fix please, I'm from few inches to get this compiled correctly I think ...

Thanks in advance





UPDATE :
just figured out that I was calling a function av_register_all(); from the ffmpeg API
when I comment it, it compiles with no prob
So the error is due to that call

Any idea ?

Last edited by hatembr; 09-13-2010 at 04:04 AM. Reason: compiler error coming from av_register_all();
hatembr is offline   Reply With Quote
Old 09-13-2010, 09:52 AM   #2 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 66
hatembr is on a distinguished road
Default

I compiled ffmpeg again, imported the new .a in my project and now I am just getting 1 error :

Code:
  "_gDesiredBitRate", referenced from:
      _gDesiredBitRate$non_lazy_ptr in libffmpegLib.a(rtsp.o)
     (maybe you meant: _gDesiredBitRate$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
the problem is that I have changed compiler settings so much that I don't remember what led to fix the second error.


I really need help with this please.
I can't find any clue on the net that helped me fix it :s
hatembr is offline   Reply With Quote
Old 09-13-2010, 02:44 PM   #3 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 66
hatembr is on a distinguished road
Default

bump
hatembr is offline   Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 333
13 members and 320 guests
Absentia, cgokey, fiftysixty, givensur, heshiming, iGamesDev, linkmx, michaelhansen, mraalex, PixelInteractive, raihan.zbr, Trickphotostudios
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:04 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0