[SDL] fbcon compile error
Gianluca
gianlucarenzi at eptar.com
Fri Feb 22 01:06:26 PST 2008
On Friday 22 February 2008 05:20, Chain wrote:
> Hello all, I am a new user for SDL, just download the code from SVN and
> compiling SDL for ARM, I use follows command to configure, it is OK.
>
> ./configure --prefix=/home/clin/DATA/arm-ffmpeg --enable-video-fbcon
> --disable-video-qtopia --disable-video-photon --disable-video-direct
> --disable-video-ggi --disable-video-svga --disable-video-aalib
> --disable-video-dummy --disable-video-dga --disable-arts --disable-esd
> --disable-alsa --disable-video-x11 --disable-nasm --disable-debug
> --disable-joystick-amigaos --disable-joystick-beos
> --disable-joystick-bsd --disable-joystick-darwin --disable-joystick-dc
> --disable-joystick-linux --disable-joystick-macos
> --disable-joystick-mint --disable-joystick-win32 --disable-joystick
> --host=arm-linux --disable-3dnow
...just a little question: why --disable-video-direct and _NOT_ --disable-video-directfb ?
>
> and then go to make.
>
> but there are many error message about the fbcon. Like,
>
> In file included from ./src/video/fbcon/SDL_fb3dfx.h:26,
> from ./src/video/fbcon/SDL_fb3dfx.c:26:
> ./src/video/fbcon/SDL_fbvideo.h:40:1: warning: "_THIS" redefined
> In file included from ./src/video/fbcon/SDL_fbvideo.h:33,
> from ./src/video/fbcon/SDL_fb3dfx.h:26,
> from ./src/video/fbcon/SDL_fb3dfx.c:26:
> ./src/video/fbcon/../SDL_sysvideo.h:173:1: warning: this is the location
> of the previous definition
> In file included from ./src/video/fbcon/SDL_fb3dfx.h:26,
> from ./src/video/fbcon/SDL_fb3dfx.c:26:
> ./src/video/fbcon/SDL_fbvideo.h: In function `FB_AddBusySurface':
> ./src/video/fbcon/SDL_fbvideo.h:155: error: structure has no member
> named `hwdata'
> ./src/video/fbcon/SDL_fbvideo.h: In function `FB_IsSurfaceBusy':
> ./src/video/fbcon/SDL_fbvideo.h:161: error: structure has no member
> named `hwdata'
> ./src/video/fbcon/SDL_fbvideo.h: In function `FB_WaitBusySurfaces':
> ./src/video/fbcon/SDL_fbvideo.h:170: error: structure has no member
> named `hidden'
> ./src/video/fbcon/SDL_fbvideo.h:173: error: structure has no member
> named `hidden'
> ./src/video/fbcon/SDL_fbvideo.h: In function `FB_dst_to_xy':
It sounds an wrong compiler issue to me. Wrong compiler version?
Wrong INCLUDE path? No mention about wrong LIKER path, as soon as linker
step are away from here now... But check these out too...
Usually I am cross-compiling in two steps:
1) Compile on PC using the _SAME_ compiler as toolchain has
(i.e.: if cross tools has arm-linux-gcc-3.4.1, then use gcc-3.4.1 in host)
and if it works, then switch to pass 2
2) Cross compile in the way you did above.
Good luck!
Cheers,
--
Gianluca Renzi
More information about the SDL
mailing list