[FFmpeg-devel] Can't compile
Masaru Nomiya
nomiya at galaxy.dti.ne.jp
Sat May 10 12:26:55 CEST 2014
Hello,
In the Message;
Subject : Re: [FFmpeg-devel] Can't compile
Message-ID : <CAHVN4mh0muyYCNYV0+KeshiB5aPXTR9dnb_snE5WLiASVxMqPg at mail.gmail.com>
Date & Time: Sat, 10 May 2014 18:34:15 +1000
Matt Oliver <protogonoi at gmail.com> has written:
> On 10 May 2014 16:49, Masaru Nomiya <nomiya at galaxy.dti.ne.jp> wrote:
>> Hello,
>>
>> I got the very latest git of ffmpeg, but can't compile;
>>
>> [...]
>> In file included from /opt/AMDAPP/include/CL/cl.h:30:0,
>> from libavutil/opencl.h:37,
>> from libavutil/opencl.c:24:
>> /opt/AMDAPP/include/CL/cl_platform.h:101:11: warning: "_WIN32" is not
>> defined [-Wundef]
>> CC libavutil/opencl_internal.o
>> In file included from /opt/AMDAPP/include/CL/cl.h:30:0,
>> from libavutil/opencl.h:37,
>> from libavutil/opencl_internal.h:23,
>> from libavutil/opencl_internal.c:23:
>> /opt/AMDAPP/include/CL/cl_platform.h:101:11: warning: "_WIN32" is not
>> defined [-Wundef]
>> CC libavutil/opt.o
>> libavutil/opencl.c:329:12: error: no previous prototype for
>> 'init_opencl_mtx' [-Werror=missing-prototypes]
>> libavutil/opencl.c: In function 'init_opencl_mtx':
>> libavutil/opencl.c:341:9: warning: passing argument 1 of
>> 'atomic_ptr_cas_gcc' from incompatible pointer type [enabled by default]
>> In file included from libavutil/atomic.h:29:0,
>> from libavutil/opencl.c:38:
>> libavutil/atomic_gcc.h:49:21: note: expected 'void * volatile*' but
>> argument is of type 'union pthread_mutex_t **'
>> libavutil/opencl.c: At top level:
>> libavutil/opencl.c:341:36: warning: 'atomic_opencl_lock' is static but
>> used in inline function 'init_opencl_mtx' which is not static [enabled by
>> default]
>> libavutil/opencl.c:341:13: warning: 'atomic_ptr_cas_gcc' is static but
>> used in inline function 'init_opencl_mtx' which is not static [enabled by
>> default]
>> libavutil/opencl.c:332:10: warning: 'atomic_opencl_lock' is static but
>> used in inline function 'init_opencl_mtx' which is not static [enabled by
>> default]
>> cc1: some warnings being treated as errors
>> make: *** [libavutil/opencl.o] Error 1
>> make: *** Waiting for unfinished jobs....
>> CC libavutil/parseutils.o
>> libavutil/opt.c: In function 'av_find_opt':
>> libavutil/opt.c:49:5: warning: 'av_next_option' is deprecated (declared at
>> libavutil/opt.h:437) [-Wdeprecated-declarations]
>> libavutil/opt.c: In function 'av_opt_set_defaults':
>> libavutil/opt.c:1148:5: warning: 'av_opt_set_defaults2' is deprecated
>> (declared at libavutil/opt.h:460) [-Wdeprecated-declarations]
> What configure command line options are you using? Also what
> environment/compiler did you use? From the complaints about _WIN32 and
> atomic_ptr_cas_gcc im going to assume its a MinGW compiler but youll need
> to identify which version.
I'm trying to compile on openSUSE 12.3, and my configure is as follows;
export CPPFLAGS="-I/opt/AMDAPP/include"
./configure --enable-libfaac \
--enable-gpl \
--enable-libtheora \
--enable-libxvid \
--enable-nonfree \
--enable-libx264 \
--enable-libmp3lame \
--enable-libnut \
--enable-x11grab \
--disable-static \
--enable-shared \
--enable-libvorbis \
--enable-libschroedinger \
--enable-libdc1394 \
--enable-libgsm \
--enable-avfilter \
--libdir=/usr/local/lib64 \
--prefix=/usr/local \
--shlibdir=/usr/local/lib64 \
--enable-postproc \
--disable-swscale-alpha \
--enable-libspeex \
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
--enable-version3 \
--enable-librtmp \
--enable-libopenjpeg \
--enable-libvpx \
--enable-frei0r \
--enable-libxavs \
--enable-vdpau \
--enable-libfreetype \
--enable-libvo-aacenc \
--enable-libvo-amrwbenc \
--enable-openal \
--enable-libcelt \
--enable-libcdio \
--enable-libaacplus \
--enable-libmodplug \
--enable-gnutls \
--enable-openssl \
--enable-libv4l2 \
--enable-libass \
--enable-libutvideo \
--enable-libbluray \
--enable-libfdk-aac \
--enable-libilbc \
--enable-libopus \
--enable-libcaca \
--enable-libflite \
--enable-libsoxr \
--enable-libopencv \
--enable-avresample \
--enable-vaapi \
--valgrind=VALGRIND \
--enable-opencl \
--enable-iconv \
--enable-zlib \
--enable-bzlib \
--enable-libwebp \
--enable-vda \
--enable-fontconfig \
--enable-ladspa \
--enable-libiec61883 \
--enable-libssh \
--enable-libwavpack \
--enable-libx265 \
--enable-opengl \
--enable-libzvbi
So, I'm not compiling on MinGW environment, just on the Linux
environment.
Thanks,
---
┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp
┃\/彡
┗━━┛ "Bill! You married with Computers.
Not with Me!"
"No..., with money."
More information about the ffmpeg-devel
mailing list