From: "Евгений Ростовцев" <real.altlinux.org@gmail.com>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] Cmake не может найти QtCore
Date: Wed, 28 Dec 2011 08:34:30 +0600
Message-ID: <CAKCRA6LKzNqX__dFPZct-YnWjVw0h+HNPLAQtpm_9B1aOzmOQg@mail.gmail.com> (raw)
In-Reply-To: <1325022982.24967.0.camel@localhost.localdomain>
>> > Плохо дело - результат тот-же . Куда можно ещё капнуть?
>>
>> Самое простое - выложить куда-нибудь то, что Вы собираете, включая и
>> спек, и дать ссылку сюда. Посмотрим, что там такое.
>>
> http://dl.dropbox.com/u/6823852/ALT%
> 20Linux/libvlc-qt/libvlc-qt-0.6.0-alt0.src.rpm
У Вас в спеке:
#%add_optflags -I/usr/include/qt4/QtCore
Оно не только закомментировано, его если даже раскомментировать, будет
ошибка. Найдите отличие от того, что я говорил:
%add_optflags -I/usr/include/qt4
Кстати, там ещё в спеке есть косяки:
Group: Multimedia/Video
Группы Multimedia/Video у нас нет, есть Video.
%_libdir/*
[...]
%exclude %_libdir/debug
Так делать не стоит, вместо этого нужно вместо %_libdir/* указывать
более конкретный паттерн:
%_libdir/*.so.*
Ну и добавить подпакет %name-devel, куда пойдут:
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
В самом пакете косяк, он кладёт pkg-config файл не в
%_libdir/pkgconfig (во что разворачивается %_pkgconfigdir), а в
%_libexecdir/pkgconfig. Нужно либо
1. править в исходниках: в файле libvlc-qt/pkgconfig/CMakeLists.txt
заменить строку 30 с
INSTALL(FILES ${CMAKE_BINARY_DIR}/pkgconfig/libvlc-qt.pc DESTINATION
${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
на
INSTALL(FILES ${CMAKE_BINARY_DIR}/pkgconfig/libvlc-qt.pc DESTINATION
${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig)
либо
2. в спеке после вызова %makeinstall_std добавить:
%ifarch x86_64
install -d %buildroot%_pkgconfigdir
mv %buildroot%_libexecdir/pkgconfig/* %buildroot%_pkgconfig/
%endif
--
REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ
ALT Linux team
next prev parent reply other threads:[~2011-12-28 2:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-26 15:17 gBopHuk_alt
2011-12-26 15:33 ` Евгений Ростовцев
2011-12-26 21:14 ` gBopHuk_alt
2011-12-27 2:33 ` Евгений Ростовцев
2011-12-27 10:02 ` gBopHuk_alt
2011-12-27 10:04 ` Евгений Ростовцев
2011-12-27 21:56 ` gBopHuk_alt
2011-12-28 2:34 ` Евгений Ростовцев [this message]
2011-12-28 7:47 ` gBopHuk_alt
2011-12-28 8:38 ` gBopHuk_alt
2011-12-28 8:48 ` Евгений Ростовцев
2011-12-28 9:13 ` gBopHuk_alt
2011-12-28 9:16 ` Евгений Ростовцев
2011-12-28 9:40 ` gBopHuk_alt
2011-12-28 9:44 ` Евгений Ростовцев
2011-12-26 16:16 ` Michael Shigorin
2012-01-13 14:27 ` gBopHuk_alt
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=CAKCRA6LKzNqX__dFPZct-YnWjVw0h+HNPLAQtpm_9B1aOzmOQg@mail.gmail.com \
--to=real.altlinux.org@gmail.com \
--cc=devel-newbies@lists.altlinux.org \
/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
devel@ where you _can_ ask
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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 devel-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
public-inbox-index devel-newbies
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git