nexuiz fails to build with xf86vidmodeproto 2.3

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

nexuiz fails to build with xf86vidmodeproto 2.3

Postby wumpyr » Fri Oct 09, 2009 7:18 am

Hi,

nexuiz-2.5.2 fails to build with xf86vidmodeproto 2.3. In 2.3, xf86vmode.h was renamed to xf86vm.h.

see:

http://cgit.freedesktop.org/xorg/proto/ ... 38e0ba3ce1

Code: Select all
[snip]
x86_64-pc-linux-gnu-gcc -MMD   -DLINK_TO_LIBJPEG -DDP_FS_BASEDIR='"/usr/share/games/nexuiz"' -Wall -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement   -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -msahf -O2 -pipe -fno-strict-aliasing  -c cl_demo.c -o cl_demo.o                                                                                               
In file included from vid_glx.c:38:                                                                                                                                                                 
/usr/include/X11/extensions/xf86dga.h:9:2: warning: #warning "xf86dga.h is obsolete and may be removed in the future."                                                                               
/usr/include/X11/extensions/xf86dga.h:10:2: warning: #warning "include <X11/extensions/Xxf86dga.h> instead."                                                                                         
vid_glx.c:40:38: warning: X11/extensions/xf86vmode.h: No such file or directory                                                                                                                     
vid_glx.c:115: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'init_vidmode'                                                                                                         
vid_glx.c: In function 'HandleEvents':                                                                                                                                                               
vid_glx.c:507: warning: implicit declaration of function 'XF86VidModeSwitchToMode'
[snip]
wumpyr
Newbie
 
Posts: 3
Joined: Fri Oct 09, 2009 7:13 am

Postby divVerent » Fri Oct 09, 2009 8:06 am

xf86vm.h does not contain the function definitions. So that won't work.

Please tell us where they are now, e.g. by running the command

grep -r XF86VidModeSwitchToMode /usr/include

and posting its output here. You might need to install the development files of libXxf86vm first.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby wumpyr » Fri Oct 09, 2009 8:19 am

ok I've figured it out. If you are using xf86vidmodeproto-2.3, libXxf86vm-1.1.0 is required. The header file has moved there. compiles fine now. leave it up to you guys to handle the dependency.
wumpyr
Newbie
 
Posts: 3
Joined: Fri Oct 09, 2009 7:13 am

Postby LordHavoc » Fri Oct 09, 2009 9:20 am

wumpyr wrote:ok I've figured it out. If you are using xf86vidmodeproto-2.3, libXxf86vm-1.1.0 is required. The header file has moved there. compiles fine now. leave it up to you guys to handle the dependency.


So you're saying nothing has happened to the header functionality, it just got moved to a different development package.
LordHavoc
Site Admin
 
Posts: 191
Joined: Wed Mar 29, 2006 7:39 am
Location: western Oregon, USA

Postby wumpyr » Fri Oct 09, 2009 9:41 am

correct, to be specific - for xf86vidmodeproto >= 2.2.99.1 requires libXxf86vm >= 1.0.99.1.
wumpyr
Newbie
 
Posts: 3
Joined: Fri Oct 09, 2009 7:13 am


Return to Nexuiz - Support / Bugs

Who is online

Users browsing this forum: No registered users and 1 guest