Fbcon compile error

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

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 namedhwdata’
./src/video/fbcon/SDL_fbvideo.h: In function FB_IsSurfaceBusy': ./src/video/fbcon/SDL_fbvideo.h:161: error: structure has no member namedhwdata’
./src/video/fbcon/SDL_fbvideo.h: In function FB_WaitBusySurfaces': ./src/video/fbcon/SDL_fbvideo.h:170: error: structure has no member namedhidden’
./src/video/fbcon/SDL_fbvideo.h:173: error: structure has no member
named hidden' ./src/video/fbcon/SDL_fbvideo.h: In functionFB_dst_to_xy’:

And I enter the code, find that there is no these parameters indeed.
Why has this problem?

regards,
/CL

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 namedhwdata’
./src/video/fbcon/SDL_fbvideo.h: In function FB_IsSurfaceBusy': ./src/video/fbcon/SDL_fbvideo.h:161: error: structure has no member namedhwdata’
./src/video/fbcon/SDL_fbvideo.h: In function FB_WaitBusySurfaces': ./src/video/fbcon/SDL_fbvideo.h:170: error: structure has no member namedhidden’
./src/video/fbcon/SDL_fbvideo.h:173: error: structure has no member
named hidden' ./src/video/fbcon/SDL_fbvideo.h: In functionFB_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,On Friday 22 February 2008 05:20, Chain wrote:

Gianluca Renzi