Re: naclport ffmpeg static link error: cannot find -lavcodec

443 views
Skip to first unread message

Jackie Jin

unread,
Aug 3, 2012, 12:15:57 AM8/3/12
to native-cli...@googlegroups.com
I also imported nacl-mount lib through naclport, but similarly "cannot find -lnacl-mounts". My computer is corei7 mac. Don't know if it has anything to do with the computer architect.

On Thursday, August 2, 2012 8:32:03 PM UTC-7, Jackie Jin wrote:
Hi All,

I'm new to NACL and trying to exercise on using the external ffmpeg lib provided by naclport.
I made ffmpeg inside the naclport and it's compiled into the NACL toolchain.

But there is linkage problem when I try to link it.
I got "x86_64-nacl/bin/ld: cannot find -lavcodec".

This is the flag inside the Makefile LDFLAGS:= -lavcodec -lavutil -lppapi_cpp -lppapi

This is include inside my program
#include "libavcodec/avcodec.h"

When I tried to call avcodec_init() inside the avcodec lib, I got "undefined reference" error.
Is there something I'm missing or did wrong? thank you!

Jackie Jin

unread,
Aug 3, 2012, 2:25:04 AM8/3/12
to native-cli...@googlegroups.com
It seems after running 'make ffmpeg' inside naclport, the shared libs put inside the x86_64 lib, causing the x86_64/ld not finding the library.
Can anyone point out things I'm not doing right? Thanks.

khahn

unread,
Nov 7, 2014, 3:29:09 AM11/7/14
to native-cli...@googlegroups.com
hi jackie,

did you solved this problem?
i have same error.
i try to create player use ffmpeg in naclports.
but, when i try to link libavformat, out to following error.
"x86_64-nacl/bin/ld: cannot find -lavcodec"

how can i link this library???

thanks~

2012년 8월 3일 금요일 오후 3시 25분 4초 UTC+9, Jackie Jin 님의 말:
Reply all
Reply to author
Forward
0 new messages