ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] ld -L/usr/X11R6/lib как передать это в ./configure
@ 2001-11-08 22:21 AVL
  2001-11-08 23:54 ` DH
  0 siblings, 1 reply; 10+ messages in thread
From: AVL @ 2001-11-08 22:21 UTC (permalink / raw)
  To: сизиф

есть стандартный метод добавить путь в поиск библиотек.
уже который раз собираю прогу и натыкаюсь на один и тотже сценарий.
./configure
.....
checking for glBegin in -lGL... no
configure: error: OpenGL is needed

знаю что надо добавить -L/usr/X11R6/lib
а как это сделать корректно?
какая это опция?

[avl@perec CriticalMass-0.93]$ ./configure --help
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print `checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
--enable and --with options recognized:
  --enable-debug               Enable debugging [default=off]
  --enable-trace               Enable tracing [default=off]
  --enable-optimize=[level]    Enable optimization [default=2]



и каким образом работает этот код в configure

    echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
echo "configure:1633: checking for glBegin in -lGL" >&5
ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
LIBS="-lGL  $LIBS"
    ac_tr_lib=HAVE_LIB`echo GL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  LIBS="-lGL $LIBS"
{ echo "configure: error: OpenGL is needed" 1>&2; exit 1; }

как он отыскивает библиотеку?




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-11-11 23:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-08 22:21 [sisyphus] ld -L/usr/X11R6/lib как передать это в ./configure AVL
2001-11-08 23:54 ` DH
2001-11-11  1:03   ` AVL
2001-11-11  1:22     ` DH
2001-11-11  7:19       ` Alexey Voinov
2001-11-11  8:19       ` [sisyphus] " Mikhail Zabaluev
2001-11-11 10:24         ` AVL
2001-11-11 13:34           ` Mikhail Zabaluev
2001-11-11 14:26             ` AVL
2001-11-11 23:15                 ` AVL

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git