PDA

View Full Version : Qt 4.7.0 compilation failed



Nivlag
28th June 2010, 10:47
Hello,
I developped an application with Qt 4.6.2 libraries. But I wanted to update Qt, so I installed Qt 4.7.0. But now, when I try to compile following errors are generated :

"/opt/qtsdk-2010.04/lib/libNetwork.so.4: undefined reference to 'qDecodeDataUrl(QUrl const&)'
...
/opt/qtsdk-2010.04/lib/libphonon.so.4: undefined reference to 'QMetaType::registerTypedef(char const*, int)'
..."

So I think that : Qt installer didn't copy libraries on the good path. Usually libraries are copyed on the /usr/lib path

Do you have an idea ?! :confused:

(excuse me for my poor English :p )
(Ubuntu user)

tbscope
29th June 2010, 05:42
Is this the beta of 4.7? Or a git checkout?
If this is a git checkout, then it is possible that there are times the code doesn't compile or link.

Nivlag
29th June 2010, 09:21
good question. I don't know, because of this "bug" I uninstalled Qt 4.7.0.

But there is something odd :
As I said, I can't compile with Qt 4.7.0 (I work on Ubuntu32). But my friend downloaded the same version (Qt 4.7.0), the same day on this Ubuntu64 and everything works

Had I to uninstall the previous version before installing Qt 4.7.0 ?! :/
I don't have time to test, but I assumed that the old version would be crushed by the update :confused:

Thk for your reply, have a nice day

BB1337
16th November 2010, 03:07
I had the same error but I find out how to fix it.

As QtWebkit is only under GPL you have to compile into openSource mode.