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 2734 - Makefile.wiz compile error
Summary: Makefile.wiz compile error
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: ARM Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-20 15:52 UTC by Bob Ombo
Modified: 2016-07-20 19:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Ombo 2014-09-20 15:52:30 UTC
I'm trying to compile SDL2 for my GPH WIZ, so i got openwiz toolchain from:
http://dl.openhandhelds.org/cgi-bin/wiz.cgi?0,0,0,0,14,8
SDL2 from mercurial:
hg clone http://hg.libsdl.org/SDL
(Cross compiling on a debian/wheezy/64bit)

I edited the Makefile.wiz to change the path to the toolchain.
First try:
$ make -f Makefile.wiz
make: *** No rule to make target `src/cdrom/*.o', needed by `libSDL13.a'.  Stop.

OK, i just removed *cdrom* from the 'SOURCES=' in the Makefile, as i don't have one anyway for my handheld ;)

then i got this:

src/video/pandora/SDL_pandora.c: In function 'PND_destroy':
src/video/pandora/SDL_pandora.c:55: warning: unused variable 'phdata'
src/video/pandora/SDL_pandora.c: In function 'PND_create':
src/video/pandora/SDL_pandora.c:98: error: 'SDL_VideoDevice' has no member named 'current_display'
src/video/pandora/SDL_pandora.c:120: warning: assignment from incompatible pointer type
src/video/pandora/SDL_pandora.c: In function 'PND_createwindow':
src/video/pandora/SDL_pandora.c:208: warning: unused variable 'status'
src/video/pandora/SDL_pandora.c:207: warning: unused variable 'winargc'
src/video/pandora/SDL_pandora.c: In function 'PND_gl_loadlibrary':
src/video/pandora/SDL_pandora.c:329: warning: unused variable 'phdata'
src/video/pandora/SDL_pandora.c: In function 'PND_gl_getprocaddres':
src/video/pandora/SDL_pandora.c:368: warning: unused variable 'phdata'
src/video/pandora/SDL_pandora.c: In function 'PND_gl_createcontext':
src/video/pandora/SDL_pandora.c:634: warning: format '%X' expects type 'unsigned int', but argument 2 has type 'NativeWindowType'
src/video/pandora/SDL_pandora.c:637: warning: format '%X' expects type 'unsigned int', but argument 2 has type 'NativeWindowType'
src/video/pandora/SDL_pandora.c:415: warning: unused variable 'gfstatus'
src/video/pandora/SDL_pandora.c:412: warning: unused variable 'didata'
src/video/pandora/SDL_pandora.c: In function 'PND_gl_swapwindow':
src/video/pandora/SDL_pandora.c:795: warning: unused variable 'didata'
src/video/pandora/SDL_pandora.c: In function 'PND_gl_deletecontext':
src/video/pandora/SDL_pandora.c:839: warning: passing argument 1 of 'free' makes pointer from integer without a cast
make: *** [src/video/pandora/SDL_pandora.o] Error 1
Comment 1 Philipp Wiesemann 2016-07-18 20:24:24 UTC
This cdrom part might have been fixed here: https://hg.libsdl.org/SDL/rev/75f31b13bf4b

The compile error was fixed here: https://hg.libsdl.org/SDL/rev/4b0ac1c3fcf8
Comment 2 Philipp Wiesemann 2016-07-20 19:20:00 UTC
The compile warnings were fixed here: https://hg.libsdl.org/SDL/rev/e66f6ab2b059

Thanks!