Compile Error.(av_free)

VLC for Android and Chrome OS specific usage questions
robinwei1979
Blank Cone
Blank Cone
Posts: 10
Joined: 18 Aug 2012 22:44

Compile Error.(av_free)

Postby robinwei1979 » 20 Aug 2012 05:29

I compiled VLC for Android with the latest code, but got the following error:

************************************************************************
../../../../modules/codec/avcodec/video.c:105:3: warning: #warning FIXME
../../../../modules/codec/avcodec/video.c: In function 'InitVideoDec':
../../../../modules/codec/avcodec/video.c:255: warning: 'lowres' is deprecated (declared at /home/robin/Development/vlc/android/vlc/contrib/arm-linux-androideabi/include/libavcodec/avcodec.h:2653)
../../../../modules/codec/avcodec/video.c:447:3: warning: #warning FIXME
../../../../modules/codec/avcodec/video.c:457: error: implicit declaration of function 'av_free'
../../../../modules/codec/avcodec/video.c: In function 'DecodeVideo':
../../../../modules/codec/avcodec/video.c:652: warning: comparison between signed and unsigned integer expressions
make[6]: *** [libavcodec_plugin_la-video.lo] Error 1
make[6]: Leaving directory `/home/robin/Development/vlc/android/vlc/android/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[4]: *** [all-recursive] Error 1make[5]: Leaving directory `/home/robin/Development/vlc/android/vlc/android/modules/codec/avcodec'

make[3]: *** [all] Error 2
make[4]: Leaving directory `/home/robin/Development/vlc/android/vlc/android/modules/codec'
make[3]: Leaving directory `/home/robin/Development/vlc/android/vlc/android/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/robin/Development/vlc/android/vlc/android/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/robin/Development/vlc/android/vlc/android'
make: *** [all] Error 2

************************************************************************

Who can help me out? Thanks in advance.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Compile Error.(av_free)

Postby Jean-Baptiste Kempf » 20 Aug 2012 07:21

git pull in the vlc folder.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

robinwei1979
Blank Cone
Blank Cone
Posts: 10
Joined: 18 Aug 2012 22:44

Re: Compile Error.(av_free)

Postby robinwei1979 » 20 Aug 2012 08:53

Works. Thanks. But I got the follwing error:

***********************************************************************************
../../src/posix/thread.c: In function 'vlc_threadid':
../../src/posix/thread.c:151: error: 'SYS_gettid' undeclared (first use in this function)
../../src/posix/thread.c:151: error: (Each undeclared identifier is reported only once
../../src/posix/thread.c:151: error: for each function it appears in.)
../../src/posix/thread.c: In function 'vlc_set_priority':
../../src/posix/thread.c:812: warning: unused parameter 'th'
../../src/posix/thread.c: In function 'vlc_cancel':
../../src/posix/thread.c:845: error: implicit declaration of function 'pthread_cancel'
../../src/posix/thread.c: In function 'vlc_savecancel':
../../src/posix/thread.c:862: error: implicit declaration of function 'pthread_setcancelstate'
../../src/posix/thread.c:862: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)
../../src/posix/thread.c: In function 'vlc_restorecancel':
../../src/posix/thread.c:882: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)
../../src/posix/thread.c: In function 'vlc_testcancel':
../../src/posix/thread.c:899: error: implicit declaration of function 'pthread_testcancel'
make[4]: *** [posix/thread.lo] Error 1
make[4]: Leaving directory `/home/robin/Development/vlc/android/vlc/android/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/robin/Development/vlc/android/vlc/android/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/robin/Development/vlc/android/vlc/android/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/robin/Development/vlc/android/vlc/android'
make: *** [all] Error 2

***********************************************************************************
git pull in the vlc folder.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Compile Error.(av_free)

Postby Jean-Baptiste Kempf » 20 Aug 2012 09:39

Use compile.sh
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

robinwei1979
Blank Cone
Blank Cone
Posts: 10
Joined: 18 Aug 2012 22:44

Re: Compile Error.(av_free)

Postby robinwei1979 » 20 Aug 2012 09:52

Use compile.sh
Yes, I used the latest compile.sh(commit 445760 by Edward Wang).


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 55 guests