compile issues on win64

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

 



Hi Louis,

FYI, win64 support should have been done by
https://trac.pjsip.org/repos/ticket/1680 and some items in the report have
been fixed in SVN trunk. After scanning the code, it seems that only
'missing PJ_DECL in pj_run_app()' and 'bad type casts in wmme dev' that
need to be fixed. So they just went in
https://trac.pjsip.org/repos/changeset/4760.

Thanks for the report.

BR,
nanang



On Fri, Feb 21, 2014 at 8:10 AM, Louis Solomon <louis at steelbytes.com> wrote:

>  And a couple more
>
>
>
> In pjmedia/src/pjmedia-audiodev/wmme_dev.c<http://gitserver.dms.local/?p=argos.git;a=blob;f=src/lib/pjproject/pjmedia/src/pjmedia-audiodev/wmme_dev.c;h=7e9933d929b3fb178d6e476185217cbc74cde0b0;hb=024e8c440223faf8a096c82d24846d7272289183>calls to waveOutOpen & waveInOpen should be casting the wmme_strm->hEvent
> param to a DWORD_PTR not a DWORD
>
>
>
> Louis Solomon
>
> www.SteelBytes.com <http://www.steelbytes.com/>
>
>
>
> *From:* pjsip [mailto:pjsip-bounces at lists.pjsip.org] *On Behalf Of *Louis
> Solomon
> *Sent:* Thursday, 20 February 2014 6:42 PM
> *To:* pjsip at lists.pjsip.org
> *Subject:* [pjsip] compile issues on win64
>
>
>
> Hi
>
>
>
> Here are some changes I needed to make to get it working on win64 / vs2012
>
>
>
> 1)
>
> In pjlib\include\pj\os.h the declaration of pj_run_app in is missing
> PJ_DECL
>
> PJ_DECL(int) pj_run_app(pj_main_func_ptr main_func, int argc, char *argv[],
>
>                     unsigned flags);
>
>
>
> 2)
>
> In pjlib\include\pj\pool.h pj_caching_pool.pool_buf is not large enough.
> I changed it to [256 * (sizeof(void*) / 4)]   (I made the guess that 'long'
> was supposed to be machine word size?  Not sure what the 4 is for?)
>
>     char      pool_buf[256 * (sizeof(void*) / 4)];
>
>
>
> 3)
>
> In pjlib\include\pj\sock.h I added a cast to (pj_sock_t) to
> PJ_INVALID_SOCKET
>
> #define PJ_INVALID_SOCKET   (pj_sock_t)(-1)
>
>
>
> 4)
>
> In pjlib\include\pj\sock.h changed pj_sock_t to be 64bit on win64
>
> #if defined(PJ_WIN32) && defined(PJ_M_X86_64)
>
>              typedef unsigned __int64 pj_sock_t;
>
> #else
>
>              typedef long pj_sock_t;
>
> #endif
>
>
>
> 5)
>
> In pjlib\src\pj\sock_bsd.c removed (unsigned) cast from PJ_INVALID_SOCKET
>
>     PJ_ASSERT_RETURN(PJ_INVALID_SOCKET==INVALID_SOCKET,
>
>                      (*sock=PJ_INVALID_SOCKET, PJ_EINVAL));
>
> 6)
>
> In third_party\srtp\include\srtp.h moved #include "crypto_kernel.h"
> before #pragma pack(4)
>
>
>
> Louis Solomon
>
> www.SteelBytes.com <http://www.steelbytes.com/>
>
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140224/fbbc63c9/attachment-0001.html>


[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