LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error compiling QT on Suse Linux 9.3 (x86-64) (https://www.linuxquestions.org/questions/linux-software-2/error-compiling-qt-on-suse-linux-9-3-x86-64-a-777694/)

mmot58 12-23-2009 10:27 AM

Error compiling QT on Suse Linux 9.3 (x86-64)
 
Dear Linux-ers,

I have encountered a compilation error while installing the QT software on Suse Linux 9.3 (x86-64), and I have no idea what it means. The error message is as follows:

Code:

kernel/qmetaobject.cpp: In static member function `static QByteArray
  QMetaObject::normalizedType(const char*)':
kernel/qmetaobject.cpp:946: error: syntax error before `+' token
kernel/qmetaobject.cpp:947: error: request for member `data' in
`stackbuf',
  which is of non-aggregate type `QVarLengthArray<char, 256> ()(...)'
kernel/qmetaobject.cpp:949: error: request for member `data' in
`stackbuf',
  which is of non-aggregate type `QVarLengthArray<char, 256> ()(...)'
gmake[1]: *** [.obj/release-shared/qmetaobject.o] Error 1
gmake[1]: Leaving directory
`/tmp/xx/qt-everywhere-opensource-src-4.6.0/src/corelib'
gmake: *** [sub-corelib-make_default-ordered] Error 2


This error is related to the following function in qmetaobject.cpp:

Code:

QByteArray QMetaObject::normalizedType(const char *type)
{
    QByteArray result;

    if (!type || !*type)
        return result;

    QVarLengthArray<char> stackbuf(int(strlen(type)) + 1);
    qRemoveWhitespace(type, stackbuf.data());
    int templdepth = 0;
    qNormalizeType(stackbuf.data(), templdepth, result);

    return result;
}



I will greatly appreciate any help and suggestion,

Thanks,
Maryam

banjer 03-05-2010 11:36 AM

Qt make error
 
Hi,
I'm having the same issue. Did you have any luck tracking down your problem?


All times are GMT -5. The time now is 12:28 AM.