Hi Maik,
I have Linux, so I don't know about what Mac libraries you will need.
When I search for "enable_poppler_qt5" in the configure script, it seems to be 
running
pkg-config --exists --print-errors "Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Xml >= 
5.0.0 Qt5Widgets >= 5.0.0"
You might need to install additional Qt5 libraries.
Regards,William

Subject: Re: [poppler] Build and Install poppler-qt5-mac ; Poppler Qt5 
interface library, libpoppler-qt5
From: [email protected]
Date: Fri, 24 Jul 2015 11:54:00 +0200
CC: [email protected]
To: [email protected]

Thank you for you help.

Now, the rerun of ./configure works:

Building poppler with support for:  font configuration: fontconfig  splash 
output:      yes  cairo output:       yes  qt4 wrapper:        no  qt5 wrapper: 
       no  glib wrapper:       yes    introspection:    yes  cpp wrapper:       
 yes  use gtk-doc:        no  use libjpeg:        no  use libpng:         yes  
use libtiff:        no  use zlib:           no  use libcurl:        no  use 
libopenjpeg:    yes      with openjpeg1  use cms:            yes      with 
lcms2  command line utils: yes  test data dir:      
/Users/moozoom/Desktop/poppler-0.34.0/./../test 

But I need the qt5 wrapper support.
qt5 wrapper support.
In the directory „/opt/local/lib/„ I see following libraries:
- libpoppler-cpp.0.dylib- libpoppler-glib.8.dylib- libpoppler.53.dylib- 
libpoppler-cpp.a- libpoppler-glib.a- libpoppler.a
I only needs a dynamic library like „libpoppler-qt5.5.dylib“

In the directory „/opt/local/include/poppler/qt5/„ I see following *.h-Files:
- poppler-qt5.h - …

In Qt Creator *.pro I include poppler with following lines:

INCLUDEPATH += /opt/local/include/poppler/qt5
LIBS += -L/opt/local/lib -lpoppler

I Qt Creator I receive following error message:
11:46:58: Führe Schritte für Projekt DTPDFIndexingExample aus...11:46:58: 
Unveränderte Konfiguration, qmake-Schritt wird übersprungen.11:46:58: Starte 
"/usr/bin/make" 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
 -headerpad_max_install_names 
-Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
 -mmacosx-version-min=10.7 -Wl,-rpath,/Users/moozoom/Qt/5.5/clang_64/lib -o 
DTPDFIndexingExample main.o   -F/Users/moozoom/Qt/5.5/clang_64/lib 
-L/opt/local/lib -lpoppler -framework QtCore -framework DiskArbitration 
-framework IOKit Undefined symbols for architecture x86_64:  
"Poppler::Document::load(QString const&, QByteArray const&, QByteArray 
const&)", referenced from:      _main in main.o  
"Poppler::Document::~Document()", referenced from:      _main in main.o  
"QDomDocument::toString(int) const", referenced from:      _main in main.o  
"Poppler::Document::toc() const", referenced from:      _main in main.o  
"Poppler::Document::isLocked() const", referenced from:      _main in main.old: 
symbol(s) not found for architecture x86_64clang: error: linker command failed 
with exit code 1 (use -v to see invocation)make: *** [DTPDFIndexingExample] 
Error 111:46:58: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 
beendet.Fehler beim Erstellen/Deployment des Projekts DTPDFIndexingExample 
(Kit: Desktop Qt 5.5.0 clang 64bit)Bei der Ausführung von Schritt 
"Make"11:46:58: Verstrichene Zeit: 00:00.

How I must build poppler to create a poppler-qt5.5.dylib dynamic library?
Please help me!

Thank you in advanced!

Best regards,

Maik


Am 23.07.2015 um 19:07 schrieb William Bader <[email protected]>:You can 
follow the suggestions of the configure script.
Somewhere you should have a directory like /usr/lib/pkgconfig/ with Qt5.pc and 
a lot of other files that match the pattern Qt5*.pc
Add that directory to the pkg-config search list with
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
or wherever the directory is, and then rerun ./configure



From: [email protected]
Date: Thu, 23 Jul 2015 17:29:08 +0200
To: [email protected]
Subject: [poppler] Build and Install poppler-qt5-mac ; Poppler Qt5 interface 
library, libpoppler-qt5

Hello,
I would like to built and install poppler for Qt 5 on my mac.
On following website I can see the following dev-status:
http://people.freedesktop.org/~aacid/docs/qt5/

But in some projects poppler for qt5 is already in use.

How can I build and install poppler Qt 5 on my mac?

I downloaded the package „poppler-0.34.0“ und open my Terminal app.
I type following:
MaikZiemertsMBP:poppler-0.34.0 moozoom$ ./configure --enable-poppler-qt5
I received following message:
…
checking for GTKDOC_DEPS... yeschecking for POPPLER_QT4... nochecking for 
POPPLER_QT5... noconfigure: error: Package requirements (Qt5Core >= 5.0.0 
Qt5Gui >= 5.0.0 Qt5Xml >= 5.0.0 Qt5Widgets >= 5.0.0) were not met:
No package 'Qt5Core' foundNo package 'Qt5Gui' foundNo package 'Qt5Xml' foundNo 
package 'Qt5Widgets' found
Consider adjusting the PKG_CONFIG_PATH environment variable if youinstalled 
software in a non-standard prefix.
Alternatively, you may set the environment variables POPPLER_QT5_CFLAGSand 
POPPLER_QT5_LIBS to avoid the need to call pkg-config.See the pkg-config man 
page for more details.
How can I solve this problem?

I have already installed the Qt-Creator with Qt 5.5.

A alternative way was MacPorts, but MacPorts provided only „poppler-qt4-mac“ - 
NOT „poppler-qt-mac“.

Please, I need a Step-by-Step paper for building and installing poppler for Qt 
5 - for building the Poppler Qt5 interface library, libpoppler-qt5.


Thanks in advanced!

Best regards,

Maik
 


_______________________________________________ poppler mailing list 
[email protected] 
http://lists.freedesktop.org/mailman/listinfo/poppler
                                          
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to