A Diumenge, 8 de novembre de 2009, Bastian Bense va escriure: > Hello all, > > I'm trying to compile poppler on Mac OS X 10.6 using Qt 4.6. > > It seems that poppler itself compiles just fine, but the Qt4-wrapper fails > with the following error: > > bbense-mbp:poppler bbense$ make > [ 52%] Built target poppler > [ 53%] Built target pdf-fullrewrite > [ 54%] Built target perf-test > [ 55%] Building CXX object > qt4/src/CMakeFiles/poppler-qt4.dir/poppler-annotation.cc.o > In file included from > /Library/Frameworks/QtCore.framework/Headers/qchar.h:45, from > /Library/Frameworks/QtCore.framework/Headers/qstring.h:45, from > /Library/Frameworks/QtXml.framework/Headers/qdom.h:45, from > /Library/Frameworks/QtXml.framework/Headers/QDomElement:1, from > /Devel/poppler/qt4/src/poppler-annotation.cc:23: > /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." > /Devel/poppler/qt4/src/poppler-annotation.cc: In member function > ‘virtual void Poppler::LinkAnnotation::store(QDomNode&, QDomDocument&) > const’: > /Devel/poppler/qt4/src/poppler-annotation.cc:1539: warning: > enumeration value ‘JavaScript’ not handled in switch > make[2]: *** [qt4/src/CMakeFiles/poppler-qt4.dir/poppler-annotation.cc.o] > Error 1 > make[1]: *** [qt4/src/CMakeFiles/poppler-qt4.dir/all] Error 2 > make: *** [all] Error 2 > > > I guess the Qt4 library is compiled as 32-bit, while the default target on > 10.6 is i386_64. > Cmake's CMAKE_OSX_ARCHITECTURES does not seem to have an effect. > > Any ideas? > Try with a 64 bit build of Qt?
Albert _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
