MantisBT - VCMI
View Issue Details
0000629VCMIOtherpublic2010-10-31 08:422011-05-31 01:06
o01eg 
Ivan 
highmajoralways
closedfixed 
LinuxGentoo
 
0.84 
0000629: Cann't compile VCMI [trunk r1834]
  CXX vcmiclient-CVideoHandler.o
In file included from /usr/include/libavutil/avutil.h:81,
                 from /usr/include/libavcodec/avcodec.h:30,
                 from /usr/include/libavformat/avformat.h:56,
                 from ../hch/CVideoHandler.cpp:561:
/usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’:
/usr/include/libavutil/common.h:154: error: ‘UINT64_C’ was not declared in this scope
media-video/ffmpeg-0.6
http://code.google.com/p/ffmpegsource/issues/detail?id=11 [^]
I try to add -D__STDC_CONSTANT_MACROS into CXXFLAGS but it ignores by ./configure with debug and generate Makefile without this.
Can you append -D__STDC_CONSTANT_MACROS into CXXFLAGS to fix this?
No tags attached.
related to 0000630closed Tow Cann't compile [trunk r1850] 
Issue History
2010-10-31 08:42o01egNew Issue
2010-11-06 20:31WarmongerRelationship addedrelated to 0000630
2010-11-17 21:42ruppertusNote Added: 0001414
2010-11-18 13:36IvanNote Added: 0001423
2010-11-22 17:33ZamolxisNote Added: 0001451
2010-11-22 17:33ZamolxisAssigned To => Zamolxis
2010-11-22 17:33ZamolxisStatusnew => feedback
2010-11-22 17:38ZamolxisNote Edited: 0001451bug_revision_view_page.php?bugnote_id=1451#r1217
2010-11-22 17:39ZamolxisStatusfeedback => assigned
2010-11-22 17:39ZamolxisAssigned ToZamolxis => Ivan
2010-11-22 19:23o01egNote Added: 0001454
2010-11-22 22:16IvanNote Added: 0001455
2010-11-22 22:17IvanAssigned ToIvan =>
2010-11-22 22:17IvanStatusassigned => new
2010-11-23 03:19o01egNote Added: 0001457
2011-01-01 20:33IvanNote Added: 0001471
2011-01-01 20:33IvanStatusnew => resolved
2011-01-01 20:33IvanFixed in Version => 0.89
2011-01-01 20:33IvanResolutionopen => fixed
2011-01-01 20:33IvanAssigned To => Ivan
2011-05-31 01:06ZamolxisStatusresolved => closed

Notes
(0001414)
ruppertus   
2010-11-17 21:42   
I've reproduced that VCMI can't be compiled under linux [trunk r1865].

CAdvmapInterface.cpp:841: warning: taking address of temporary
CAdvmapInterface.cpp: In member function ‘virtual void CAdvMapInt::show(SDL_Surface*)’:
CAdvmapInterface.cpp:1403: warning: suggest parentheses around ‘&&’ within ‘||’
CAdvmapInterface.cpp: In member function ‘void CAdvMapInt::tileHovered(const int3&)’:
CAdvmapInterface.cpp:2006: warning: unused variable ‘shipyard’
  CXX vcmiclient-CAnimation.o
CAnimation.cpp: In constructor ‘CDefFile::CDefFile(std::string)’:
CAnimation.cpp:335: error: no matching function for call to ‘max(unsigned int, size_t)’
make[1]: *** [vcmiclient-CAnimation.o] Error 1
make: *** [all-recursive] Error 1
(0001423)
Ivan   
2010-11-18 13:36   
Strange. That part worked fine for me. Try rev 1866 - should be fixed now.
(0001451)
Zamolxis   
2010-11-22 17:33   
(edited on: 2010-11-22 17:38)
@o01eg/Ivan: is this still an issue or can we move it to Resolved?

(0001454)
o01eg   
2010-11-22 19:23   
Nothing changed (r1867, media-video/ffmpeg-0.6):
  CXX vcmiclient-CVideoHandler.o
In file included from /usr/include/libavutil/avutil.h:81,
                 from /usr/include/libavcodec/avcodec.h:30,
                 from /usr/include/libavformat/avformat.h:56,
                 from ../hch/CVideoHandler.cpp:561:
/usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’:
/usr/include/libavutil/common.h:154: error: ‘UINT64_C’ was not declared in this scope
../hch/CVideoHandler.cpp: In member function ‘bool CVideoPlayer::nextFrame()’:
../hch/CVideoHandler.cpp:785: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3452)
../hch/CVideoHandler.cpp:786: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3452)
make[1]: *** [vcmiclient-CVideoHandler.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/tmp/vcmi/client'
make: *** [all-recursive] Error 1
(0001455)
Ivan   
2010-11-22 22:16   
I've fixed only error from note by ruppertus (it completely separate) - but original problem is still here
(0001457)
o01eg   
2010-11-23 03:19   
Did you try to add -D__STDC_CONSTANT_MACROS into CXXFLAGS? When I do this vcmi compiles without this error.
(0001471)
Ivan   
2011-01-01 20:33   
Fixed in rev 1907