<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello guys, once again, which env. variables, paths, etc. I have to set up, to compile Poppler with Qt5 wrapper? It would be really really helpful to have some documentation online for these purposes. <div><br><div>Thanks, Peter Bocan.<br><div><br><div><div>Dňa 14.7.2014 o 19:51, Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>> napísal:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; 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;">El Diumenge, 13 de juliol de 2014, a les 13:19:03, Peter Bočan va escriure:<br><blockquote type="cite">Hello guys, I am having an issue which seems pretty cryptic for me:<br><br>configure.ac:99: error: possibly undefined macro: AM_ICONV<br> If this token and others are legitimate, please use m4_pattern_allow.<br> See the Autoconf documentation.<br>configure.ac:100: error: possibly undefined macro: AM_GNU_GETTEXT<br>configure.ac:151: error: possibly undefined macro: AM_LANGINFO_CODESET<br>configure.ac:154: error: possibly undefined macro: AC_EILSEQ<br>make: *** [configure] Error 1<br><br>I have looked for iconv. OS X does not provide sources to binaries but<br>homebrew has a record for libiconv.<br></blockquote><br>If you don't want to use iconv, disable the poppler cpp frotnend.<br><br>Cheers,<br> Albert<br><br><blockquote type="cite">Dňa 12.7.2014 o 17:13, William Bader <<a href="mailto:williambader@hotmail.com">williambader@hotmail.com</a>> napísal:<br><blockquote type="cite"><blockquote type="cite">Okay, I have found that Qt stores *.pc files in<br>/usr/local/Qt-5.3.1/lib/pkgconfig/ on OS X. well, I have to download<br>iconv library sources?><span class="Apple-converted-space"> </span><br></blockquote>Yes, I think that you need to download the source and build both the<br>executable and the library.<br><br>It is strange that homebrew did not provide it. Can you try "find / -name<br>iconv" to see if you have iconv in a non-standard directory and need only<br>to include that directory on your PATH?<br><br><a href="https://www.gnu.org/software/libiconv/">https://www.gnu.org/software/libiconv/</a><br><br>Regards,<br>William<br><br>From: peter.bocan@azet.sk<br>Date: Sat, 12 Jul 2014 16:41:09 +0200<br>To: poppler@lists.freedesktop.org<br>Subject: Re: [poppler] Documentation: Compiling Poppler<br><br>Okay, I have found that Qt stores *.pc files in<br>/usr/local/Qt-5.3.1/lib/pkgconfig/ on OS X. well, I have to download<br>iconv library sources?<br><br>Regards,<br>Peter.<br><br>Dňa 12.7.2014 o 15:36, William Bader <williambader@hotmail.com> napísal:<br><blockquote type="cite">checking for POPPLER_QT5... no<br></blockquote><br>If you want to build poppler with Qt5 bindings, it is bad if configure<br>does not find QT5.<br><br>You probably need to find a directory like<br>/usr/local/lib/qt5/lib/pkgconfig with the Qt5 pc files. There are about<br>60 Qt5*.pc files. Try "find / -name Qt5.pc". Then you need to add the<br>directory to PKG_CONFIG_PATH.<br><br>The configure script first tries locating libraries with pkg-config. You<br>can also set the environment variables POPPLER_QT5_CXXFLAGS,<br>POPPLER_QT5_TEST_LIBS, POPPLER_QT5_TEST_CFLAGS, POPPLER_QT5_LIBS and<br>POPPLER_QT5_CFLAGS.><span class="Apple-converted-space"> </span><br><blockquote type="cite">./configure: line 23550: syntax error near unexpected token `iconv'<br></blockquote><br>I think that poppler needs the "iconv" program. On Fedora Linux, it is<br>packaged with glibc-common.<br><br>Regards,<br>William<br><br>From: peter.bocan@azet.sk<br>Date: Sat, 12 Jul 2014 15:11:28 +0200<br>To: poppler@lists.freedesktop.org<br>Subject: Re: [poppler] Documentation: Compiling Poppler<br><br>Well, guys, I have moved towards the goal with a little step. I was<br>missing fontconfig library, now I am getting the error message:<br><br>checking for POPPLER_QT4... no<br>checking for POPPLER_QT5... no<br>./configure: line 23550: syntax error near unexpected token `iconv'<br>./configure: line 23550: ` AC_LIB_LINKFLAGS_BODY(iconv)'<br><br>Am I missing something? Does it require an "iconv" library? Thanks, Peter<br>Bocan.><span class="Apple-converted-space"> </span><br>Dňa 12.7.2014 o 3:06, William Bader <williambader@hotmail.com> napísal:<br><blockquote type="cite">I have downloaded probably all requirements that are mentioned in those<br>links that I have put into the original message. So what shall I do?><span class="Apple-converted-space"> </span><br></blockquote>You probably need one of the developers to help.<br><br>I usually build poppler on Linux with ./configure. If you run<br>"./configure --help | less", you can see the options and environment<br>variables that you can set. The variables FREETYPE_CFLAGS and<br>FREETYPE_LIBS tell configure where to find the headers and libraries for<br>freetype.<br><br>It is possible that some of the build tools are looking in only the<br>standard system directories and need to be told where to find the<br>packages that you have installed.<br><br>https://github.com/Homebrew/homebrew/wiki/FAQ<br><br>If you build poppler with ./configure, it is easier to start with an<br>official release (usually posted as a compressed tar) than cloning<br>poppler from git. If you start with a clone, you have to run<br>./autogen.sh to build the build files, which gives more chances for<br>something to go wrong.<br><br>cmake might have the same issues with not knowing where to look for<br>packages.<br><br>configure and possibly cmake find files using pkg-config which looks for<br>*.pc files. You can run "pkg-config --variable pc_path pkg-config" to<br>see the default search path for *.pc files. If it does not list the<br>directory with the pc files from the homebrew packages, can add them with<br>a command like "export<br>PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib64/qt5/lib/pkgconfig"<br>(which I used on Fedora Linux once to build Scribus).><span class="Apple-converted-space"> </span><br><blockquote type="cite">./configure does not work, it says: "configure: error: cannot find<br>install-sh, install.sh, ."><span class="Apple-converted-space"> </span><br></blockquote>Are you running configure from the top level poppler directory? Is there<br>also an install-sh file in that directory?<br><br>The poppler tar release contains install-sh. If you are missing it,<br>either something failed downloading or unpacking the source or else you<br>might have accidentally removed some files.<br><br>$ tar tJvf poppler-0.26.0.tar.xz poppler-0.26.0/install-sh<br>-rwxr-xr-x 1001/1001 13997 2013-11-18 20:05 poppler-0.26.0/install-sh<br><br>Regards,<br>William<br><br>From: peter.bocan@azet.sk<br>Date: Sat, 12 Jul 2014 01:19:41 +0200<br>To: poppler@lists.freedesktop.org<br>Subject: Re: [poppler] Documentation: Compiling Poppler<br><br>Hello and thanks for your response, I am using OS X (so I am using<br>standard bash shell interpreter shipped with OS X). I have "install"<br>program already and all other packages from Linux are already installed<br>(using Homebrew). I have downloaded probably all requirements that are<br>mentioned in those links that I have put into the original message. So<br>what shall I do?<br><br>Thanks for your time.<br>Peter Bocan.<br><br>Dňa 11.7.2014 o 23:02, William Bader <williambader@hotmail.com> napísal:<br><blockquote type="cite">Well, your solution to run ./configure does not work, it says:<br>"configure: error: cannot find install-sh, install.sh, .".><span class="Apple-converted-space"> </span><br></blockquote>I am not sure, but it might help to have the gnu "install" program. I<br>think that it is part of coreutils. http://ftp.gnu.org/gnu/coreutils/<br><br>It is possible that the configure script looks for install-sh only when it<br>does not find the install program.<br><br>Also, what shell are you using? configure scripts usually work with any<br>posix-like shell (Bourne shell, ksh, bash, etc.) but bash is probably<br>more likely to work. http://ftp.gnu.org/gnu/bash/><span class="Apple-converted-space"> </span><br><blockquote type="cite">Running cmake which seems to be more verbose, says that I am missing<br>Freetype library.><span class="Apple-converted-space"> </span><br></blockquote>You can download freetype from http://www.freetype.org/<br><br>You will probably need some other packages also.<br><br>Regards,<br>William<br><br>From: peter.bocan@azet.sk<br>Date: Fri, 11 Jul 2014 19:16:43 +0200<br>To: poppler@lists.freedesktop.org<br>Subject: Re: [poppler] Documentation: Compiling Poppler<br><br>Hello guys, I'm back. First of all, I want to make things clear: project<br>will be "platform-independent" in a Qt way. I am developing under OS X<br>10.9.4 Mavericks (and using Homebrew). Well, your solution to run<br>./configure does not work, it says: "configure: error: cannot find<br>install-sh, install.sh, .". Running cmake which seems to be more verbose,<br>says that I am missing Freetype library.<br><br>Error message:<br><br>CMake Error at<span class="Apple-converted-space"> </span><br></blockquote></blockquote>/usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108<span class="Apple-converted-space"> </span><br>(message):<br><blockquote type="cite"><blockquote type="cite"> Could NOT find Freetype (missing: FREETYPE_LIBRARY<br> FREETYPE_INCLUDE_DIRS)<br><br>Call Stack (most recent call first):<br> /usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindPackageHandleSt<br> andardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)<br> /usr/local/Cellar/cmake/2.8.12.2/share/cmake/Modules/FindFreetype.cmake<br> :119 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:94<br> (find_package)<br><br>Thanks folks.<br>Peter Bočan.<br><br>Dňa 9.7.2014 o 2:21, William Bader <<a href="mailto:williambader@hotmail.com">williambader@hotmail.com</a>> napísal:<br><br>I have built poppler using ./configure and then make on Linux.<br><br>If you are trying to build poppler on Windows, it will take some work to<br>set up a good build environment. configure is a shell script, so you<br>will need a package like cygwin that includes the bash shell. You will<br>also need the usual development packages like make, binutils (as and ld),<br>and g++.<br><br>When you run ./configure, it will usually let you know if a third-part<br>library is too old or is missing, and then you need to find a compiled<br>version of that library or build it yourself from source.<br><br>If you have problems with dynamic linking using libtool, you can run<br>configure with --enable-static --disable-shared to make static libraries<br>and executables.<br><br>If you have errors from configure or from make that you can't understand,<br>if you post the error to the list, someone might offer a suggestion.<br><br>Regards,<br>William<br><br>From: <a href="mailto:peter.bocan@azet.sk">peter.bocan@azet.sk</a><br>Date: Wed, 9 Jul 2014 00:31:27 +0200<br>To: <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<br>Poppler (with Qt 5 bindings)? Because Google has not sufficient results<br>(or at least I am not sure, how valid they are).<br><br>Some results from Google:<br><a href="http://www.seppemagiels.com/blog/building-poppler-windows-using-mingw">http://www.seppemagiels.com/blog/building-poppler-windows-using-mingw</a><br>and<br>http://laconsigna.wordpress.com/2011/07/14/compiling-poppler-on-windows/<br><br>Thanks in advance.<br>Peter Bocan.<br><br>_______________________________________________ poppler mailing<br>listpoppler@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/poppler<br><br><br>_______________________________________________ poppler mailing<br>listpoppler@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/poppler<br><br><br>_______________________________________________ poppler mailing<br>listpoppler@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/poppler<br><br><br>_______________________________________________ poppler mailing list<br>poppler@lists.freedesktop.orghttp://lists.freedesktop.org/mailman/listinf<br>o/poppler<br><br><br>_______________________________________________ poppler mailing list<br>poppler@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/poppler<br></blockquote></blockquote><br>_______________________________________________<br>poppler mailing list<br><a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/poppler">http://lists.freedesktop.org/mailman/listinfo/poppler</a></div></blockquote></div><br></div></div></div></body></html>