ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Building OpenGL applications
@ 2003-03-23 17:43 Andrey Brindeew
  0 siblings, 0 replies; only message in thread
From: Andrey Brindeew @ 2003-03-23 17:43 UTC (permalink / raw)
  To: ALT Linux community

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-23 17:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-23 17:43 [Comm] Building OpenGL applications Andrey Brindeew

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