Ананас на Gentoo Linux

Начинаете изучать Ананас? Задавайте вопросы здесь. С чего начать? Где найти? Как сделать? А можно...?

Как установить все таки)

Сообщение Alfi » Пт мар 06, 2009 4:04 pm

Добрый день!

Возникла необходимость (да-да, именно необходимость перелесть с 1С), система у нас везде Gentoo Linux.
Взялся ставить ananas )
Нашел ссылки на оверлейние портежи для ананаса, установил.
Ставлю ananas-0.9.5, результат компиляции:
Код: Выделить всё
 * ERROR: app-office/ananas-engine-qt-0.9.5 failed.
 * Call stack:
 *                       ebuild.sh, line   49:  Called pkg_setup
 *   ananas-engine-qt-0.9.5.ebuild, line   23:  Called built_with_use 'x11-libs/qt' 'mysql'
 *                   eutils.eclass, line 1759:  Called die
 * The specific snippet of code:
 *                                      die)   die "$PKG does not actually support the $1 USE flag!";;
 *  The die message:
 *   x11-libs/qt-4.4.2 does not actually support the mysql USE flag!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/ananas-engine-qt-0.9.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/ananas-engine-qt-0.9.5/temp/die.env'.
 * This ebuild is from an overlay: '/usr/local/portage/'


Собственно в системе установлен qt-3.3.8 и qt-4.4.2 - оба собранны с поддержкой и флагом mysql.

Что-ж ему не хватает-то.
На "старом" форуме нашел упоминание о ananas-qt4 - вот только как его скачать и поставить - загадка :/
Alfi
 
Сообщения: 4
Зарегистрирован: Ср фев 25, 2009 2:21 pm

Re: Как установить все таки)

Сообщение Alfi » Пт мар 06, 2009 4:14 pm

