Qt5 compiling problem on OSX
Following this tutorial:
I can't compile Qt5 on my OSX (Mountain Lion).
I run into the this problem:
@In file included from xml/parser/XMLDocumentParser.h:33:
xml/XMLErrors.h:36:10: fatal error: 'libxml/parser.h' file not found
1 error generated.
make: *** [obj/debug/dom/Document.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [debug-all] Error 2
make: *** [sub-Target-pri-make_first-ordered] Error 2
make: *** [sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2
make: *** [module-qtwebkit-make_first] Error 2
bash-3.2$ git rev-parse HEAD
Can anybody suggest me something?
Thanks in advance
OK, I finally had some time to go on with that problem and was able to avoid it by
explicitly using the libxml installed by macport:
./configure -developer-build -opensource -I/opt/local/include/libxml2 -release
However, it simple didn't solve the complete problem, because I'm running into linker problems.....
I would like to try something else; the configure command with the given arguments above uses clang. How can I switch to gcc? It was not clear to me reading the help page, also I didn't found any option to switch of webkit.
Thanks for you help.
Just remove contents of QtWebkit directory and it will stop compiling :)
You can choose the mkspecs with -platform or -spec, I don't remember.
Use Qt instead of QuickTime (QT), please.
I finally had some time to try to complie Qt 5 again. I used a newer version (4cad9e466784ec54e3cf6f216d3df20ba7a595b0) from the git repository. Fortunatly, with this version
no further adjustments had to be done on my Mountain Lion. I compiled it with the following three commands:
./configure -prefix $PWD/qtbase -opensource -nomake tests
make -j 2
For me the issue is now closed. Thanks to all for your help.