Hi,

I am trying to build media-update branch but I couldn't get rid of compilation errors. I searched all the sipxtapi-dev archive, but i couldn't find a solution. First of all I don't want to use video support of media-update. (I just don't need). But even in debug-novideo configuration it needs videosupport lib.

I have latest media-update check out. (I downloaded it two days ago) and I am using VS 2005. Besides, I downloaded FFMpeg and added the include folders to C++ include directories.

When I try to build VideoSupport with FFMpeg, I get these errors:

1>------ Build started: Project: VideoSupport, Configuration: Debug Win32 ------
1>Compiling...
1>AVCodecVideoScaler.cpp
1>c:\msys\1.0\local\include\libavutil\rational.h(51) : warning C4244: 'return' : conversion from 'const int64_t' to 'int', possible loss of data *1>..\AVCodecVideoScaler.cpp(49) : error C3861: 'img_resample_close': identifier not found 1>..\AVCodecVideoScaler.cpp(86) : error C3861: 'img_resample_close': identifier not found 1>..\AVCodecVideoScaler.cpp(90) : error C3861: 'img_resample_init': identifier not found 1>..\AVCodecVideoScaler.cpp(122) : error C3861: 'img_resample': identifier not found*
1>AVCodecVideoSurfaceConverter.cpp
1>c:\msys\1.0\local\include\libavutil\rational.h(51) : warning C4244: 'return' : conversion from 'const int64_t' to 'int', possible loss of data *1>..\AVCodecVideoSurfaceConverter.cpp(96) : error C3861: 'img_convert': identifier not found 1>..\AVCodecVideoSurfaceConverter.cpp(135) : error C3861: 'img_convert': identifier not found*
1>RawVideoRenderer.cpp
1>c:\msys\1.0\local\include\libavutil\rational.h(51) : warning C4244: 'return' : conversion from 'const int64_t' to 'int', possible loss of data
1>stdafx.cpp
1>c:\msys\1.0\local\include\libavutil\rational.h(51) : warning C4244: 'return' : conversion from 'const int64_t' to 'int', possible loss of data
1>utils.cpp
1>c:\msys\1.0\local\include\libavutil\rational.h(51) : warning C4244: 'return' : conversion from 'const int64_t' to 'int', possible loss of data
1>VideoCapture.cpp
1>c:\msys\1.0\local\include\libavutil\rational.h(51) : warning C4244: 'return' : conversion from 'const int64_t' to 'int', possible loss of data *1>..\VideoCapture.cpp(501) : error C2039: 'Unlock' : is not a member of 'CAutoLock' 1> d:\Defne\sip phone\sipXtapi-media-update-2005\sipXmediaLib\contrib\VideoSupport\sdk-samples\wxutil.h(83) : see declaration of 'CAutoLock' 1>..\VideoCapture.cpp(506) : error C2039: 'Lock' : is not a member of 'CAutoLock' 1> d:\Defne\sip phone\sipXtapi-media-update-2005\sipXmediaLib\contrib\VideoSupport\sdk-samples\wxutil.h(83) : see declaration of 'CAutoLock'*
1>VideoFormat.cpp
1>c:\msys\1.0\local\include\libavutil\rational.h(51) : warning C4244: 'return' : conversion from 'const int64_t' to 'int', possible loss of data
1>VideoFrameFlipperImpl.cpp
1>VideoProcessorFactory.cpp
1>c:\msys\1.0\local\include\libavutil\rational.h(51) : warning C4244: 'return' : conversion from 'const int64_t' to 'int', possible loss of data
1>VideoSurfaceConverterFactory.cpp
1>c:\msys\1.0\local\include\libavutil\rational.h(51) : warning C4244: 'return' : conversion from 'const int64_t' to 'int', possible loss of data
1>VideoSurfaceConverterImpl.cpp
1>c:\msys\1.0\local\include\libavutil\rational.h(51) : warning C4244: 'return' : conversion from 'const int64_t' to 'int', possible loss of data
1>amextra.cpp
1>amfilter.cpp
1>amvideo.cpp
1>combase.cpp
1>ctlutil.cpp
1>ddmm.cpp
1>mtype.cpp
1>refclock.cpp
1>renbase.cpp
1>Generating Code...
1>Compiling...
1>schedule.cpp
1>sysclock.cpp
1>wxdebug.cpp
1>wxlist.cpp
1>wxutil.cpp
1>Generating Code...
1>Build log was saved at "file://d:\Defne\sip phone\sipXtapi-media-update-2005\sipXmediaLib\contrib\VideoSupport\VS2003\Debug\BuildLog.htm"
1>VideoSupport - 8 error(s), 10 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Then I decided to compile VideoSupport with VIDEO_SUPPORT_DISABLE_AVCODEC preprocessor. However I still get errors: 1>..\VideoCapture.cpp(501) : error C2039: 'Unlock' : is not a member of 'CAutoLock' 1> d:\Defne\sip phone\sipXtapi-media-update-2005\sipXmediaLib\contrib\VideoSupport\sdk-samples\wxutil.h(83) : see declaration of 'CAutoLock' 1>..\VideoCapture.cpp(506) : error C2039: 'Lock' : is not a member of 'CAutoLock' 1> d:\Defne\sip phone\sipXtapi-media-update-2005\sipXmediaLib\contrib\VideoSupport\sdk-samples\wxutil.h(83) : see declaration of 'CAutoLock'

Can anybody tell me how to get rid of these errors?
Thanks in advance.
-Umut



_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to