Возникла мысль что ananas не собирается из за qt-4, снес его нафиг оставив тока qt-3.3.8
Результат сборки:
Код: Выделить всё
>>> Emerging (1 of 1) app-office/ananas-engine-qt-0.9.5 from unknown repo
 * ananas-0.9.5.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                  [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking ananas-0.9.5.tar.bz2 to /var/tmp/portage/app-office/ananas-engine-qt-0.9.5/work
 * Applying makefile-0.9.5.diff ...                                       [ ok ]
>>> Source unpacked in /var/tmp/portage/app-office/ananas-engine-qt-0.9.5/work
>>> Compiling source in /var/tmp/portage/app-office/ananas-engine-qt-0.9.5/work/ananas-0.9.5 ...
make -j3 -j1 tr
lrelease translations/*.ts
Updating 'translations/ananas-designer-en.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 658 untranslated source text(s)
Updating 'translations/ananas-designer-ru.qm'...
    Generated 669 translation(s) (669 finished and 0 unfinished)
Updating 'translations/ananas-engine-en.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 12 untranslated source text(s)
Updating 'translations/ananas-engine-ru.qm'...
    Generated 12 translation(s) (12 finished and 0 unfinished)
Updating 'translations/ananas-lib-en.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 422 untranslated source text(s)
Updating 'translations/ananas-lib-ru.qm'...
    Generated 417 translation(s) (417 finished and 0 unfinished)
    Ignored 5 untranslated source text(s)
Updating 'translations/ananas-plugins-en.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 230 untranslated source text(s)
Updating 'translations/ananas-plugins-ru.qm'...
    Generated 218 translation(s) (218 finished and 0 unfinished)
    Ignored 12 untranslated source text(s)
Updating 'translations/ananas-webengine-en.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
Updating 'translations/ananas-webengine-ru.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
make -j3 -j1
qmake src/src.pro -o src/Makefile && cd src && make
make[1]: Entering directory `/var/tmp/portage/app-office/ananas-engine-qt-0.9.5/work/ananas-0.9.5/src'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/var/tmp/portage/app-office/ananas-engine-qt-0.9.5/work/ananas-0.9.5/src'
make: *** [all] Error 2
 *
 * ERROR: app-office/ananas-engine-qt-0.9.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4211:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "make failed"
 *  The die message:
 *   make failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/ananas-engine-qt-0.9.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/ananas-engine-qt-0.9.5/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 *

>>> Failed to emerge app-office/ananas-engine-qt-0.9.5, Log file:

>>>  '/var/tmp/portage/app-office/ananas-engine-qt-0.9.5/temp/build.log'

 * Messages for package app-office/ananas-engine-qt-0.9.5:

 *
 * ERROR: app-office/ananas-engine-qt-0.9.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4211:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "make failed"
 *  The die message:
 *   make failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/ananas-engine-qt-0.9.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/ananas-engine-qt-0.9.5/temp/environment'.
 * This ebuild is from an overlay: '/usr/local/portage/'


И ананас опять не собрался :/
Alfi
 
Сообщения: 4
Зарегистрирован: Ср фев 25, 2009 2:21 pm

Re: Как установить все таки)

Сообщение app » Пт мар 06, 2009 4:45 pm

Это вам нужо вызывать дух Гентушников, что бы они смогли что-нибудь посоветовать, глядя на эти ошибки.
Если бы вы собирали просто из архива исходников командой make, тогда бы здесь вам помогли советами и подсказками.
Андрей
Аватара пользователя
app
 
Сообщения: 332
Зарегистрирован: Вт фев 24, 2009 5:38 pm

Re: Как установить все таки)

Сообщение Alfi » Сб мар 07, 2009 3:19 pm

А если распаковать ananas-0.9.5.tbz2 и запустить сначала ./configure , а следом make
то получаем:

Код: Выделить всё
erver ananas-engine-qt # make
qmake src/src.pro -o src/Makefile && cd src && make
make[1]: Entering directory `/usr/src/ananas-engine-qt/src'
make[1]: *** Не заданы цели и не найден make-файл.  Останов.
make[1]: Leaving directory `/usr/src/ananas-engine-qt/src'
make: *** [all] Ошибка 2


т.е. вообще все интересно.
Alfi
 
Сообщения: 4
Зарегистрирован: Ср фев 25, 2009 2:21 pm

Re: Как установить все таки)

Сообщение app » Пн мар 09, 2009 9:36 pm

Чтобы все собралось, необходимо наличие в системе Qt и QSA (Qt Script for Applications)

команда
qmake
от QT3 должна быть доступна

Переменная среды окружения QTDIR должна указывать на библиотеку QT
export QTDIR=/usr/lib/qt3
Андрей
Аватара пользователя
app
 
Сообщения: 332
Зарегистрирован: Вт фев 24, 2009 5:38 pm

Ананас на Gentoo Linux

Сообщение app » Пн мар 09, 2009 10:29 pm

Прошу все вопросы по работе Ананаса на Gentoo обсуждать в этой теме.
Андрей
Аватара пользователя
app
 
Сообщения: 332
Зарегистрирован: Вт фев 24, 2009 5:38 pm

Re: Ананас на Gentoo Linux

Сообщение prof-alex » Пт мар 13, 2009 9:01 am

Снос qt4 не обязателен, но ebuild для ананаса нужно переписать, в самом portage много изменений.

Ссылочку на используемый ebuild не покажите?
prof-alex
 
Сообщения: 1
Зарегистрирован: Пт мар 13, 2009 8:49 am

Re: Ананас на Gentoo Linux

Сообщение Alfi » Пн мар 23, 2009 3:23 pm

Вообщем, вызов qmake результатов дал нуль :/
а именно:

server ananas-0.9.5 # qmake
Usage: qmake [mode] [options] [files]

QMake has two modes, one mode for generating project files based on
some heuristics, and the other for generating makefiles. Normally you
shouldn't need to specify a mode, as makefile generation is the default
mode for qmake, but you may use this to test qmake on an existing project

Mode:
-project Put qmake into project file generation mode
In this mode qmake interprets files as files to
be built,
defaults to *.c; *.ui; *.y; *.l; *.ts; *.xlf; *.qrc; *.h; *.hpp; *.hh; *.hxx; *.H; *.cpp; *.cc; *.cxx; *.C
-makefile Put qmake into makefile generation mode (default)
In this mode qmake interprets files as project files to
be processed, if skipped qmake will try to find a project
file in your current working directory

Warnings Options:
-Wnone Turn off all warnings
-Wall Turn on all warnings
-Wparser Turn on parser warnings
-Wlogic Turn on logic warnings

Options:
* You can place any variable assignment in options and it will be *
* processed as if it was in [files]. These assignments will be parsed *
* before [files]. *
-o file Write output to file
-unix Run in unix mode
-win32 Run in win32 mode
-macx Run in Mac OS X mode
-d Increase debug level
-t templ Overrides TEMPLATE as templ
-tp prefix Overrides TEMPLATE so that prefix is prefixed into the value
-help This help
-v Version information
-after All variable assignments after this will be
parsed after [files]
-norecursive Don't do a recursive search
-recursive Do a recursive search
-cache file Use file as cache [makefile mode only]
-spec spec Use spec as QMAKESPEC [makefile mode only]
-nocache Don't use a cache file [makefile mode only]
-nodepend Don't generate dependencies [makefile mode only]
-nomoc Don't generate moc targets [makefile mode only]
-nopwd Don't look for files in pwd [project mode only]


может все же есть метод установки ананаса?
Alfi
 
Сообщения: 4
Зарегистрирован: Ср фев 25, 2009 2:21 pm

Re: Ананас на Gentoo Linux

Сообщение app » Вт мар 24, 2009 10:15 pm

qmake умеет создавать Makefile из *.pro файла.
файл *.pro должен находиться в текущей папке или быть указан явно.
В документации по qt это все написано.

В корне проекта есть только Makefile. Файла *.pro - нет.
Соответственно, в корне проекта следует вызывать просто make.
Андрей
Аватара пользователя
app
 
Сообщения: 332
Зарегистрирован: Вт фев 24, 2009 5:38 pm

Re: Как установить все таки)

Сообщение master » Вс май 17, 2009 7:30 am

Alfi писал(а):А если распаковать ananas-0.9.5.tbz2 и запустить сначала ./configure , а следом make
то получаем:

Код: Выделить всё
erver ananas-engine-qt # make
qmake src/src.pro -o src/Makefile && cd src && make
make[1]: Entering directory `/usr/src/ananas-engine-qt/src'
make[1]: *** Не заданы цели и не найден make-файл.  Останов.
make[1]: Leaving directory `/usr/src/ananas-engine-qt/src'
make: *** [all] Ошибка 2




у меня была такая ошибка (при установке на ALT) - почему то в каталоге src отсутствовал файл Makefile, решил ее так:
зашел в каталог src, выбрал путь и создал маке файл:
Код: Выделить всё
[root@localhost ~]# cd src
[root@localhost ~]# export PATH=$PATH:/usr/lib/qt3/bin
[root@localhost ~]# qmake
[root@localhost ~]# make

за тем вернулся на каталог выше и запустил опять make

... правда потом споткнулся на другом :)
Аватара пользователя
master
 
Сообщения: 24
Зарегистрирован: Ср фев 25, 2009 3:13 am
Откуда: Хабаровск


Вернуться в Вопросы новичков

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1

cron