Page 1 of 1

Revision 13677 compile error under Linux

Posted: Tue Apr 29, 2014 12:28 pm
by rjkfsm
Hi,

I followed the instructions in the Wiki to download and compile a whole new installation. Unfortunately, the compile run breaks with an error. I've tried searching the forums for 13677 and for the errors thrown, but no matches were found.

Any help would be appreciated.

RK

Console output:

Code: Select all

[ 81%] Building CXX object CMakeFiles/vegastrike.dir/src/ffmpeg_init.cpp.o
/home/rking/vegastrike/vegastrike/src/ffmpeg_init.cpp:39:27: warning: '_url_open' initialized and declared 'extern' [enabled by default]
/home/rking/vegastrike/vegastrike/src/ffmpeg_init.cpp:39:27: error: 'URLContext' was not declared in this scope
/home/rking/vegastrike/vegastrike/src/ffmpeg_init.cpp:39:39: error: 'h' was not declared in this scope
/home/rking/vegastrike/vegastrike/src/ffmpeg_init.cpp:39:42: error: expected primary-expression before 'const'
/home/rking/vegastrike/vegastrike/src/ffmpeg_init.cpp:39:64: error: expected primary-expression before 'int'
/home/rking/vegastrike/vegastrike/src/ffmpeg_init.cpp:39:74: error: expression list treated as compound expression in initializer [-fpermissive]
/home/rking/vegastrike/vegastrike/src/ffmpeg_init.cpp:40:1: error: expected ',' or ';' before '{' token
make[2]: *** [CMakeFiles/vegastrike.dir/src/ffmpeg_init.cpp.o] Error 1
make[1]: *** [CMakeFiles/vegastrike.dir/all] Error 2
make: *** [all] Error 2
Config.h

Code: Select all

#ifndef _CONFIG_H_
#define _CONFIG_H_
#define HAVE_WCHAR_H 1
#define HAVE_FLOAT_H  1
#define HAVE_WCTYPE_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_ZLIB_H 1
#define HAVE_MATH_H 1
#define HAVE_GLXGETPROCADDRESSARB 1
#define HAVE_ISNAN 1
/* #undef HAVE__ISNAN */
#define HAVE_FINITE 1
/* #undef HAVE__FINITE */
#define HAVE_GETTIMEOFDAY 1
#define HAVE_LSTAT 1
#define HAVE_PYTHON 1
#define _GNU_SOURCE 1
#define HAVE_OGG 1
/* #undef HAVE_OGRE */
#define HAVE_SDL 1
#define SDL_WINDOWING 1
#define HAVE_AL 1

#define HAVE_FFMPEG 1

/* #undef HAVE_FFMPEG_SWSCALE_H */
#define HAVE_SWSCALE_H 1
/* #undef HAVE_LIBSWSCALE_SWSCALE_H */

#define HAVE_AVCODEC_H 1
/* #undef HAVE_LIBAVCODEC_AVCODEC_H */

#define HAVE_AVFORMAT_H 1
/* #undef HAVE_LIBAVFORMAT_AVFORMAT_H */

#define HAVE_AVIO_H 1
/* #undef HAVE_LIBAVFORMAT_AVIO_H */


#define HAVE_TR1_UNORDERED_MAP 1
#define HAVE_CONFIG_H 1
#define LINUX 1
#define UNIX 1
#define USE_NET_THREAD_NONE 1
/* #undef USE_NET_THREAD_POSIX */
#endif

Re: Revision 13677 compile error under Linux

Posted: Tue Apr 29, 2014 10:52 pm
by loki1950
Welcome aboard which distro are you using as I had no problems on fedora 20 just one with a mismatch in the Ogre API that borked the compile of the mesh converter your error seems to be a similar issue but with a change in the ffmpeg API and I am not that familiar with C++ to advise you apart from building without ffmpeg support as there is currently no content that uses it yet.

Enjoy the Choice :)