Results 1 to 2 of 2

Thread: can't nmake qt (version 2010.05)

  1. #1
    Join Date
    Oct 2010
    Posts
    48
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default can't nmake qt (version 2010.05)

    The config:
    Qt Code:
    1. configure -debug-and-release -opensource -no-stl -no-openssl -no-qt3support -platform win32-msvc2008
    To copy to clipboard, switch view to plain text mode 

    The error while nmake:
    Qt Code:
    1. c:\Qt\2010.05\qt\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_SocketStreamHandlePrivate.cpp(97) : error C2065: 'QSslError' : undeclared identifier
    2. c:\Qt\2010.05\qt\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_SocketStreamHandlePrivate.cpp(97) : error C3861: 'socketSslErrors': identifier not found
    3. Generating Code...
    4. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
    5. Stop.
    6. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
    7. Stop.
    8. NMAKE : fatal error U1077: 'cd' : return code '0x2'
    9. Stop.
    To copy to clipboard, switch view to plain text mode 

    The moc_SocketStreamHandlePrivate.cpp file:
    Qt Code:
    1. #include "../../../platform/network/qt/SocketStreamHandlePrivate.h"
    2. #if !defined(Q_MOC_OUTPUT_REVISION)
    3. #error "The header file 'SocketStreamHandlePrivate.h' doesn't include <QObject>."
    4. #elif Q_MOC_OUTPUT_REVISION != 62
    5. #error "This file was generated using the moc from 4.7.0. It"
    6. #error "cannot be used with the include files from this version of Qt."
    7. #error "(The moc has changed too much.)"
    8. #endif
    9.  
    10. QT_BEGIN_MOC_NAMESPACE
    11. static const uint qt_meta_data_WebCore__SocketStreamHandlePrivate[] = {
    12.  
    13. // content:
    14. 5, // revision
    15. 0, // classname
    16. 0, 0, // classinfo
    17. 10, 14, // methods
    18. 0, 0, // properties
    19. 0, 0, // enums/sets
    20. 0, 0, // constructors
    21. 0, // flags
    22. 0, // signalCount
    23.  
    24. // slots: signature, parameters, type, tag, flags
    25. 36, 35, 35, 35, 0x0a,
    26. 54, 35, 35, 35, 0x0a,
    27. 85, 76, 72, 35, 0x0a,
    28. 107, 35, 35, 35, 0x0a,
    29. 115, 35, 35, 35, 0x0a,
    30. 132, 35, 35, 35, 0x0a,
    31. 147, 35, 35, 35, 0x0a,
    32. 189, 35, 35, 35, 0x0a,
    33. 212, 35, 35, 35, 0x0a,
    34. 237, 35, 35, 35, 0x0a,
    35.  
    36. 0 // eod
    37. };
    38.  
    39. static const char qt_meta_stringdata_WebCore__SocketStreamHandlePrivate[] = {
    40. "WebCore::SocketStreamHandlePrivate\0\0"
    41. "socketConnected()\0socketReadyRead()\0"
    42. "int\0data,len\0send(const char*,int)\0"
    43. "close()\0socketSentdata()\0socketClosed()\0"
    44. "socketError(QAbstractSocket::SocketError)\0"
    45. "socketClosedCallback()\0socketErrorCallback(int)\0"
    46. "socketSslErrors(QList<QSslError>)\0"
    47. };
    48.  
    49. const QMetaObject WebCore::SocketStreamHandlePrivate::staticMetaObject = {
    50. { &QObject::staticMetaObject, qt_meta_stringdata_WebCore__SocketStreamHandlePrivate,
    51. qt_meta_data_WebCore__SocketStreamHandlePrivate, 0 }
    52. };
    53.  
    54. #ifdef Q_NO_DATA_RELOCATION
    55. const QMetaObject &WebCore::SocketStreamHandlePrivate::getStaticMetaObject() { return staticMetaObject; }
    56. #endif //Q_NO_DATA_RELOCATION
    57.  
    58. const QMetaObject *WebCore::SocketStreamHandlePrivate::metaObject() const
    59. {
    60. return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
    61. }
    62.  
    63. void *WebCore::SocketStreamHandlePrivate::qt_metacast(const char *_clname)
    64. {
    65. if (!_clname) return 0;
    66. if (!strcmp(_clname, qt_meta_stringdata_WebCore__SocketStreamHandlePrivate))
    67. return static_cast<void*>(const_cast< SocketStreamHandlePrivate*>(this));
    68. return QObject::qt_metacast(_clname);
    69. }
    70.  
    71. int WebCore::SocketStreamHandlePrivate::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
    72. {
    73. _id = QObject::qt_metacall(_c, _id, _a);
    74. if (_id < 0)
    75. return _id;
    76. if (_c == QMetaObject::InvokeMetaMethod) {
    77. switch (_id) {
    78. case 0: socketConnected(); break;
    79. case 1: socketReadyRead(); break;
    80. case 2: { int _r = send((*reinterpret_cast< const char*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
    81. if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; } break;
    82. case 3: close(); break;
    83. case 4: socketSentdata(); break;
    84. case 5: socketClosed(); break;
    85. case 6: socketError((*reinterpret_cast< QAbstractSocket::SocketError(*)>(_a[1]))); break;
    86. case 7: socketClosedCallback(); break;
    87. case 8: socketErrorCallback((*reinterpret_cast< int(*)>(_a[1]))); break;
    88. case 9: socketSslErrors((*reinterpret_cast< const QList<QSslError>(*)>(_a[1]))); break;
    89. default: ;
    90. }
    91. _id -= 10;
    92. }
    93. return _id;
    94. }
    95. QT_END_MOC_NAMESPACE
    To copy to clipboard, switch view to plain text mode 

    The SocketStreamHandlePrivate.h file:
    Qt Code:
    1. #ifndef SocketStreamHandlePrivate_h
    2. #define SocketStreamHandlePrivate_h
    3.  
    4. #include "SocketStreamHandleBase.h"
    5.  
    6. #include <QSslSocket>
    7. #include <QTcpSocket>
    8.  
    9. namespace WebCore {
    10.  
    11. class AuthenticationChallenge;
    12. class Credential;
    13. class SocketStreamHandleClient;
    14. class SocketStreamHandlePrivate;
    15.  
    16. class SocketStreamHandlePrivate : public QObject {
    17. Q_OBJECT
    18. public:
    19. SocketStreamHandlePrivate(SocketStreamHandle*, const KURL&);
    20. ~SocketStreamHandlePrivate();
    21.  
    22. public slots:
    23. void socketConnected();
    24. void socketReadyRead();
    25. int send(const char* data, int len);
    26. void close();
    27. void socketSentdata();
    28. void socketClosed();
    29. void socketError(QAbstractSocket::SocketError);
    30. void socketClosedCallback();
    31. void socketErrorCallback(int);
    32. #ifndef QT_NO_OPENSSL
    33. void socketSslErrors(const QList<QSslError>&);
    34. #endif
    35. public:
    36. QTcpSocket* m_socket;
    37. SocketStreamHandle* m_streamHandle;
    38. };
    39.  
    40. }
    41.  
    42. #endif
    To copy to clipboard, switch view to plain text mode 

    This file is now in version 2010.05 (I also have version 2010.04) and this file is not there.

    Thanks

  2. #2
    Join Date
    Nov 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: can't nmake qt (version 2010.05)

    I had the same problem.
    Just delete files \src\3rdparty\webkit\WebCore\tmp\moc\release_share d\mocinclude.tmp and \src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\ mocinclude.tmp. And restart nmake.

Similar Threads

  1. QTCreator is using wrong version of nmake
    By mrknight in forum Installation and Deployment
    Replies: 1
    Last Post: 21st May 2010, 03:19
  2. Plan for Visual Studio 2010 (MSVC 2010)?
    By Vinzz in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2010, 17:42
  3. Problem with the Qt 2010.02 Version
    By marciobueno in forum Installation and Deployment
    Replies: 1
    Last Post: 2nd March 2010, 15:27
  4. Replies: 0
    Last Post: 11th August 2009, 09:38
  5. Replies: 5
    Last Post: 5th October 2008, 05:12

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
  •  
Qt is a trademark of The Qt Company.