From: Antonio G. C. <A.G...@de...> - 2014-02-10 08:50:49
|
Changing a file of the system --as libavutil/common.h-- is not a good idea... To install on Ubuntu 12.04, using ffmpeg, install libav* packages. It should be enough... If you want the __STDC_CONSTANT_MACROS to be defined, it is better to add CMAKE_CXX_FLAGS:STRING=-D__STDC_CONSTANT_MACROS in your CMakeCache.txt file. Antonio El 10/02/14 04:05, Adrian Cortez escribió: > Hey, > > I'm attempting to install vxl-1.14.0 on a virtual machine running > Ubuntu 12.04. > I followed the steps on the vxl site, ran into some initial problems, > and then did a google search and found this: > http://www.mirkules.com/opengazer/opengazer-installation > I was following the instructions, and attempted the fix on step 6: > Add this to /usr/include/libavutil/common.h file: > #ifdef __cplusplus > #define __STDC_CONSTANT_MACROS > #ifdef _STDINT_H > #undef _STDINT_H > #endif > #include <stdint.h> > #endif > > from: http://sirivy.wordpress.com/2010/10/14/just-a-note-to-solve-libavutilcommon-h154-error-%E2%80%98uint64_c%E2%80%99-was-not-declared-in-this-scope/ > > but still get the following error: > [ 40%] Building CXX object > core/vidl/CMakeFiles/vidl.dir/vidl_ffmpeg_istream.o > In file included from > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream.cxx:27:0: > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx: In > member function 'virtual bool vidl_ffmpeg_istream::open(const string&)': > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:135:16: > warning: 'int av_open_input_file(AVFormatContext**, const char*, > AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at > /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations] > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:135:84: > warning: 'int av_open_input_file(AVFormatContext**, const char*, > AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at > /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations] > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:140:8: > warning: 'int av_find_stream_info(AVFormatContext*)' is deprecated > (declared at /usr/include/libavformat/avformat.h:1412) > [-Wdeprecated-declarations] > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:140:43: > warning: 'int av_find_stream_info(AVFormatContext*)' is deprecated > (declared at /usr/include/libavformat/avformat.h:1412) > [-Wdeprecated-declarations] > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:148:29: > error: 'CODEC_TYPE_VIDEO' was not declared in this scope > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:157:3: > warning: 'void dump_format(AVFormatContext*, int, const char*, int)' > is deprecated (declared at /usr/include/libavformat/avformat.h:1902) > [-Wdeprecated-declarations] > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:157:54: > warning: 'void dump_format(AVFormatContext*, int, const char*, int)' > is deprecated (declared at /usr/include/libavformat/avformat.h:1902) > [-Wdeprecated-declarations] > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:162:18: > warning: 'int avcodec_open(AVCodecContext*, AVCodec*)' is deprecated > (declared at /usr/include/libavcodec/avcodec.h:4035) > [-Wdeprecated-declarations] > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:162:43: > warning: 'int avcodec_open(AVCodecContext*, AVCodec*)' is deprecated > (declared at /usr/include/libavcodec/avcodec.h:4035) > [-Wdeprecated-declarations] > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx: In > member function 'virtual void vidl_ffmpeg_istream::close()': > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:206:5: > warning: 'void av_close_input_file(AVFormatContext*)' is deprecated > (declared at /usr/include/libavformat/avformat.h:1580) > [-Wdeprecated-declarations] > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:206:40: > warning: 'void av_close_input_file(AVFormatContext*)' is deprecated > (declared at /usr/include/libavformat/avformat.h:1580) > [-Wdeprecated-declarations] > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx: In > member function 'virtual bool vidl_ffmpeg_istream::advance()': > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:390:53: > error: 'avcodec_decode_video' was not declared in this scope > /home/adrian/opengazer/vxl-1.14.0/core/vidl/vidl_ffmpeg_istream_v2.txx:404:40: > error: 'avcodec_decode_video' was not declared in this scope > make[2]: *** [core/vidl/CMakeFiles/vidl.dir/vidl_ffmpeg_istream.o] Error 1 > make[1]: *** [core/vidl/CMakeFiles/vidl.dir/all] Error 2 > make: *** [all] Error 2 > > Any advice? > Thanks in advance, > -Adrian > > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > > > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users -- ----------------------------------------------------------------------- Prof. Dr. Antonio Garrido Carrillo Depto. Ciencias de la Computación e Inteligencia Artificial Escuela Técnica Superior de Ingenierías Informática y de Telecomunicación C/ Periodista Daniel Saucedo Aranda s/n 18071. Granada. SPAIN ---------------------------------------------------------------------- "Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o confidencial. Si no es Ud. el destinatario indicado, queda notificado de que la utilización, divulgación o copia sin autorización está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, se ruega lo comunique inmediatamente por esta misma vía y proceda a su destrucción. This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by professional privilege. If you are not the intended recipient you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it". |