在虚拟机ubuntu14.04下编译Qt4.6.1源码报错
「已注销」 2017-12-16 07:40:19 ./configure以后
make 编译一段时间以后报错:
In file included from ../3rdparty/javascriptcore/JavaScriptCore/wtf/HashFunctions.h:24:0,
from ../3rdparty/javascriptcore/JavaScriptCore/wtf/HashTraits.h:24,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h:33,
from ../3rdparty/javascriptcore/JavaScriptCore/interpreter/Register.h:32,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/ArgList.h:25,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:26,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/InternalFunction.h:27,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.h:27,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Executable.h:29,
from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/EvalCodeCache.h:32,
from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.h:33,
from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.cpp:31:
../3rdparty/javascriptcore/JavaScriptCore/wtf/RefPtr.h: In instantiation of ‘QTWTF::RefPtr<T>::~RefPtr() [with T = QTJSC::Label]’:
../3rdparty/javascriptcore/JavaScriptCore/bytecompiler/LabelScope.h:49:46: required from here
../3rdparty/javascriptcore/JavaScriptCore/wtf/RefPtr.h:51:55: error: ‘derefIfNotNull’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
~RefPtr() { T* ptr = m_ptr; derefIfNotNull(ptr); }
^
In file included from ../3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocator.h:31:0,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:33,
from ../3rdparty/javascriptcore/JavaScriptCore/interpreter/CallFrame.h:26,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/ClassInfo.h:26,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:27,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/InternalFunction.h:27,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.h:27,
from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Executable.h:29,
from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/EvalCodeCache.h:32,
from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.h:33,
from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.cpp:31:
../3rdparty/javascriptcore/JavaScriptCore/wtf/PassRefPtr.h:39:10: note: ‘template<class T> void QTWTF::derefIfNotNull(T*)’ declared here, later in the translation unit
void derefIfNotNull(T* ptr)
^
make[1]: *** [obj/release/CodeBlock.o] Error 1
make[1]: Leaving directory `/opt/qt-everywhere-opensource-src-4.6.1/src/script'
make: *** [sub-script-make_default-ordered] Error 2
在网上找了很久也没找到解决方案。 请问有能解决这个问题的朋友吗