View previous topic :: View next topic |
Author |
Message |
pol01 n00b
Joined: 27 Nov 2007 Posts: 13
|
Posted: Tue Nov 11, 2014 11:13 pm Post subject: [solved] Coolreader3::qt |
|
|
I'm getting a build error when trying to install coolreader3 from qt overlay.
This is the build.log.
This is the 'emerge --info' output.
Does anybody have a working ebuild for coolreader3 or any idea how to install it?
Last edited by pol01 on Tue Mar 10, 2015 11:22 pm; edited 3 times in total |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Thu Nov 27, 2014 12:30 pm Post subject: |
|
|
It can't build because it fails to find the freetype headers which nowadays are located at freetype2/config/ftheader.h. So the source code needs to be patched. Personally I don't think it's worth the effort to update this package, but if you do make a patch, I'd be happy to include it in the overlay. _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
yoshi314 l33t
Joined: 30 Dec 2004 Posts: 850 Location: PL
|
Posted: Wed Jan 07, 2015 8:54 am Post subject: |
|
|
yngwin wrote: | It can't build because it fails to find the freetype headers which nowadays are located at freetype2/config/ftheader.h. So the source code needs to be patched. Personally I don't think it's worth the effort to update this package, but if you do make a patch, I'd be happy to include it in the overlay. |
it doesn't. you just need to add new cmake flag to build it. At least this was the case just a week ago or so.
i don't have my ebuild around, but usually adding
Code: | -DCMAKE_CXX_FLAGS='-DUSE_FREETYPE2' | to cmake flags fixes build.
on some older non-gentoo systems, specifying
Code: | -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 |
helps instead of aforementioned parameter.
the ebuild i use on gentoo :
Code: | # Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit cmake-utils git-2
DESCRIPTION="ebook reader"
HOMEPAGE="http://www.coolreader.org/"
#EGIT_REPO_URI="git://crengine.git.sourceforge.net/gitroot/crengine/crengine"
EGIT_REPO_URI="git://git.code.sf.net/p/crengine/crengine"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND="media-libs/freetype
media-libs/libpng:0=
sys-libs/zlib
virtual/jpeg:0
dev-qt/qtcore:4
dev-qt/qtgui:4"
RDEPEND="${DEPEND}
virtual/ttf-fonts"
src_prepare() {
use amd64 && \
sed -e 's/unsigned int/unsigned long/g' -i crengine/src/lvdocview.cpp \
|| die 'sed lvdocview.cpp failed'
}
src_configure() {
CMAKE_BUILD_TYPE="Release"
mycmakeargs="-D GUI=QT -D CMAKE_CXX_FLAGS='-DUSE_FREETYPE2'"
cmake-utils_src_configure
} |
_________________ ~amd64
shrink your /usr/portage with squashfs+aufs |
|
Back to top |
|
|
pol01 n00b
Joined: 27 Nov 2007 Posts: 13
|
Posted: Tue Mar 10, 2015 11:21 pm Post subject: |
|
|
Thanks a lot yoshi314!!
You really help me!
It should be better to publish your ebuild at bugs.gentoo.org. |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Thu Mar 12, 2015 11:41 am Post subject: |
|
|
Thanks! I've updated the ebuild in the overlay. _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
|