Ставлю игру wesnoth. На первом шагу- проблемы:
./configure
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--infodir=DIR info documentation [PREFIX/info]
--mandir=DIR man documentation [PREFIX/man]
Program names:
--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
X features:
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
--target=TARGET configure for building compilers for TARGET [HOST]
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer
--disable-nls do not use Native Language Support
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--disable-rpath do not hardcode runtime library paths
--enable-debug enable debug in wesnoth
--enable-static enable static building of wesnoth
--enable-lite enable lite version of wesnoth (without music or
large images)
--enable-tinygui enable GUI reductions for resolutions down to
320x240 (PDAs)
--disable-game disable compilation of game
--enable-server enable compilation of server
--enable-campaign-server
enable compilation of campaign server
--enable-editor enable compilation of map editor
--enable-tools enable compilation of tools for translators and
artists
--disable-gnome1 disable installation of icon and menu entry in
GNOME1
--disable-gnome2 disable installation of icon and menu entry in
GNOME2
--enable-dummy-locales enable installation of Wesnoth own private locales
--enable-internal-data put data inside application: Mac OS X only
--disable-sdltest do not try to compile and run a test SDL program
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
--without-libiconv-prefix don't search for libiconv in includedir and libdir
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
--without-libintl-prefix don't search for libintl in includedir and libdir --with-datadir-name[=DIR]
change name of data directory [wesnoth]
--with-localedir[=DIR]
install locale data under dir [translations]
--with-icondir[=DIR]
change icon directory under gnome
--with-desktopdir[=DIR]
change desktop directory under gnome 2
--with-fifodir directory for the wesnothd fifo socket file
--with-server-uid user id of the user who runs wesnothd
--with-server-gid group id of the user who runs wesnothd
--with-kde enable installation of icon and KDE menu entry
--with-gnome enable installation of icon and GNOME menu entry
--with-x use the X Window System
--with-freetype-prefix=PFX
Prefix where FREETYPE is installed (optional)
--with-freetype-exec-prefix=PFX
Exec prefix where FREETYPE is installed (optional)
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L if you have libraries in a
nonstandard directory
CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have
headers in a nonstandard directory
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CPP C preprocessor
CXXCPP C++ preprocessor
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to .
Re: ./configure не видит SDL #1
Эй, оператор-астроном,
Нет звёзд и звёздных глаз -
Есть плац, пивная, гастроном
И горы из колбас!
Марк Мерман, "Никто кино так не снимал, как Лени Риффеншталь"
Re: ./configure не видит SDL #2
Re: ./configure не видит SDL #3
Тогда найдите в файле configure эту строку: SDL_image lib not found! Get SDL_image from http://www.libsdl.org/projects/SDL_image/index.html и посмотрите, на что скрипт реагирует выдачей такого сообщения. Или прикрепите configure сюда, я сам посмотрю.
Кстати, что у Вас в /etc/ld.so.conf?
Эй, оператор-астроном,
Нет звёзд и звёздных глаз -
Есть плац, пивная, гастроном
И горы из колбас!
Марк Мерман, "Никто кино так не снимал, как Лени Риффеншталь"
Re: ./configure не видит SDL #4
Re: ./configure не видит SDL #5
А пакет SDL-devel стоит?
Да что вы все вокруг да около? Да спрашивайте напрямик! В. С. Высоцкий.
Re: ./configure не видит SDL #6
Стоит.
Re: ./configure не видит SDL #7
А этот SDL_image-devel-1.2.4-1.110asp.i386.rpm?
Да что вы все вокруг да около? Да спрашивайте напрямик! В. С. Высоцкий.
Re: ./configure не видит SDL #8
А как это посмотреть?
Кстати, я пробовал пойти варварским путем: Хотел удалить SDL через yum и поставить библиотеку из с сайта скаченную. В ответ выдалось, что удалятся 80 пакетов. Вы уверены? Ответил нет. Теперь вот не знаю: Возможно из-за этого сейчас не идет make для SDL_image (решил с разными опциями побаловаться на ./configure). Теперь makje заканчивается сообщением:
/bin/sh ./libtool --mode=link gcc -g -O2 -I/usr/include/SDL -D_REENTRANT -DLOAD_BMP -DLOAD_GIF -DLOAD_JPG -DLOAD_LBM -DLOAD_PCX -DLOAD_PNG -DLOAD_PNM -DLOAD_TGA -DLOAD_XPM -o libSDL_image.la -rpath /usr/local/lib -no-undefined -release 1.2 -version-info 1:3:1 IMG.lo IMG_bmp.lo IMG_gif.lo IMG_jpg.lo IMG_lbm.lo IMG_pcx.lo IMG_png.lo IMG_pnm.lo IMG_tga.lo IMG_tif.lo IMG_xcf.lo IMG_xpm.lo -ljpeg -lpng -lz -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
grep: /usr/local/lib/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/local/lib/libstdc++.la: No such file or directory
libtool: link: `/usr/local/lib/libstdc++.la' is not a valid libtool archive
make: *** [libSDL_image.la] Ошибка 1
Re: ./configure не видит SDL #9
проверить так:
rpm -q SDL_image-develВообщем если бы я прочитал первый пост внимательно, то сразу сказал бы что этого пакета похоже нет. Но в первом посте больно много всего было написано и я его читал не внимательно.
Да что вы все вокруг да около? Да спрашивайте напрямик! В. С. Высоцкий.
Re: ./configure не видит SDL #10
Re: ./configure не видит SDL #11
Ну давайтне попробуем...
Поиск источника... (архив и spec-файл)
http://ftp.riken.jp/Linux/dag/packages/wesnoth/
Кстати, есть SRPM: http://ftp.riken.jp/Linux/dag/packages/wesnoth/wesnoth-1.0.2-1.rf.src.rp...
Взял этот spec: http://ftp.riken.jp/Linux/dag/packages/wesnoth/wesnoth.spec
Взял этот архив здесь: http://prdownloads.sourceforge.net/wesnoth/wesnoth-1.1.2a.tar.bz2
Отредактировал wesnoth.spec
Name: wesnoth -Version: 1.0.2 +Version: 1.1.2 ... -Source: http://www.wesnoth.org/files/wesnoth-%{version}.tar.gz +Source: http://www.wesnoth.org/files/wesnoth-%{version}.tar.bz2Создал символьную ссылку:
ln -s wesnoth-1.1.2a.tar.bz2 wesnoth-1.1.2.tar.bz2
Смотрим...
-rw-rw-r-- 1 sergeil sergeil 62695023 Май 1 18:17 wesnoth-1.1.2a.tar.bz2
lrwxrwxrwx 1 sergeil sergeil 22 Май 1 18:31 wesnoth-1.1.2.tar.bz2 -> wesnoth-1.1.2a.tar.bz2
-rw-rw-r-- 1 sergeil sergeil 4146 Май 1 18:31 wesnoth.spec
OK
Пробуем...
[sergeil@homedesk SOURCES]$ rpmbuild -bp wesnoth.spec
ошибка: Неудовлетворенные зависимости сборки: SDL_image-devel нужен для wesnoth-1.1.2a-1.rf.i386 SDL_ttf-devel нужен для wesnoth-1.1.2a-1.rf.i386 SDL_net-devel нужен для wesnoth-1.1.2a-1.rf.i386 SDL_mixer-devel нужен для wesnoth-1.1.2a-1.rf.i386Нет нужных пакетов ... OK, утановил через yum вышеназванные пакеты и пакеты по зависимостям...
Запустил сборку...
rpmbuild -ba wesnoth.spec
Собралось без ошибок... Смотрим пакет в стандартном месте...
[sergeil@homedesk i386]$ ll wesnoth-1.1.2-1.rf.i386.rpm
-rw-rw-r-- 1 sergeil sergeil 62488983 Май 1 18:44 wesnoth-1.1.2-1.rf.i386.rpm
Смотрим пакет исхолников в стандартном месте...
[sergeil@homedesk i386]$ ll ../../SRPMS/wesnoth-1.1.2-1.rf.src.rpm
-rw-rw-r-- 1 sergeil sergeil 62787152 Май 1 18:44 ../../SRPMS/wesnoth-1.1.2-1.rf.src.rpm
Не могу понять почему у Вас проблема и зачем собирать из исходников.
На все я потратил буквально 15 минут...
Админ админу - друг, товарищ и ман...
(c) Almaty
Re: ./configure не видит SDL #12
Спасибо, вот как Вы описали, так и установилось
(почему он сразу не увидел эту библиотеку- остается гадать).
Re: ./configure не видит SDL #13
Если Вам интересно, изучите spec-файл. Вы можете выполнить поэтапную распаковку, конфигурирование, компилляцию, выполняя директивы spec-файла самостоятельно.
Админ админу - друг, товарищ и ман...
(c) Almaty