From: Antonio G. C. <A.G...@de...> - 2011-01-24 08:42:40
|
Hi, I had this problem some time ago. I do not remember the best solution, but I solved it by changing the following definition in CMakeCache.txt //Flags used by the compiler during all build types. CMAKE_CXX_FLAGS:STRING=-D__STDC_CONSTANT_MACROS I think some people proposed other solutions because this is not the best one, or there are other collateral problems... I am not sure. Anyway, it worked. Antonio El 24/01/11 05:18, Andrew Hoelscher escribió: > I'm trying to compile VXL 1.14 on Ubuntu 10.10 using GCC 4.4.5. The > error message I get is: > > > [ 30%] Building CXX object > core/vidl/CMakeFiles/vidl.dir/vidl_ffmpeg_convert.o > In file included from /usr/include/libavutil/avutil.h:81, > from /usr/include/libavcodec/avcodec.h:30, > from > /home/anjruu/Noah/vxl/core/vidl/vidl_ffmpeg_convert.h:21, > from > /home/anjruu/Noah/vxl/core/vidl/vidl_ffmpeg_convert.cxx:12: > /usr/include/libavutil/common.h: In function > ‘int32_tav_clipl_int32(int64_t)’: > /usr/include/libavutil/common.h:154: error: ‘UINT64_C’ was not > declared in this scope > make[2]: *** [core/vidl/CMakeFiles/vidl.dir/vidl_ffmpeg_convert.o] Error 1 > make[1]: *** [core/vidl/CMakeFiles/vidl.dir/all] Error 2 > make: *** [all] Error 2 > > > I have tried the solution given on this list already, where we execute > `CXX_FLAGS=${CXX_FLAGS}" -D__STDC_CONSTANT_MACROS"` before the cmake > command. I may have misunderstood what I was supposed to do, but it > didn't solve the problem. All I should do is enter the above command, > press enter, and then enter "cmake VXLSRC", where VXLSRC is the root > of the vxl tree, right? When I try and echo CXX_FLAGS (echo > $CXX_FLAGS), I get -D__STDC_CONSTANT_MACROS, so I'm thinking I defined > it right... Is there another solution, or did I implement the other > one incorrectly? > > Thanks! > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users > |