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

Christopher Brian Jack brian at ...1334...
Mon Oct 9 19:43:05 CEST 2006


On Mon, 9 Oct 2006, Benoit Minisini wrote:

I'm really clueless about the whole configure/automake system.  I tried to
use it once for one of my own projects and it really didn't simplify the
process any.  I just endup up pulling out hair and going to handcrafted
build scripts.

Configure.ac (and all its macros) read to me like Greek (and no, I don't
know Greek).

Is XCursor a separate package?  SDL requires it but having all the SDL
devs installed does not make this file present anywhere on my system.
When I need to look for a file I use:

find / -name "<file-being-looked-for>" 2>/dev/null
(the redirect of stderr is becuase find / looks in things like devnodes
and /var which includes a lot of things that find won't be able to stat)

Hence:
cowboy at ...56...:~> find / -name XCursor.h 2>/dev/null
cowboy at ...56...:~>

Indicates the abosulte abscence of this file anywhere on my system.

> 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
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

.=================================================.
|  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





More information about the User mailing list