PJSIP 2.0 beta compile errors under Windows Visual Studio

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

 



hi All and thanks for the responses,
  but these suggestions are for fixing the removal of mobile platforms in VS10 project files - I fixed this issue already and can compile w/o video enabled.
My problem is, when video is enabled by setting the following macros in config_site.h (as the PJSIP video user's guide says):
#define PJMEDIA_HAS_VIDEO  1
#define PJMEDIA_HAS_FFMPEG  1
#define PJMEDIA_VIDEO_DEV_HAS_SDL  1
#define PJMEDIA_DEV_HAS_DSHOW  1

that the project pjmedia_codec file ffmpeg_codecs.c gets compiled. 
I added the path in the project file to point to these .h files from libpack_gcc, which I downloaded in addition to PJSIP.

ffmpeg_codecs.c includes ffmpeg_util.h which includes libavutil/avutil.h which includes common.h which includes inttypes.h. These last .h files are not in PJSIP itself but in libpack_gcc - which is meant for gcc compiler : not VS10. And this is where the compile errors come in. 
Under Linux this is not an issue since only 1 compiler gets used - gcc. 

Am I doing something wrong ? Are some of these files not meant to be compiled under VS10, or are other include files to be used instead ?



--- On Tue, 2/28/12, Miljenko Cvjetko <mcvjetko at holisticware.net> wrote:

> From: Miljenko Cvjetko <mcvjetko@xxxxxxxxxxxxxxxx>
> Subject: Re: PJSIP 2.0 beta compile errors under Windows Visual Studio
> To: "pjsip list" <pjsip at lists.pjsip.org>
> Cc: "peteryzwei" <peteryzwei at yahoo.com>
> Date: Tuesday, February 28, 2012, 5:51 AM
> Hi
> 
> Few weeks ago I managed to port both 1.12 and 2.0 beta to
> VS2010.
> 
> http://www.holisticware.net/HolisticWare/Know-How/development/visual-studio/visual-studio-2010-vcpp-solution-conversion-howto.aspx
> 
> more on archive:
> 
> http://comments.gmane.org/gmane.comp.voip.pjsip/15075
> 
> I havent done more tests, preparing to compile for android
> and other...
> 
> regards
> 
> mel
> 
> On 2012.02.27 21:36, peteryzwei wrote:
> > hello,
> > I am trying to compile PJSIP 2.0 beta under Windows
> using Visual Studio 10.
> > I have minGw, x264, SDL, libpack_gcc and ffmepg. I
> fixed the mobile platform problem under VS10. Prior to
> enabling video, I managed to compile PJSIP for audio only.
> After enabling video I am getting compile errors.
> >
> > In project pjmedia_codec file ffmpeg_codecs.c includes
> ffmpeg_util.h which includes avutil.h which includes
> common.h which includes inttypes.h and this last file has
> line:
> >
> > __CRT_INLINE intmax_t __cdecl __MINGW_NOTHROW imaxabs
> (intmax_t j)
> >
> > that cannot be compiled with MS VS10. Macro
> __CRT_INLINE expands to asm and VS10 expects a '(' after it.
> This is only 1 of many compile errors.
> > The base problem seems to be that? these include
> files(avutil.h, inttypes.h, etc) are meant to be compiled
> under gcc, not VS10.
> > Questions:
> >? ? 1) is PJSIP 2.0 beta ready for windows ?
> >? ? 2) has anyone managed to compile and run
> thss version with video under
> >? ? ???windows?
> >
> >
> > _______________________________________________
> > Visit our blog: http://blog.pjsip.org
> >
> > pjsip mailing list
> > pjsip at lists.pjsip.org
> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> 
> 
> -- 
> Miljenko Cvjetko dipl.ing. ET
> ??? Direktor/CEO
> ??? Projektant rje?enja/Solution
> Architect??? 
> ??? Razvojni programer/Senior developer
> ??? Voditelj projekta/Project Manager
> 
> IX ju?na obala 13
> Kajzerica Zagreb
> T: 385 1 7775555
> M: 385 91 557 447 3
> F: 385 1 7779556
> e: mcvjetko at holisticware.net
> w: http://www.holisticware.net
> 
> 



[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