• 6788阅读
  • 2回复

[原创]qt5.0 编译报错 [复制链接]

上一主题 下一主题
离线yesha2012
 

只看楼主 倒序阅读 楼主  发表于: 2013-04-25


求救  gmake 编译出错,源码怎么会有这样的错误??????符号错误??
../3rdparty/v8/src/heap.h:47:1: error: stray '@' in program
../3rdparty/v8/src/heap.h:53:9: error: stray '#' in program
../3rdparty/v8/src/heap.h:62:1: error: stray '@' in program
../3rdparty/v8/src/heap.h:115:1: error: stray '@' in program
../3rdparty/v8/src/heap.h:127:1: error: stray '@' in program
../3rdparty/v8/src/heap.h:142:1: error: stray '@' in program
../3rdparty/v8/src/heap.h:151:1: error: stray '@' in program
../3rdparty/v8/src/heap.h:163:9: error: missing terminating ' character
../3rdparty/v8/src/heap.h:173:1: error: stray '@' in program
../3rdparty/v8/src/heap.h:201:1: error: stray '@' in program
../3rdparty/v8/src/heap.h:210:1: error: stray '@' in program
../3rdparty/v8/src/heap.h:218:1: error: stray '@' in program
../3rdparty/v8/src/heap.h:227:45: error: unterminated comment
In file included from ../3rdparty/v8/src/factory.h:32:0,
                 from ../3rdparty/v8/src/objects-inl.h:48,
                 from ../3rdparty/v8/src/v8.h:60,
                 from ../3rdparty/v8/src/accessors.cc:28:
../3rdparty/v8/src/handles.h:6:1: error: stray '@' in program
../3rdparty/v8/src/handles.h:13:1: error: stray '@' in program
../3rdparty/v8/src/handles.h:172:1: error: stray '@' in program
../3rdparty/v8/src/handles.h:179:1: error: stray '@' in program
../3rdparty/v8/src/handles.h:191:1: error: stray '@' in program
../3rdparty/v8/src/handles.h:197:1: error: stray '@' in program
../3rdparty/v8/src/handles.h:209:40: error: invalid suffix "html" on floating constant

离线jdwx

只看该作者 1楼 发表于: 2013-04-25
按照上面错误信息的行号看看那一行有什么问题。
发帖时要说明:操作系统、Qt版本、编译器,这样能更快的得到回复。
离线yesha2012

只看该作者 2楼 发表于: 2013-04-26
回 1楼(jdwx) 的帖子
谢谢了   我解决了 是在编译的过程中出错了  
我重新解压配置编译就没事

但是有另外一个问题 关于opengl 的问题
mipsel-linux-g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DQT_NO_XCB -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_INTEGER_EVENT_COORDINATES -DQT_BUILD_QUICK_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EGL -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_V8_LIB -DV8_SHARED -DUSING_V8_SHARED -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtbase/mkspecs/linux-mipsel-g++ -I. -I../../include -I../../include/QtQuick -I../../include/QtQuick/5.0.1 -I../../include/QtQuick/5.0.1/QtQuick -I../../include/QtQml -I../../include/QtQml/5.0.1 -I../../include/QtQml/5.0.1/QtQml -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtbase/include -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtbase/include/QtNetwork -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtbase/include/QtGui -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtbase/include/QtGui/5.0.1 -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtbase/include/QtGui/5.0.1/QtGui -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtbase/include/QtCore -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtbase/include/QtCore/5.0.1 -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtbase/include/QtCore/5.0.1/QtCore -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtjsbackend/include -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtjsbackend/include/QtV8 -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtjsbackend/include/QtV8/5.0.1 -I/root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtjsbackend/include/QtV8/5.0.1/QtV8 -I.moc/release-shared -o .obj/release-shared/qquickpixmapcache.o util/qquickpixmapcache.cpp
In file included from ../../include/QtQuick/qsggeometry.h:1:0,
                 from ../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsgnode.h:45,
                 from ../../include/QtQuick/qsgnode.h:1,
                 from ../../include/QtQuick/5.0.1/QtQuick/private/../../../../../src/quick/scenegraph/qsgcontext_p.h:54,
                 from ../../include/QtQuick/5.0.1/QtQuick/private/qsgcontext_p.h:1,
                 from ../../include/QtQuick/5.0.1/QtQuick/private/../../../../../src/quick/scenegraph/util/qsgtexture_p.h:51,
                 from ../../include/QtQuick/5.0.1/QtQuick/private/qsgtexture_p.h:1,
                 from util/qquickpixmapcache.cpp:53:
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:117:25: error: 'GLenum' has not been declared
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:118:12: error: 'GLenum' does not name a type
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:114:33: error: 'GL_UNSIGNED_SHORT' was not declared in this scope
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h: In member function 'int QSGGeometry::sizeOfIndex() const':
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:290:25: error: 'GL_UNSIGNED_SHORT' was not declared in this scope
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:291:30: error: 'GL_UNSIGNED_BYTE' was not declared in this scope
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:292:30: error: 'GL_UNSIGNED_INT' was not declared in this scope
In file included from /root/qt-mipsel/qt-everywhere-opensource-src-5.0.1/qtbase/include/QtGui/5.0.1/QtGui/private/qopenglextensions_p.h:1:0,
                 from ../../include/QtQuick/5.0.1/QtQuick/private/../../../../../src/quick/scenegraph/util/qsgdepthstencilbuffer_p.h:47,
快速回复
限100 字节
 
上一个 下一个