symbol lookup error: /usr/local/lib/libavcodec.so: undefined

Support and queries relating to all previous versions of ZoneMinder
Locked
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

symbol lookup error: /usr/local/lib/libavcodec.so: undefined

Post by bhomass »

has any one seen this

I ran zmu -d 0 -q -v
and got

symbol lookup error: /usr/local/lib/libavcodec.so: undefined symbol: mm_flags

Thanks
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

This is a library file provided by ffmpeg that it is not finding. Check and make sure you have installed ffmpeg and if you are building from source you will need the ffmpeg-devel as well.
Regards,
Cordel
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

I already successfully build ffmepg from source. what this message says it not that libavcode.so is not found, but that the symbol mm_flags is not found. any ideas?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

There were no errors about undefined reference to `mm_flags' when you built ffmpeg?
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

can't be sure of that now. I just tried to recompile, but 'make' no longer does anything. is there a way to uninstal and start from scratch?

Thanks
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

ok. I did a make clean to start from scratch.

everything compiled and installed fine with only some warning. but this error message still come up when I ran the app.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I think from the build dir for ffmpeg you can run a
make uninstall
after that (only if the above comand worked) do a
make distclean
Then you can start over with ffmpeg. It has been a while since I've built and installed source so I could be wrong. I usualy now build the source into a packaged RPM and then install the RPM these days.
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

do you know if the ffmpeg used for zm needs the ffplay? I disabled that during configure. don't know if that's my problem.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I would say no, I don't think so, but I could not say for sure.
bhomass
Posts: 103
Joined: Sat Jun 11, 2005 6:54 pm

Post by bhomass »

ok, found my problem!

there is a second copy of libavcodec.so hiding in another dir. all my new makes did not replace it. my folly.

now, I still don't know which of my fixes were necessary. but the app does run now.

Thanks so much!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Sweet, Glad you got it beat.
:D
Cheers,
Cordel
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
Locked