Compiling poppler-qt4 on Mac OS X 10.6/Qt 4.6

View: New views
5 Messages — Rating Filter:   Alert me  

Compiling poppler-qt4 on Mac OS X 10.6/Qt 4.6

by Bastian Bense-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

--
Best regards,
Bastian Bense



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

Re: Compiling poppler-qt4 on Mac OS X 10.6/Qt 4.6

by Albert Astals Cid-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
poppler@...
http://lists.freedesktop.org/mailman/listinfo/poppler

Re: Compiling poppler-qt4 on Mac OS X 10.6/Qt 4.6

by Bastian Bense-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That won't solve my problem, as I have to run poppler on 32-bit CPUs.



Am 08.11.2009 um 20:53 schrieb Albert Astals Cid:

> Try with a 64 bit build of Qt?

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

Re: Compiling poppler-qt4 on Mac OS X 10.6/Qt 4.6

by Shawn Rutledge :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Nov 8, 2009 at 8:55 AM, Bastian Bense <bastibense@...> wrote:
> 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:

I generated my makefile for the wrapper with qmake rather than cmake,
mostly for the sake of familiarity.  I do seem to have an "i386" dylib
as a result.
_______________________________________________
poppler mailing list
poppler@...
http://lists.freedesktop.org/mailman/listinfo/poppler

Re: Compiling poppler-qt4 on Mac OS X 10.6/Qt 4.6

by Bastian Bense-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Seems like I resolved this issue by upgrading to the latest 2.8 Cmake (beta).
Unfortunately the CMAKE_OSX_ARCHITECTURES variable is nowhere documented; I just find references to it in mailing lists, which doesn't make it feel good to use.

2009/11/9 Shawn Rutledge <shawn.t.rutledge@...>
On Sun, Nov 8, 2009 at 8:55 AM, Bastian Bense <bastibense@...> wrote:
> 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:

I generated my makefile for the wrapper with qmake rather than cmake,
mostly for the sake of familiarity.  I do seem to have an "i386" dylib
as a result.



--
Best regards,
Bastian Bense



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