[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-poppler
Subject:    Re: [poppler] Documentation: Compiling Poppler
From:       Peter_BoÄŤan <peter.bocan () azet ! sk>
Date:       2014-07-12 13:11:28
Message-ID: 08F2F493-2179-4F2E-831D-FADBFAF78655 () azet ! sk
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Well, guys, I have moved towards the goal with a little step. I was missing \
fontconfig library, now I am getting the error message:

checking for POPPLER_QT4... no
checking for POPPLER_QT5... no
./configure: line 23550: syntax error near unexpected token `iconv'
./configure: line 23550: `      AC_LIB_LINKFLAGS_BODY(iconv)’

Am I missing something? Does it require an “iconv" library? Thanks, Peter Bocan.

Dňa 12.7.2014 o 3:06, William Bader <williambader@hotmail.com> napísal:

> > I have downloaded probably all requirements that are mentioned in those links \
> > that I have put into the original message. So what shall I do?
> 
> You probably need one of the developers to help.
> 
> I usually build poppler on Linux with ./configure.  If you run "./configure --help \
> | less", you can see the options and environment variables that you can set. The \
> variables FREETYPE_CFLAGS and FREETYPE_LIBS tell configure where to find the \
> headers and libraries for freetype.  
> It is possible that some of the build tools are looking in only the standard system \
> directories and need to be told where to find the packages that you have installed. \
>  https://github.com/Homebrew/homebrew/wiki/FAQ
> 
> If you build poppler with ./configure, it is easier to start with an official \
> release (usually posted as a compressed tar) than cloning poppler from git.  If you \
> start with a clone, you have to run ./autogen.sh to build the build files, which \
> gives more chances for something to go wrong. 
> cmake might have the same issues with not knowing where to look for packages.
> 
> configure and possibly cmake find files using pkg-config which looks for *.pc \
> files.  You can run "pkg-config --variable pc_path pkg-config" to see the default \
> search path for *.pc files.  If it does not list the directory with the pc files \
> from the homebrew packages, can add them with a command like "export \
> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib64/qt5/lib/pkgconfig" (which I \
> used on Fedora Linux once to build Scribus). 
> > ./configure does not work, it says: "configure: error: cannot find install-sh, \
> > install.sh, ."
> 
> Are you running configure from the top level poppler directory?  Is there also an \
> install-sh file in that directory? 
> The poppler tar release contains install-sh.  If you are missing it, either \
> something failed downloading or unpacking the source or else you might have \
> accidentally removed some files. 
> $ tar tJvf poppler-0.26.0.tar.xz poppler-0.26.0/install-sh
> -rwxr-xr-x 1001/1001     13997 2013-11-18 20:05 poppler-0.26.0/install-sh
> 
> Regards,
> William
> 
> From: peter.bocan@azet.sk
> Date: Sat, 12 Jul 2014 01:19:41 +0200
> To: poppler@lists.freedesktop.org
> Subject: Re: [poppler] Documentation: Compiling Poppler
> 
> Hello and thanks for your response, I am using OS X (so I am using standard bash \
> shell interpreter shipped with OS X). I  have "install" program already and all \
> other packages from Linux are already installed (using Homebrew). I have downloaded \
> probably all requirements that are mentioned in those links that I have put into \
> the original message. So what shall I do?  
> Thanks for your time.
> Peter Bocan.
> 
> Dňa 11.7.2014 o 23:02, William Bader <williambader@hotmail.com> napísal:
> 
> > Well, your solution to run ./configure does not work, it says: "configure: error: \
> > cannot find install-sh, install.sh, .".
> 
> I am not sure, but it might help to have the gnu "install" program.  I think that \
> it is part of coreutils.  http://ftp.gnu.org/gnu/coreutils/ 
> It is possible that the configure script looks for install-sh only when it does not \
> find the install program. 
> Also, what shell are you using?  configure scripts usually work with any posix-like \
> shell (Bourne shell, ksh, bash, etc.) but bash is probably more likely to work. \
> http://ftp.gnu.org/gnu/bash/ 
> > Running cmake which seems to be more verbose, says that I am missing Freetype \
> > library.
> 
> You can download freetype from http://www.freetype.org/
> 
> You will probably need some other packages also.
> 
> Regards,
> William
> 
> From: peter.bocan@azet.sk
> Date: Fri, 11 Jul 2014 19:16:43 +0200
> To: poppler@lists.freedesktop.org
> Subject: Re: [poppler] Documentation: Compiling Poppler
> 
> Hello guys, I'm back. First of all, I want to make things clear: project will be \
> "platform-independent" in a Qt way. I am developing under OS X 10.9.4 Mavericks \
> (and using Homebrew). Well, your solution to run ./configure does not work, it \
> says: "configure: error: cannot find install-sh, install.sh, .". Running cmake \
> which seems to be more verbose, says that I am missing Freetype library.  
> Error message:
> CMake Error at /usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 \
> (message): Could NOT find Freetype (missing: FREETYPE_LIBRARY \
> FREETYPE_INCLUDE_DIRS) Call Stack (most recent call first):
> /usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 \
>                 (_FPHSA_FAILURE_MESSAGE)
> /usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindFreetype.cmake:119 \
> (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:94 (find_package)
> 
> Thanks folks. 
> Peter Bočan.
> 
> Dňa 9.7.2014 o 2:21, William Bader <williambader@hotmail.com> napísal:
> 
> I have built poppler using ./configure and then make on Linux.
> 
> If you are trying to build poppler on Windows, it will take some work to set up a \
> good build environment.  configure is a shell script, so you will need a package \
> like cygwin that includes the bash shell.  You will also need the usual development \
> packages like make, binutils (as and ld), and g++. 
> When you run ./configure, it will usually let you know if a third-part library is \
> too old or is missing, and then you need to find a compiled version of that library \
> or build it yourself from source. 
> If you have problems with dynamic linking using libtool, you can run configure with \
> --enable-static --disable-shared to make static libraries and executables. 
> If you have errors from configure or from make that you can't understand, if you \
> post the error to the list, someone might offer a suggestion. 
> Regards,
> William
> 
> From: peter.bocan@azet.sk
> Date: Wed, 9 Jul 2014 00:31:27 +0200
> To: poppler@lists.freedesktop.org
> Subject: [poppler] Documentation: Compiling Poppler
> 
> Hello guys, may I ask you for some documentation reference how to compile Poppler \
> (with Qt 5 bindings)? Because Google has not sufficient results (or at least I am \
> not sure, how valid they are).  
> Some results from Google:
> http://www.seppemagiels.com/blog/building-poppler-windows-using-mingw
> and
> http://laconsigna.wordpress.com/2011/07/14/compiling-poppler-on-windows/ 
> 
> Thanks in advance. 
> Peter Bocan.
> 
> _______________________________________________ poppler mailing \
> listpoppler@lists.freedesktop.org \
> http://lists.freedesktop.org/mailman/listinfo/poppler 
> 
> _______________________________________________ poppler mailing \
> listpoppler@lists.freedesktop.org \
> http://lists.freedesktop.org/mailman/listinfo/poppler 
> 
> _______________________________________________ poppler mailing list \
> poppler@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/poppler


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=windows-1250"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space;"><div>Well, guys, I have moved towards \
the goal with a little step. I was missing fontconfig library, now I am getting the \
error message:</div><div><br></div><div><div style="margin: 0px; position: static; \
z-index: auto;">checking for POPPLER_QT4... no</div><div style="margin: \
0px;">checking for POPPLER_QT5... no</div><div style="margin: 0px;">./configure: line \
23550: syntax error near unexpected token `iconv'</div><div style="margin: 0px; \
position: static; z-index: auto;">./configure: line 23550: `&nbsp; &nbsp; &nbsp; \
AC_LIB_LINKFLAGS_BODY(iconv)’</div></div><div style="margin: 0px; position: static; \
z-index: auto;"><br></div><div style="margin: 0px; position: static; z-index: \
auto;">Am I missing something? Does it require an “iconv" library? Thanks, Peter \
Bocan.</div><div style="margin: 0px; font-size: 14px; font-family: Monaco; position: \
static; z-index: auto;"><br></div><div><div>Dňa 12.7.2014 o 3:06, William Bader \
&lt;<a href="mailto:williambader@hotmail.com">williambader@hotmail.com</a>&gt; \
napísal:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div \
class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; \
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: \
normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: \
0px;"><div dir="ltr">&gt;I have downloaded probably all requirements that are \
mentioned in those links that I have put into the original message. So what shall I \
do?<div><br></div><div>You probably need one of the developers to \
help.</div><div><br></div><div>I usually build poppler on Linux with ./configure. \
&nbsp;If you run "./configure --help | less", you can see the options and environment \
variables that you can set. The variables FREETYPE_CFLAGS and&nbsp;FREETYPE_LIBS tell \
configure where to find the headers and libraries for \
freetype.&nbsp;</div><div><br></div><div>It is possible that some of the build tools \
are looking in only the standard system directories and need to be told where to find \
the packages that you have installed.</div><div><br></div><div><a \
href="https://github.com/Homebrew/homebrew/wiki/FAQ" \
target="_blank">https://github.com/Homebrew/homebrew/wiki/FAQ</a></div><div><br></div><div>If \
you build poppler with ./configure, it is easier to start with an official release \
(usually posted as a compressed tar) than cloning poppler from git. &nbsp;If you \
start with a clone, you have to run ./autogen.sh to build the build files, which \
gives more chances for something to go wrong.</div><div><br></div><div>cmake might \
have the same issues with not knowing where to look for \
packages.</div><div><br></div><div>configure and possibly cmake find files using \
pkg-config which looks for *.pc files. &nbsp;You can run "pkg-config --variable \
pc_path pkg-config" to see the default search path for *.pc files. &nbsp;If it does \
not list the directory with the pc files from the homebrew packages, can add them \
with a command like "export&nbsp;PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib64/qt5/lib/pkgconfig" \
(which I used on Fedora Linux once to build \
Scribus).</div><div><br></div><div>&gt;&nbsp;./configure does not work, it says: \
"configure: error: cannot find install-sh, install.sh, \
."</div><div><br></div><div>Are you running configure from the top level poppler \
directory? &nbsp;Is there also an install-sh file in that \
directory?</div><div><br></div><div>The poppler tar release contains install-sh. \
&nbsp;If you are missing it, either something failed downloading or unpacking the \
source or else you might have accidentally removed some \
files.</div><div><br></div><div><div>$ tar tJvf poppler-0.26.0.tar.xz \
poppler-0.26.0/install-sh</div><div>-rwxr-xr-x 1001/1001 &nbsp; &nbsp; 13997 \
2013-11-18 20:05 poppler-0.26.0/install-sh</div></div><div><br></div><div>Regards,</div><div>William<br><br><div><hr \
id="stopSpelling">From: <a \
href="mailto:peter.bocan@azet.sk">peter.bocan@azet.sk</a><br>Date: Sat, 12 Jul 2014 \
01:19:41 +0200<br>To: <a \
href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>Subject: \
Re: [poppler] Documentation: Compiling Poppler<br><br>Hello and thanks for your \
response, I am using OS X (so I am using standard bash shell interpreter shipped with \
OS X). I &nbsp;have "install" program already and all other packages from Linux are \
already installed (using Homebrew). I have downloaded probably all requirements that \
are mentioned in those links that I have put into the original message. So what shall \
I do?&nbsp;<div><br></div><div>Thanks for your time.</div><div>Peter \
Bocan.<div><br><div><div>Dňa 11.7.2014 o 23:02, William Bader &lt;<a \
href="mailto:williambader@hotmail.com">williambader@hotmail.com</a>&gt; \
napísal:</div><br class="ecxApple-interchange-newline"><blockquote><div \
class="ecxhmmessage" style="font-size: 12pt; font-family: Calibri; font-style: \
normal; font-variant: normal; font-weight: normal; letter-spacing: normal; \
line-height: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px;"><div dir="ltr">&gt;Well, your solution to \
run ./configure does not work, it says: "configure: error: cannot find install-sh, \
install.sh, .".<div><br></div><div>I am not sure, but it might help to have the gnu \
"install" program. &nbsp;I think that it is part of coreutils. &nbsp;<a \
href="http://ftp.gnu.org/gnu/coreutils/" \
target="_blank">http://ftp.gnu.org/gnu/coreutils/</a></div><div><br></div><div>It is \
possible that the configure script looks for install-sh only when it does not find \
the install program.</div><div><br></div><div>Also, what shell are you using? \
&nbsp;configure scripts usually work with any posix-like shell (Bourne shell, ksh, \
bash, etc.) but bash is probably more likely to work.&nbsp;<a \
href="http://ftp.gnu.org/gnu/bash/" \
target="_blank">http://ftp.gnu.org/gnu/bash/</a><br><div><br></div><div>&gt;Running \
cmake which seems to be more verbose, says that I am missing Freetype \
library.</div><div><br></div><div>You can download freetype from&nbsp;<a \
href="http://www.freetype.org/" \
target="_blank">http://www.freetype.org/</a></div><div><br></div><div>You will \
probably need some other packages \
also.</div><div><br></div><div>Regards,</div><div>William<br><br><div><hr \
id="ecxstopSpelling">From:<span class="Apple-converted-space">&nbsp;</span><a \
href="mailto:peter.bocan@azet.sk">peter.bocan@azet.sk</a><br>Date: Fri, 11 Jul 2014 \
19:16:43 +0200<br>To:<span class="Apple-converted-space">&nbsp;</span><a \
href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>Subject: \
Re: [poppler] Documentation: Compiling Poppler<br><br>Hello guys, I'm back. First of \
all, I want to make things clear: project will be "platform-independent" in a Qt way. \
I am developing under OS X 10.9.4 Mavericks (and using Homebrew). Well, your solution \
to run ./configure does not work, it says: "configure: error: cannot find install-sh, \
install.sh, .". Running cmake which seems to be more verbose, says that I am missing \
Freetype library.&nbsp;<div><br></div><div>Error message:</div><div><div>CMake Error \
at /usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 \
(message):</div><div>&nbsp; Could NOT find Freetype (missing: FREETYPE_LIBRARY \
FREETYPE_INCLUDE_DIRS)</div><div>Call Stack (most recent call \
first):</div><div>&nbsp; \
/usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 \
(_FPHSA_FAILURE_MESSAGE)</div><div>&nbsp; \
/usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindFreetype.cmake:119 \
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)</div><div>&nbsp; CMakeLists.txt:94 \
(find_package)</div><div><br></div><div>Thanks folks.&nbsp;</div><div>Peter \
Bočan.</div><div><br></div><div><div>Dňa 9.7.2014 o 2:21, William Bader &lt;<a \
href="mailto:williambader@hotmail.com">williambader@hotmail.com</a>&gt; \
napísal:</div><br class="ecxApple-interchange-newline"><blockquote><div \
class="ecxhmmessage" style="font-size: 12pt; font-family: Calibri; font-style: \
normal; font-variant: normal; font-weight: normal; letter-spacing: normal; \
line-height: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px;"><div dir="ltr">I have built poppler using \
./configure and then make on Linux.<div><div><br></div><div>If you are trying to \
build poppler on Windows, it will take some work to set up a good build environment. \
&nbsp;configure is a shell script, so you will need a package like cygwin that \
includes the bash shell. &nbsp;You will also need the usual development packages like \
make, binutils (as and ld), and g++.<div><br></div><div>When you run ./configure, it \
will usually let you know if a third-part library is too old or is missing, and then \
you need to find a compiled version of that library or build it yourself from \
source.</div><div><br></div><div>If you have problems with dynamic linking using \
libtool, you can run configure with&nbsp;--enable-static --disable-shared to make \
static libraries and executables.</div><div><br></div><div>If you have errors from \
configure or from make that you can't understand, if you post the error to the list, \
someone might offer a \
suggestion.</div><div><br></div><div>Regards,</div><div>William</div><div><br><div><hr \
id="ecxstopSpelling">From:<span class="ecxApple-converted-space">&nbsp;</span><a \
href="mailto:peter.bocan@azet.sk">peter.bocan@azet.sk</a><br>Date: Wed, 9 Jul 2014 \
00:31:27 +0200<br>To:<span class="ecxApple-converted-space">&nbsp;</span><a \
href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>Subject: \
[poppler] Documentation: Compiling Poppler<br><br>Hello guys, may I ask you for some \
documentation reference how to compile Poppler (with Qt 5 bindings)? Because Google \
has not sufficient results (or at least I am not sure, how valid they \
are).&nbsp;<div><br></div><div>Some results from Google:</div><div><a \
href="http://www.seppemagiels.com/blog/building-poppler-windows-using-mingw" \
target="_blank">http://www.seppemagiels.com/blog/building-poppler-windows-using-mingw</a></div><div>and</div><div><a \
href="http://laconsigna.wordpress.com/2011/07/14/compiling-poppler-on-windows/" \
target="_blank">http://laconsigna.wordpress.com/2011/07/14/compiling-poppler-on-windows/&nbsp;</a><br><div><br></div><div>Thanks \
in advance.&nbsp;</div><div>Peter \
Bocan.</div></div><br>_______________________________________________ poppler mailing \
list<a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><span \
class="ecxApple-converted-space">&nbsp;</span><a \
href="http://lists.freedesktop.org/mailman/listinfo/poppler" \
target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a></div></div>< \
/div></div></div></div></blockquote></div><br></div><br>_______________________________________________ \
poppler mailing list<a \
href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><span \
class="Apple-converted-space">&nbsp;</span><a \
href="http://lists.freedesktop.org/mailman/listinfo/poppler" \
target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a></div></div>< \
/div></div></div></blockquote></div><br></div></div><br>_______________________________________________ \
poppler mailing list <a \
href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a> <a \
href="http://lists.freedesktop.org/mailman/listinfo/poppler">http://lists.freedesktop. \
org/mailman/listinfo/poppler</a></div></div></div></div></blockquote></div><br></body></html>




_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/poppler


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic