Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Coolreader3::qt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
pol01
n00b
n00b


Joined: 27 Nov 2007
Posts: 13

PostPosted: Tue Nov 11, 2014 11:13 pm    Post subject: [solved] Coolreader3::qt Reply with quote

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
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4523
Location: Suzhou, China

PostPosted: Thu Nov 27, 2014 12:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 831
Location: PL

PostPosted: Wed Jan 07, 2015 8:54 am    Post subject: Reply with quote

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
View user's profile Send private message
pol01
n00b
n00b


Joined: 27 Nov 2007
Posts: 13

PostPosted: Tue Mar 10, 2015 11:21 pm    Post subject: Reply with quote

Thanks a lot yoshi314!!

You really help me! :D

It should be better to publish your ebuild at bugs.gentoo.org.
Back to top
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4523
Location: Suzhou, China

PostPosted: Thu Mar 12, 2015 11:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum