I've seen most of your errors -- and there might be something wrong with your system libraries. Because after I cleaned up some stuff in my macports installation I no longer got most of these.shenle wrote:I was able to get over the GTK2 problem by deleting findgtk2.cmake altogether from the source tree. Then cmake proceeded and I could generate a project. Compiling in xcode resulted in errors, so no binary.
I thought the FindFFMPEG.cmake script took care of this already. Basically, you need to define -D__STDC_CONSTANT_MACROS in the CPPFLAGS.shenle wrote:1.common.h, line 168: 'UINT64_C' was not declared in this scope (this error repeats 3 times)Code: Select all
if ((a+0x80000000u) & ~UINT64_C(0xFFFFFFFF)) return (a>>63) ^ 0x7FFFFFFF;
On Sunday, I committed a fix to this in automake. You can see my change here:
http://vegastrike.svn.sourceforge.net/v ... hrev=13102
Not sure about this. Are you using libpng12 or libpng3 or something else? I don't see this on my mac, but I'm using a 3-year-old version of libpng, so I might be avoiding this somehow.shenle wrote:2. png.h, 795: forward declaration of 'struct png_struct_def'Code: Select all
typedef struct png_struct_def png_struct;
Make sure you properly installed ffmpeg with the pkgconfig files that go with it. I had to manually copy over the .pc files from /usr/local/lib/pkgconfig into /opt/local/lib/pkgconfig because my version of pkg-config is from MacPorts (in /opt/local/bin/pkg-config).shenle wrote:3. vid_file.cpp, 73: 'img_convert' was not declared in this scopeCode: Select all
#ifdef DEPRECATED_IMG_CONVERT img_convert( (AVPicture*) pFrameRGB, PIX_FMT_RGB24, (AVPicture*) pNextFrameYUV, pCodecCtx->pix_fmt, pCodecCtx->width, pCodecCtx->height );
Type "which pkg-config" to see where yours is installed. If your .pc files are in the wrong place, CMake won't find "libswscale.dylib" which means it assumes you are on a 4-year-old version of ffmpeg.
I'm considering removing that code since there's no excuse to use such an old version any more -- that way it will error out from the get-go if you have this problem.
Also not getting this. Are you sure it's finding the right version of libpng? (Probably the same issue as #2)shenle wrote:4. vsimage.cpp, 870: invalid use of undefined type 'struct png_struct_def'Code: Select all
if ( setjmp( png_ptr->jmpbuf ) ) { png_destroy_write_struct( &png_ptr, &info_ptr ); return BadFormat; }
My cmake compile on mac was mostly straightforward but I'm stuck on linker errors where it doesn't link to libjpeg for some unexplained reason.
I'm getting all these linker errors in cmake:
_jpeg_destroy_compress
_jpeg_finish_compress
_jpeg_std_error
...