ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrey Brindeew <abr@altlinux.ru>
To: ALT Linux community <community@altlinux.ru>
Subject: [Comm] Building OpenGL applications
Date: Sun, 23 Mar 2003 20:43:29 +0300
Message-ID: <20030323174329.GA25982@abr.tool.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 1722 bytes --]

Hi!

Требуется создать инфраструктуру для сборки OpenGL-программ типа gears.c

Проблема в том, что таких программ (маленьких по размеру, с прозрачными
конфигами от GNU Autotools) либо нет, либо они используют (как gears)
ту среду, в которой они сейчас собираются (а не системную).

Ниже приведены три команды, с помощью которых собирается gears:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -DNDEBUG -I../util \
	-pipe -Wall -O2 -fexpensive-optimizations -march=i686 \
	-fno-exceptions -fno-rtti -fstrict-aliasing -D_REENTRANT \
	-DPTHREADS -c gears.c

/bin/sh ../libtool --mode=link gcc -pipe -Wall -O2 \
	-fexpensive-optimizations -march=i686 -fno-exceptions -fno-rtti \
	-fstrict-aliasing -D_REENTRANT -DPTHREADS -o gears gears.o \
	../src-glut/libglut.la ../si-glu/libGLU.la ../src/libGL.la -lm

gcc -pipe -Wall -O2 -fexpensive-optimizations -march=i686 \
	-fno-exceptions -fno-rtti -Wall -O2 -fstrict-aliasing \
	-D_REENTRANT -DPTHREADS -o .libs/gears gears.o \
	../src-glut/.libs/libglut.so \
	-L/home/abr/RPM/BUILD/Mesa-4.0.3/si-glu \
	-L/usr/X11R6/lib -lGL \
	/home/abr/RPM/BUILD/Mesa-4.0.3/si-glu/.libs/libGLU.so \
	-L/home/abr/RPM/BUILD/Mesa-4.0.3/src ../si-glu/.libs/libGLU.so \
	/home/abr/RPM/BUILD/Mesa-4.0.3/src/.libs/libGL.so \
	../src/.libs/libGL.so -lSM -lICE -lXmu -lXt -lXext -lXi -lX11 \
	-lpthread -lm

Вопрос: как их изменить таким образом, чтобы для сборки gears
требовалось только наличие установленных в системе *-devel пакетов
требуемых библиотек и более ничего?

P.S. Весь день промаялся с чтением autobook, переводов на alex.here.ru
документации по auto{conf,make}, голова уже кругом идет. :-(

-- 
WBR, Andrey Brindeew.
"No one person can understand Perl culture completely"
(C) Larry Wall.

[-- Attachment #2: Type: application/pgp-signature, Size: 245 bytes --]

                 reply	other threads:[~2003-03-23 17:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030323174329.GA25982@abr.tool.ru \
    --to=abr@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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