We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1524 - Cannt compile SDL due XInput2 errors.
Summary: Cannt compile SDL due XInput2 errors.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-19 09:54 UTC by O01eg
Modified: 2012-06-21 10:02 UTC (History)
3 users (show)

See Also:


Attachments
config.log (219.23 KB, text/plain)
2012-06-20 08:56 UTC, O01eg
Details
Fix xinput2 test (691 bytes, patch)
2012-06-21 08:32 UTC, Gabriel Jacobo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description O01eg 2012-06-19 09:54:23 UTC
Configuration:
`./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --enable-assertions=paranoid --enable-sse2 --disable-esd --disable-pulseaudio --disable-nas --disable-fusionsound`

At make I get error:

/bin/sh ./libtool --mode=compile x86_64-pc-linux-gnu-gcc -O2 -march=core2 -mtune=core2 -pipe -msse -msse2 -msse3 -mssse3 -mmmx -mcx16 -msahf -momit-leaf-frame-pointer --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096  -DUSING_GENERATED_CONFIG_H -I./include  -mmmx -m3dnow -msse -msse2 -fvisibility=hidden   -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -MMD -MT build/SDL_x11xinput2.lo -c src/video/x11/SDL_x11xinput2.c -o build/SDL_x11xinput2.lo
src/video/x11/SDL_x11xinput2.c: In function ‘X11_HandleXinput2Event’:
src/video/x11/SDL_x11xinput2.c:144:14: error: ‘XI_TouchBegin’ undeclared (first use in this function)
src/video/x11/SDL_x11xinput2.c:144:14: note: each undeclared identifier is reported only once for each function it appears in
src/video/x11/SDL_x11xinput2.c:152:14: error: ‘XI_TouchEnd’ undeclared (first use in this function)
src/video/x11/SDL_x11xinput2.c:160:14: error: ‘XI_TouchUpdate’ undeclared (first use in this function)
src/video/x11/SDL_x11xinput2.c: In function ‘X11_InitXinput2Multitouch’:
src/video/x11/SDL_x11xinput2.c:187:13: error: ‘XITouchClassInfo’ undeclared (first use in this function)
src/video/x11/SDL_x11xinput2.c:187:31: error: ‘t’ undeclared (first use in this function)
src/video/x11/SDL_x11xinput2.c:187:53: error: expected expression before ‘)’ token
src/video/x11/SDL_x11xinput2.c:190:32: error: ‘XITouchClass’ undeclared (first use in this function)
src/video/x11/SDL_x11xinput2.c: In function ‘X11_Xinput2SelectTouch’:
src/video/x11/SDL_x11xinput2.c:229:5: error: ‘XI_TouchBegin’ undeclared (first use in this function)
src/video/x11/SDL_x11xinput2.c:230:5: error: ‘XI_TouchUpdate’ undeclared (first use in this function)
src/video/x11/SDL_x11xinput2.c:231:5: error: ‘XI_TouchEnd’ undeclared (first use in this function)

Versions: x11-libs/libX11-1.4.4 and x11-base/xorg-server-1.11.4.
Comment 1 Gabriel Jacobo 2012-06-20 07:05:57 UTC
Can you attach your config.log file? Adding Dimitris in the cc as well.
Comment 2 O01eg 2012-06-20 08:56:46 UTC
Created attachment 882 [details]
config.log
Comment 3 Gabriel Jacobo 2012-06-21 08:32:03 UTC
Created attachment 884 [details]
Fix xinput2 test

Can you try out the attached patch? If you are still getting compilation issues attach the new config.log
Comment 4 O01eg 2012-06-21 09:21:02 UTC
(In reply to comment #3)
> Created attachment 884 [details]
> Fix xinput2 test
> 
> Can you try out the attached patch? If you are still getting compilation issues
> attach the new config.log

Yes, it successfully compiles with this patch.
Comment 5 Gabriel Jacobo 2012-06-21 10:02:49 UTC
Cool, this is now changeset http://hg.libsdl.org/SDL/rev/eadb3790009f