[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] Bug for Linphone windows build?
From: |
3g 2sip |
Subject: |
Re: [Linphone-developers] Bug for Linphone windows build? |
Date: |
Thu, 19 Mar 2009 22:20:09 +0800 |
From the following define, the issue is clear. BTW, the linphone version is 3.1.0.
in file:gdktypes.h,defines "GdkNativeWindow" as:
.....
#ifdef GDK_NATIVE_WINDOW_POINTER
typedef gpointer GdkNativeWindow;
#else
typedef guint32 GdkNativeWindow;
#endif
.........
"guint32" and "gpointer" define in the header file "gtypes.h" and "gtypes.h" as following:
....................
typedef void* gpointer;
...................
typedef unsigned int guint32;
..................
They aren't the same variable type at all.
BRs
Mark
On Thu, Mar 19, 2009 at 10:09 PM, 3g 2sip
<address@hidden> wrote:
Simon,
Thanks for your reply, actually I can't build pass without this change on windows platform.
On Thu, Mar 19, 2009 at 9:55 PM, Simon Morlat
<address@hidden> wrote:
I think it is just a warning (I have it too).
It perhaps can be solved by changing to
w=gdk_window_foreign_new((HANDLE)id);
Taking &id would not work.
Simon
Le Thursday 19 March 2009 06:19:37 3g 2sip, vous avez écrit :
> Hello,everyone,
> I built Linphone 3.1.0 for windows platform, when building
> gtk-glade/linphone.dev, here has one compile error in the following
> function, it shows the id should be one pointer.
>
> static gboolean linphone_gtk_iterate(LinphoneCore *lc){
> unsigned long id;
> static unsigned long previd=0;
> linphone_core_iterate(lc);
> id=linphone_core_get_native_video_window_id(lc);
> if (id!=previd){
> ms_message("Updating window decorations");
> GdkWindow *w;
> previd=id;
> if (id!=0){
> * w=gdk_window_foreign_new(id); // build error at here*
> if (w) {
> set_video_window_decorations(w);
> g_object_unref(G_OBJECT(w));
> }
> else ms_error("gdk_window_foreign_new() failed");
> }
> }
> return TRUE;
> }
> After changed the bold part from * w=gdk_window_foreign_new(id);* to *
> w=gdk_window_foreign_new(&id);* , the build passes.
>
> My concern is: the change is right? or here has another solution?
>
> Thanks
> Mark