[Gambas-user] Compiling Gamabas2 (1.9.44) in SuSE 10.0

Benoit Minisini gambas at ...1...
Mon Oct 9 19:24:41 CEST 2006


On Monday 09 October 2006 19:08, Christopher Brian Jack wrote:
> I'm having extreme problems getting 1.9.44 to build under SuSE 10.0
>
> Seems despite having every delvopment pakage install I cannot get SDL or
> MySQL support and just three tiers into the configure chain (I'm wondering
> at this point what else it won't find).
>
> I've tried the build about 20 times.  Unless some other soul has gotten
> the 1.9.44 dev build of gambas to compile and has a binary package I could
> use I'm ready to give up.
>
> Qt/KDE2+ (3.5 preferably), MySQL, all SDL support are necessities for my
> needs.
>
> About to pull out all hair,
> Brian
>
> .=================================================.
>
> |  Christopher BRIAN Jack aka "Gau of the Veldt"  |
>
> +================================================='
>
> | oevna at ...1544...
>
> `=================================================-
> Hi Spambots, my email address is sputnik at ...1334...
> Hi Humans, my email address uses rot13 cipher
>

To know what configure looks for, you must read the configure.ac file.

For SDL:

--8<-----------
GB_COMPONENT(
  Xcursor,
  XCURSOR,
  [Xcursor],
  [],
  [GB_FIND(Xcursor.h, /usr /usr/local /usr/X11R6, include/X11/Xcursor)],
  [GB_FIND(libXcursor.$SHLIBEXT, /usr /usr/local /usr/X11R6, lib lib/X11R6/)],
  [-lXcursor],
  [],
  ["Support for colorized cursors"])

GB_COMPONENT(
  sdl,
  SDL,
  [SDL],
  [src],
  [GB_FIND(SDL_opengl.h SDL.h SDL_image.h, `sdl-config --prefix`, 
include/SDL)],
  [GB_FIND(libSDL_image.$SHLIBEXT , /usr /usr/X11R6 /usr/local 
`sdl-config --prefix`, lib)],
  [`sdl-config --libs` -lSDL_image -lGL -lGLU],
  [`sdl-config --cflags`])

GB_COMPONENT(
  sdl_sound,
  SDL_SOUND,
  [SDL sound],
  [sound],
  [GB_FIND(SDL_mixer.h SDL_cdrom.h, `sdl-config --prefix`, include/SDL)],
  [GB_FIND(libSDL_mixer.$SHLIBEXT, /usr /usr/local `sdl-config --prefix`, 
lib)],
  [`sdl-config --libs` -lSDL_mixer],
  [`sdl-config --cflags`])
--8<-----------

GB_FIND(F1 F2 F3, A1 A2 A3, B1 B2 B3) means that the files F1, F2 and F3 must 
be located in all combinations of (A1 A2 A3)*(B1 B2 B3) directories.

So there, libXCursor.so is searched into:
* /usr/lib
* /usr/local/lib
* /usr/X11R6/lib
* /usr/lib/X11R6
* /usr/local/lib/X11R6
* /usr/X11R6/lib/X11R6

For all SDL components, the searched files are:
* XCursor.h
* libXCursor.so
* SDL_opengl.h 
* SDL.h 
* SDL_image.h
* libSDL_image.so
* SDL_mixer.h 
* SDL_cdrom.h
* libSDL_mixer.so

You can see to that the 'sdl-config' program is needed.

For MySQL component:

--8<-----------
GB_COMPONENT(
  mysql,
  MYSQL,
  [MySQL driver],
  [src],
  [GB_FIND(mysql.h my_config.h, /usr/local/lib /usr/local /opt /usr/lib /usr, 
include mysql*/include)],
  [GB_FIND(libmysqlclient.$SHLIBEXT, /usr/local /opt /usr, lib mysql*/lib)],
  [$C_LIB -lmysqlclient -lz])
--8<-----------

The files mysql.h and my_config.h are searched in a bunch of different 
directorys, as well the libmysqlclient.so library.

In a few words, you must check:

1) That all these files are installed on your system. On Mandriva, I can 
search a package from a file included in it.

2) That the files are located in a directory specified by the GB_FIND() macro. 
Otherwise, tell me which directory is missing so that I add it in the macro 
call.

Regards,

-- 
Benoit Minisini





More information about the User mailing list