Hello all,<br><br>I'm trying to compile poppler on Mac OS X 10.6 using Qt 4.6.<br><br>It seems that poppler itself compiles just fine, but the Qt4-wrapper fails with the following error:<br><br><pre class="textmate-source">
<pre class="sunburst"><span class="meta meta_paragraph meta_paragraph_text">bbense-mbp:poppler bbense$ make<br>[ 52%] Built target poppler<br>[ 53%] Built target pdf-fullrewrite<br>[ 54%] Built target perf-test<br>[ 55%] Building CXX object qt4/src/CMakeFiles/poppler-qt4.dir/poppler-annotation.cc.o<br>
In file included from /Library/Frameworks/QtCore.framework/Headers/qchar.h:45,<br></span> <span class="meta meta_paragraph meta_paragraph_text">from /Library/Frameworks/QtCore.framework/Headers/qstring.h:45,<br>
from /Library/Frameworks/QtXml.framework/Headers/qdom.h:45,<br> from /Library/Frameworks/QtXml.framework/Headers/QDomElement:1,<br> from /Devel/poppler/qt4/src/poppler-annotation.cc:23:<br>
</span><span class="meta meta_paragraph meta_paragraph_text">/Library/Frameworks/QtCore.framework/Headers/qglobal.h:288:2: error: #error "You are building a 64-bit application, but using a 32-bit version of Qt. Check your build configuration."<br>
/Devel/poppler/qt4/src/poppler-annotation.cc: In member function ‘virtual void Poppler::LinkAnnotation::store(QDomNode&, QDomDocument&) const’:<br>/Devel/poppler/qt4/src/poppler-annotation.cc:1539: warning: enumeration value ‘JavaScript’ not handled in switch<br>
make[2]: *** [qt4/src/CMakeFiles/poppler-qt4.dir/poppler-annotation.cc.o] Error 1<br>make[1]: *** [qt4/src/CMakeFiles/poppler-qt4.dir/all] Error 2<br>make: *** [all] Error 2<br></span></pre></pre><br clear="all">I guess the Qt4 library is compiled as 32-bit, while the default target on 10.6 is i386_64.<br>
Cmake's CMAKE_OSX_ARCHITECTURES does not seem to have an effect.<br><br>Any ideas?<br><br>-- <br>Best regards,<br>Bastian Bense<br><br><br>