directvnc-user
[Top][All Lists]
Advanced

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

[Directvnc-user] problem at compilation


From: Axel
Subject: [Directvnc-user] problem at compilation
Date: Thu, 30 Jan 2003 00:15:31 +0100

hi all.
I had some problems to compile DirectVNC
So, here s my environnment
Linux kernel 2.4.20 patched with Intel i810 Frame buffer device driver,
(celeron 500, 256 Mo RAM, i810 video chipset integrated in the motherboard)
GCC 3.2.1
Glibc 2.3.1
pkg-config 0.15
DirectFB 0.9.16

everything runs OK, so the frame buffer device works well ( I have played
DFBKana without problem)
I tryed to compile directvnc
(I set PKG_CONFIG_PATH as /opt/DirectFB/lib/pkgconfig  which is my DirectFB
path)
and so :

dfb.c: In function `dfb_init':
dfb.c:69: warning: passing arg 2 of pointer to function makes pointer from
integer without a cast
dfb.c:69: too many arguments to function
make[1]: *** [dfb.o] Error 1
make: *** [all-recursive] Error 1

in dfb.c here is the code at line 69 :

 DFBCHECK (dfb->CreateEventBuffer (dfb, DICAPS_ALL, &input_buffer));

and from the directfb.h header file :

DFBResult (*CreateInputEventBuffer) (
          IDirectFB                   *thiz,
          DFBInputDeviceCapabilities   caps,
          DFBBoolean                   global,
          IDirectFBEventBuffer       **buffer

so this Event should be an Input event
I modified the source at line 69  as following : (since I think the buffer
should be an Input buffer and no a simple buffe without input possible, as
explained in the comments of directfb.h)

 DFBCHECK (dfb->CreateEventBuffer (dfb, DICAPS_ALL,
DFB_FALSE,&input_buffer));

and the compilation completed successfully and I managed to use directvnc
(without that I couldn't compile at all!!!).
So is this a problem in relation to my host configuration ? or just a typo ?








reply via email to

[Prev in Thread] Current Thread [Next in Thread]