PDA

View Full Version : QT 4.2.2 Commercial on Suse 10



KaptainKarl
28th February 2007, 18:23
I am attempting to install QT 4.2.2 on a Suse Linux 10 machine. There is already a working installation of QT 4.1.1 on this system. I get an error when I run configure. Here is how I'm calling configure:

./configure -I/usr/include/mysql -L/usr/lib/mysql -qt-sql-mysql
-I/usr/local/pgsql/include -L/usr/local/pgsql/lib -qt-sql-pgsql -qt-gif -qt-libjpeg -qt-libpng -qt-zlib

After a few entries, I get the following error:
In file included from /tmp/qt-x11-commercial-src-4.2.2/src/corelib/global/qlibraryinfo.cpp:37:
/tmp/qt-x11-commercial-src-4.2.2/src/corelib/global/qconfig.cpp:2: error: missing terminating " character

I then get a bunch of lines that look like this:
/tmp/qt-x11-commercial-src-4.2.2/src/corelib/global/qconfig.cpp:3: error: stray ‘\’ in program
/tmp/qt-x11-commercial-src-4.2.2/src/corelib/global/qconfig.cpp:3: error: stray ‘\’ in program

I then tried deleting the src tree and reunpacking. I then ran just ./configure and got the same output.:confused:

I do not have a QTDIR set, nor do I have the old QT installation in my path nor my LD_LIBRARY_PATH:
env | grep PATH
MANPATH=/usr/local/man:/usr/share/man:/usr/X11R6/man:/opt/gnome/share/man
GNOME2_PATH=/usr/local:/opt/gnome:/usr
GNOME_PATH=:/opt/gnome:/usr
XNLSPATH=/usr/X11R6/lib/X11/nls
PATH=/home/ruwrcomp/bin:/usr/local/bin:/usr/bin:/usr/x11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
GTK_PATH=/usr/local/lib/gtk-2.0:/opt/gnome/lib/gtk-2.0:/usr/lib/gtk-2.0
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/opt/kde3/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/share/pkgconfig
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:/opt/gnome/share/info

Any clues?

Thanks,

Karl

wysota
1st March 2007, 13:42
Does it start compiling qmake when you get those errors or before that or after that (after running "make")?

What's the contents of /tmp/qt-x11-commercial-src-4.2.2/src/corelib/global/qconfig.cpp:2?

KaptainKarl
1st March 2007, 15:53
Contents of qconfig.cpp file:

cat qconfig.cpp
/* License Info */
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
static const char qt_configure_licensed_products_str [256 + 12] = "qt_lcnsprod=Desktop\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0";
/* Installation Info */
static const char qt_configure_prefix_path_str [256 + 12] = "qt_prfxpath=/usr/local/Trolltech/Qt-4.2.2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0";
static const char qt_configure_documentation_path_str[256 + 12] = "qt_docspath=/usr/local/Trolltech/Qt-4.2.2/doc\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0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\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
static const char qt_configure_data_path_str [256 + 12] = "qt_datapath=/usr/local/Trolltech/Qt-4.2.2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0";
static const char qt_configure_translations_path_str [256 + 12] = "qt_trnspath=/usr/local/Trolltech/Qt-4.2.2/translations\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\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\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
static const char qt_configure_demos_path_str [256 + 12] = "qt_demopath=/usr/local/Trolltech/Qt-4.2.2/demos\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\ 0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
/* strlen( "qt_lcnsxxxx" ) == 12 */
#define QT_CONFIGURE_LICENSEE qt_configure_licensee_str + 12;
#define QT_CONFIGURE_LICENSED_PRODUCTS qt_configure_licensed_products_str + 12;
#define QT_CONFIGURE_PREFIX_PATH qt_configure_prefix_path_str + 12;
#define QT_CONFIGURE_DOCUMENTATION_PATH qt_configure_documentation_path_str + 12;
#define QT_CONFIGURE_HEADERS_PATH qt_configure_headers_path_str + 12;
#define QT_CONFIGURE_LIBRARIES_PATH qt_configure_libraries_path_str + 12;
#define QT_CONFIGURE_BINARIES_PATH qt_configure_binaries_path_str + 12;
#define QT_CONFIGURE_PLUGINS_PATH qt_configure_plugins_path_str + 12;
#define QT_CONFIGURE_DATA_PATH qt_configure_data_path_str + 12;
#define QT_CONFIGURE_TRANSLATIONS_PATH qt_configure_translations_path_str + 12;
#define QT_CONFIGURE_SETTINGS_PATH qt_configure_settings_path_str + 12;
#define QT_CONFIGURE_EXAMPLES_PATH qt_configure_examples_path_str + 12;
#define QT_CONFIGURE_DEMOS_PATH qt_configure_demos_path_str + 12;

wysota
1st March 2007, 16:31
Well, I only asked for the second line, but ok...

My qconfig.cpp looks different:

static const char qt_configure_licensee_str [256 + 12] = "qt_lcnsuser=Open Source\0\0.....

The one you have looks... wrong :)

KaptainKarl
1st March 2007, 17:56
At your suggestion, I checked the contents of the qconfig.cpp file. There was a control-M after my name in the licensee line. So I checked the $HOME/.qt-license file. It looks fine. Here are the contents:

# Qt GUI Toolkit license file
CustomerID="<snipped>"
LicenseID="<snipped>"
Licensee="Karl Ruetz"
Products="qt"
ExpiryDate=2008-03-07
# This is the license key for Qt 3.x
LicenseKey=<snipped>
# This is the license key for Qt 4.x
LicenseKeyExt=<snipped>

I deleted the qt source tree and unpacked it again. I made sure there was no qconfig.cpp file in the tree. I re-ran configure. When the configure program was asking me about accepting the license, I rechecked my $HOME for the license file. I found a new copy of the file called $HOME/.qt-license-temp. It's contents looked like this:

" Qt GUI Toolkit license file
"ustomerID="<snipped>"
"icenseID="<snipped>"
"icensee="Karl Ruetz"
"roducts="qt"
"xpiryDate="2008-03-07
" This is the license key for Qt 3.x
"icenseKey="<snipped>
" This is the license key for Qt 4.x
"icenseKeyExt="<snipped>

As you can see, the first character on each line has been replaced with a quotation mark. I don't know if this normal or not, but it looks suspicious to the casual observer.

I let configure fail as before. Then I removed the control-M from the end of my name in the qconfig.cpp file. The configure program then ran normally. As I write this email, gmake is running.

I have submitted this a bug at the Trolltech Website.

Thanks for you inputs.