Page 1 of 1

Compile Error.(av_free)

Posted: 20 Aug 2012 05:29
by robinwei1979
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.

Re: Compile Error.(av_free)

Posted: 20 Aug 2012 07:21
by Jean-Baptiste Kempf
git pull in the vlc folder.

Re: Compile Error.(av_free)

Posted: 20 Aug 2012 08:53
by robinwei1979
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.

Re: Compile Error.(av_free)

Posted: 20 Aug 2012 09:39
by Jean-Baptiste Kempf
Use compile.sh

Re: Compile Error.(av_free)

Posted: 20 Aug 2012 09:52
by robinwei1979
Use compile.sh
Yes, I used the latest compile.sh(commit 445760 by Edward Wang).