PDA

View Full Version : 4.1.4 built from source, qmake fails with Hello World



Mookie
26th June 2006, 01:53
I installed 4.1.4, compiling from source, in order to get MySQL support built in. 4.1.3 had a bug that had a compile error in the MySQL code. Now qmake is erroring with:

Error processing meta file: /usr/local/qt-4.1.4/lib/libQtGui
Error processing meta file: /usr/local/qt-4.1.4/lib/libQtCore

To simplify things I tried a Hello World program...

http://www.qtnode.net/wiki/Hello_World
...with the same results.

wysota
26th June 2006, 23:06
Do you have those files mentioned by qmake? Do they look "ok"?

Mookie
27th June 2006, 03:43
$ ls -ld /usr/local/qt-4.1.4/lib/libQt@(Gui|Core)*
-rw------- 1 root staff 718 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore.la
-rw------- 1 root staff 780 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore.prl
lrwxr-xr-x 1 root staff 18 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore.so -> libQtCore.so.4.1.4
lrwxr-xr-x 1 root staff 18 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore.so.4 -> libQtCore.so.4.1.4
lrwxr-xr-x 1 root staff 18 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore.so.4.1 -> libQtCore.so.4.1.4
-rwxr-xr-x 1 root staff 1877316 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore.so.4.1.4
-rw------- 1 root staff 760 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore_debug.la
-rw------- 1 root staff 778 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore_debug.prl
lrwxr-xr-x 1 root staff 24 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore_debug.so -> libQtCore_debug.so.4.1.4
lrwxr-xr-x 1 root staff 24 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore_debug.so.4 -> libQtCore_debug.so.4.1.4
lrwxr-xr-x 1 root staff 24 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore_debug.so.4.1 -> libQtCore_debug.so.4.1.4
-rwxr-xr-x 1 root staff 15103370 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtCore_debug.so.4.1.4
-rw------- 1 root staff 879 Jun 26 16:14 /usr/local/qt-4.1.4/lib/libQtGui.la
-rw------- 1 root staff 976 Jun 26 16:14 /usr/local/qt-4.1.4/lib/libQtGui.prl
lrwxr-xr-x 1 root staff 17 Jun 26 16:14 /usr/local/qt-4.1.4/lib/libQtGui.so -> libQtGui.so.4.1.4
lrwxr-xr-x 1 root staff 17 Jun 26 16:14 /usr/local/qt-4.1.4/lib/libQtGui.so.4 -> libQtGui.so.4.1.4
lrwxr-xr-x 1 root staff 17 Jun 26 16:14 /usr/local/qt-4.1.4/lib/libQtGui.so.4.1 -> libQtGui.so.4.1.4
-rwxr-xr-x 1 root staff 5497500 Jun 26 16:14 /usr/local/qt-4.1.4/lib/libQtGui.so.4.1.4
-rw------- 1 root staff 927 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtGui_debug.la
-rw------- 1 root staff 980 Jun 26 16:13 /usr/local/qt-4.1.4/lib/libQtGui_debug.prl
lrwxr-xr-x 1 root staff 23 Jun 26 16:14 /usr/local/qt-4.1.4/lib/libQtGui_debug.so -> libQtGui_debug.so.4.1.4
lrwxr-xr-x 1 root staff 23 Jun 26 16:14 /usr/local/qt-4.1.4/lib/libQtGui_debug.so.4 -> libQtGui_debug.so.4.1.4
lrwxr-xr-x 1 root staff 23 Jun 26 16:14 /usr/local/qt-4.1.4/lib/libQtGui_debug.so.4.1 -> libQtGui_debug.so.4.1.4
-rwxr-xr-x 1 root staff 68704869 Jun 26 16:14 /usr/local/qt-4.1.4/lib/libQtGui_debug.so.4.1.4

No such file exists, but there are .so and .la files.
My 4.1.3 build doesn't have them without extensions either.

Mookie
27th June 2006, 04:15
This error msg appears in... qmake/generators/makefile.cpp

It appears the code is calculating a QString called real_meta_file and, correctly, fails to find it.
A diff between this file and the same file from 4.1.3 shows a change in the comments only. Something else has changed.

wysota
27th June 2006, 08:52
Did Qt compile fine? Have the examples been built? What exactly did you do before you got that error?

Mookie
27th June 2006, 16:36
QT compiled fine, I have a text file with the entire configure, make, and make install output logged. The examples were built with no problem.

I noticed that a lot of the libraries have no read permissions, so I manually changed them, and qmake works! But... wait... I did all this with root and umask of 0022... that should not affect read permissions.

Digging further, last night I did an entire build with umask 0000. Same problem, many libs missing read permissions.

Something is wrong with make install permission assignments in 4.1.4 that was not a problem in 4.1.3. What is the bug reporting process?

wysota
28th June 2006, 00:13
What is the bug reporting process?

Visit http://www.trolltech.com/developer/task-tracker