roboforum.ru

Технический форум по робототехнике.

Установка SWIG в Windows

Установка SWIG в Windows

famoso » 06 май 2011, 18:23

Помогите, пожайлуста, решил попрограммировать ИНС на Python с помощью библиотеки FANN. Но для FANN требуется установленная SWIG. А как ее установить не знаю. Объясните тупому непонимающему... Желательно на cygwin

Re: Установка SWIG в Windows

RootAdmin » 06 май 2011, 21:31

А под *nix не ставится?

Re: Установка SWIG в Windows

famoso » 07 май 2011, 00:54

К сожелению у меня нет *nix на данный момент и скоро не предвидится. Помогите, пожайлуста

Re: Установка SWIG в Windows

Vooon » 08 май 2011, 00:07

И что тебе мешает сходить на http://www.swig.org и скачать свиг?

Re: Установка SWIG в Windows

famoso » 08 май 2011, 18:33

Я уже сходил и скачал. Но у меня не получается установить, вернее сконфигурировать. Устанавливать пробовал через cygwin и mingw

Re: Установка SWIG в Windows

Vooon » 09 май 2011, 01:31

Как у вас все сложно :)

# aptitude install swig

Добавлено спустя 2 минуты 24 секунды:
А из этого руководства не помогает? http://www.swig.org/Doc1.3/Windows.html

Re: Установка SWIG в Windows

famoso » 09 май 2011, 11:18

у меня не получается сконфигурировать
./autogen.sh проходит нормально
./configure а вот здесь не получается

Может надо как-то настроить cygwin?

Re: Установка SWIG в Windows

RootAdmin » 09 май 2011, 13:23

В линухе посоветовал бы build-пакеты поставить. А что за ошибка-то?

Re: Установка SWIG в Windows

famoso » 09 май 2011, 20:37

Код: Выделить всёРазвернуть
?¤┐Ё-Ёбва вRа@game-edition ~
$ cd c:

?¤┐Ё-Ёбва вRа@game-edition /c
$ ls
AUTOEXEC.BAT            MSDOS.SYS       SafeSurf ABUSE README.txt  joomla
Bootfont.bin            MSOCache        System Volume Information  msys
BrowseTracker.ini       MemeoSendAddin  Unreal Commander           ntldr
CONFIG.SYS              MinGW           WINDOWS                    pagefile.sys
Django-1.3              NTDETECT.COM    WebServers                 slova.txt
Documents and Settings  OpenCV2.2       boot.ini                   swig-2.0.3
Games                   Program Files   cygwin                     ??
IO.SYS                  Python27        djcode
Intel                   RECYCLER        fann-2.1.0beta

?¤┐Ё-Ёбва вRа@game-edition /c
$ cd swig-2.0.3

?¤┐Ё-Ёбва вRа@game-edition /c/swig-2.0.3
$ ls
swig-2.0.3

?¤┐Ё-Ёбва вRа@game-edition /c/swig-2.0.3
$ cd swig-2.0.3

?¤┐Ё-Ёбва вRа@game-edition /c/swig-2.0.3/swig-2.0.3
$ ./autogen.sh
+ test -d Tools/config
+ aclocal -I Tools/config
+ autoheader
+ automake --add-missing --copy --force-missing
+ autoconf
+ cd CCache
+ autoreconf

?¤┐Ё-Ёбва вRа@game-edition /c/swig-2.0.3/swig-2.0.3
$ ./configure
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking maximum warning verbosity option... -Wall -W -ansi -pedantic for C++ -W
all -W -ansi -pedantic for C
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for bool... yes
checking for popen... yes
checking whether to enable PCRE support... yes
checking whether to use local PCRE... no
checking for a sed that does not truncate output... /bin/sed
checking for pcre-config... no
configure: error: in `/c/swig-2.0.3/swig-2.0.3':
configure: error:
        Cannot find pcre-config script from PCRE (Perl Compatible Regular Expres
sions)
        library package. This dependency is needed for configure to complete,
        Either:
        - Install the PCRE developer package on your system (preferred approach)
.
        - Download the PCRE source tarball, build and install on your system
          as you would for any package built from source distribution.
        - Use the Tools/pcre-build.sh script to build PCRE just for SWIG to stat
ically
          link against. Run 'Tools/pcre-build.sh --help' for instructions.
          (quite easy and does not require privileges to install PCRE on your sy
stem)
        - Use configure --without-pcre to disable regular expressions support in
SWIG
          (not recommended).
See `config.log' for more details

?¤┐Ё-Ёбва вRа@game-edition /c/swig-2.0.3/swig-2.0.3
$


Вот все что я делаю по инструкции, т.е. перейти в каталог, запустить ./autogen.sh, запустить ./configure
Конфигурация это последняя команда в моем коде

Re: Установка SWIG в Windows

SkyStorm » 10 май 2011, 09:42

Дык вроде все ясно написано нормальными английскими буквами ...
Не найден PCRE.
Либо докачивать либо запускать ./configure --without-pcre


cron
Rambler\'s Top100 Mail.ru counter