Next Generation Emulation banner
1 - 1 of 1 Posts

· Registered
380 Posts
Discussion Starter · #1 ·
I am having some difficulties in compiling gpupeopssoftx 1.17 plugin. I am using Ubuntu Breezy, where libXxf86vm.a is placed under folder '/usr/lib' so I edit the path of '/makes/mk.x11': line 23,24.

ifeq ($(XF86VM), TRUE)
        OBJECTS+= /usr/lib/libXxf86vm.a
        CFGOBJS+= /usr/lib/libXxf86vm.a
        CFLAGS+= -DUSE_XF86VM
And I come back to 'src' folder and type 'make'. I get an output error:

[email protected]:~/Desktop/src$ make
gcc -g -Wall -fPIC -O4 -fomit-frame-pointer -ffast-math -I/usr/local/include  `gtk-config --cflags` -DUSE_XF86VM   -c -o draw.o draw.c
In file included from /usr/include/X11/extensions/xf86vmode.h:39,
                 from draw.c:4403:
/usr/include/X11/Xmd.h:157: error: two or more data types in declaration specifiers
/usr/include/X11/Xmd.h:157: error: two or more data types in declaration specifiers
draw.c: In function ‘CreateDisplay’:
draw.c:4767: warning: pointer targets in passing argument 6 of ‘XCreateImage’ differ in signedness
draw.c: In function ‘XStretchBlt16’:
draw.c:5706: error: invalid lvalue in increment
make: *** [draw.o] Error 1
The error with file header Xmd.h is very suspicious to me, so I dive into that file, go to line 157 to see what the problems really are, I found this:

#ifndef I_NEED_OS2_H
typedef CARD8           BYTE;
typedef CARD8           BOOL;
#define BYTE    CARD8
#define BOOL CARD8
The way Xmd.h declare a var as 2 possible var types is pretty okay (fix me if i am wrong), i think the problem might be of gcc4's. I am not quite sure, does any1 have any ideas or advices? Thanks so much in adv. I am very desperate to compile this plugin under Ubuntu Breezy.
1 - 1 of 1 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.