Results 1 to 2 of 2

Thread: problem to compile exemple qt4 with xlC compiler

  1. #1
    Join Date
    Apr 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default problem to compile exemple qt4 with xlC compiler

    I have a problem when I want to compil with a compiler other than g++

    I explain me :
    - I want to compil an exemple from qt-x11-opensource-src-4.3.1
    - ./qt-x11-opensource-src-4.3.1/examples/dialogs/standarddialogs
    - I do the qmake ...
    - then, Makefile

    Qt Code:
    1. g++ -c -m64 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I./qt-x11-opensource-src-4.3.1/include/QtCore -I./qt-x11-opensource-src-4.3.1/include/QtGui -I./qt-x11-opensource-src-4.3.1/include -I. -o dialog.o dialog.cpp
    To copy to clipboard, switch view to plain text mode 

    The issue is ok

    If I use the ibm's compiler xlC to power architecture :

    Qt Code:
    1. xlC -c -q64 -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I./qt-x11-opensource-src-4.3.1/include/QtCore -I./qt-x11-opensource-src-4.3.1/include/QtGui -I./qt-x11-opensource-src-4.3.1/include -I. -o dialog.o dialog.cpp
    2.  
    3. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1083.15: 1540-0040 (S) The text "bool" is unexpected. "visibility" may be undeclared or ambiguous.
    4. "./qt-x11-opensource-src-4.3.1/include/QtGui/qpolygon.h", line 91.21: 1540-0040 (S) The text "operator<<" is unexpected. "visibility" may be undeclared or ambiguous.
    5. "./qt-x11-opensource-src-4.3.1/include/QtGui/qpolygon.h", line 142.21: 1540-0040 (S) The text "operator<<" is unexpected. "visibility" may be undeclared or ambiguous.
    6. "./qt-x11-opensource-src-4.3.1/include/QtGui/qtextformat.h", line 115.26: 1540-0040 (S) The text "&" is unexpected. "visibility" may be undeclared or ambiguous.
    7. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.15: 1540-0218 (S) The call does not match any parameter list for "operator==".
    8. "./qt-x11-opensource-src-4.3.1/include/QtCore/qglobal.h", line 1491.13: 1540-1283 (I) "operator==(QBool, bool)" is not a viable candidate.
    9. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "QBool" cannot be initialized with an expression of type "const QStringRef".
    10. "./qt-x11-opensource-src-4.3.1/include/QtCore/qglobal.h", line 1492.13: 1540-1283 (I) "operator==(bool, QBool)" is not a viable candidate.
    11. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "bool" cannot be initialized with an expression of type "const QStringRef".
    12. "./qt-x11-opensource-src-4.3.1/include/QtCore/qglobal.h", line 1493.13: 1540-1283 (I) "operator==(QBool, QBool)" is not a viable candidate.
    13. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "QBool" cannot be initialized with an expression of type "const QStringRef".
    14. "./qt-x11-opensource-src-4.3.1/include/QtCore/qchar.h", line 352.13: 1540-1283 (I) "operator==(QChar, QChar)" is not a viable candidate.
    15. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "QChar" cannot be initialized with an expression of type "const QStringRef".
    16. "./qt-x11-opensource-src-4.3.1/include/QtCore/qbytearray.h", line 453.13: 1540-1283 (I) "operator==(const QByteArray &, const QByteArray &)" is not a viable candidate.
    17. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const QByteArray &" cannot be initialized with an expression of type "const QStringRef".
    18. "./qt-x11-opensource-src-4.3.1/include/QtCore/qbytearray.h", line 455.13: 1540-1283 (I) "operator==(const QByteArray &, const char *)" is not a viable candidate.
    19. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const QByteArray &" cannot be initialized with an expression of type "const QStringRef".
    20. "./qt-x11-opensource-src-4.3.1/include/QtCore/qbytearray.h", line 457.13: 1540-1283 (I) "operator==(const char *, const QByteArray &)" is not a viable candidate.
    21. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "const QStringRef".
    22. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 833.13: 1540-1283 (I) "operator==(QString::Null, QString::Null)" is not a viable candidate.
    23. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "QString::Null" cannot be initialized with an expression of type "const QStringRef".
    24. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 834.13: 1540-1283 (I) "operator==(QString::Null, const QString &)" is not a viable candidate.
    25. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "QString::Null" cannot be initialized with an expression of type "const QStringRef".
    26. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 835.13: 1540-1283 (I) "operator==(const QString &, QString::Null)" is not a viable candidate.
    27. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const QString &" cannot be initialized with an expression of type "const QStringRef".
    28. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 861.32: 1540-1283 (I) "operator==(const char *, const QString &)" is not a viable candidate.
    29. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "const QStringRef".
    30. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 874.32: 1540-1283 (I) "operator==(const char *, const QLatin1String &)" is not a viable candidate.
    31. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const char *" cannot be initialized with an expression of type "const QStringRef".
    32. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 887.13: 1540-1283 (I) "operator==(const QLatin1String &, const QLatin1String &)" is not a viable candidate.
    33. "./qt-x11-opensource-src-4.3.1/include/QtCore/qstring.h", line 1085.12: 1540-0256 (I) A parameter of type "const QLatin1String &" cannot be initialized with an expression of type "const QStringRef".
    To copy to clipboard, switch view to plain text mode 

    What do you think of these errors ??

    Usually, I haven't got any problems with this compiler (qt3, X11, ...)

  2. #2
    Join Date
    Apr 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problem to compile exemple qt4 with xlC compiler

    platform linux ppc64

Similar Threads

  1. How to deal with jpeg deployment problem with Visual C++ compiler
    By nooky59 in forum Installation and Deployment
    Replies: 5
    Last Post: 27th March 2008, 11:20
  2. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02
  3. Qwt plot problem on compile
    By sincnarf in forum Qwt
    Replies: 2
    Last Post: 14th October 2007, 11:36
  4. Problem to compile with MinGW + Qt 4 + winpcap
    By jlbrd in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2006, 16:32
  5. lQtGuid4 error - Compiler setting problem
    By Kapil in forum Installation and Deployment
    Replies: 7
    Last Post: 10th February 2006, 09:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.