编译OK6410-A 的qt-everywhere-opensource-src-4.7.1出错 解决办法

来源:互联网 发布:ubuntu vim设置 编辑:程序博客网 时间:2024/05/16 02:23

出错信息如下

/home/dance/forlinux/qt/qt-everywhere-opensource-src-4.7.1/qt-everywhere-opensource-src-4.7.1/src/corelib/io/qfsfileengine_unix.cpp: In member function 'uchar* QFSFileEnginePrivate::map(qint64, qint64, QFile::MemoryMapFlags)':

/home/dance/forlinux/qt/qt-everywhere-opensource-src-4.7.1/qt-everywhere-opensource-src-4.7.1/src/corelib/io/qfsfileengine_unix.cpp:1345: error: 'QT_MMAP' was not declared in this scope
make: *** [qfsfileengine_unix.o] Error 1
make: *** No targets specified and no makefile found.  Stop.

make: *** No rule to make target `install'.  Stop.

解决办法:这是权限问题,在一键编译时加上sudo,即输入 sudo ./build-all

0 0
原创粉丝点击