compiling qt_dev.m fails on PowerBook G4-laptop (OSX 10.4)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

apparently "qt_dev.m" does not compile under MacOSX 10.4:


gcc -c -Wall -DPJ_AUTOCONF=1 -O1 -DPJ_IS_BIG_ENDIAN=1
-DPJ_IS_LITTLE_ENDIAN=0   -O2 -DPJMEDIA_VIDEO_DEV_HAS_SDL=1
-I/usr/local/SDL-1.3.0/include/SDL -D_THREAD_SAFE
-DPJMEDIA_HAS_LIBAVFORMAT=1 -DPJMEDIA_HAS_LIBAVCODEC=1
-DPJMEDIA_HAS_LIBSWSCALE=1 -DPJMEDIA_HAS_LIBAVUTIL=1
-I/usr/local/include     -DPJMEDIA_VIDEO_DEV_HAS_QT=1
-I/tmp/pjproject/third_party/build/speex
-I/tmp/pjproject/third_party/speex/include
-DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0
-DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0
-I/tmp/pjproject/third_party/build/portaudio
-I/tmp/pjproject/third_party/portaudio/include
-DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=1 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0
-I../include -I../../pjlib/include -I../../pjlib-util/include
-I../../pjmedia/include -I../../pjnath/include -I../..
-I/tmp/pjproject/third_party/build/srtp
-I/tmp/pjproject/third_party/srtp/crypto/include
-I/tmp/pjproject/third_party/srtp/include  \
        -o output/pjmedia-videodev-powerpc-apple-darwin8.11.0/qt_dev.o \
        ../src/pjmedia-videodev/qt_dev.m
../src/pjmedia-videodev/qt_dev.m:46: error:
'kCVPixelFormatType_422YpCbCr8' undeclared here (not in a function)
../src/pjmedia-videodev/qt_dev.m: In function 'init_qt':
../src/pjmedia-videodev/qt_dev.m:458: warning:
'QTCaptureDecompressedVideoOutput' may not respond to
'-setMinimumVideoFrameInterval:'
../src/pjmedia-videodev/qt_dev.m:458: warning: (Messages without a
matching method signature
../src/pjmedia-videodev/qt_dev.m:458: warning: will be assumed to return
'id' and accept
../src/pjmedia-videodev/qt_dev.m:458: warning: '...' as arguments.)
make[2]: ***
[output/pjmedia-videodev-powerpc-apple-darwin8.11.0/qt_dev.o] Error 1


It looks like


/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreVideo.framework/Versions/A/Headers/CVPixelBuffer.h

does not define  "kCVPixelFormatType_422YpCbCr8".  Attached is a
temporary workaround (this bug is in PJSIP at least since release
2.1.0).  With this fix PJSUA works fine on this platform: video, audio,
IM etc etc.

The above "missing signature warning" still remains though (don't know
objective-c to fix it).

    Eeri Kask

-------------- next part --------------
--- pjmedia/src/pjmedia-videodev/qt_dev.m.orig	2013-08-05 09:07:34.000000000 +0200
+++ pjmedia/src/pjmedia-videodev/qt_dev.m	2013-08-05 09:08:14.000000000 +0200
@@ -32,8 +32,9 @@
 #define DEFAULT_HEIGHT		480
 #define DEFAULT_FPS		15
 
 #define kCVPixelFormatType_422YpCbCr8_yuvs 'yuvs'
+#define kCVPixelFormatType_422YpCbCr8      '2vuy'
 
 typedef struct qt_fmt_info
 {
     pjmedia_format_id   pjmedia_format;


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux