小明分享|嵌入式LINUX开发日志-错误汇总①
SSD201 QT移植編譯錯誤解決
book@100ask:~/SSD201/qt-everywhere-src-5.15.0$ ./make.sh
mkdir: cannot create directory ‘install’: File exists
- cd qtbase
- /home/book/SSD201/qt-everywhere-src-5.15.0/qtbase/configure -top-level -prefix /home/book/SSD201/qt-everywhere-src-5.15.0/install -static
Creating qmake…
.Done.
Selecting Qt Edition.
Type ‘c’ if you want to use the Commercial Edition.
Type ‘o’ if you want to use the Open Source Edition.
Which edition of Qt do you want to use?
Which edition of Qt do you want to use?
Which edition of Qt do you want to use? o
This is the Qt Open Source Edition.
———————————————————————————————————————————————————————————————————————————————————————————————————————————————————
You are licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) version 3
or the GNU General Public License (GPL) version 2.
Type ‘L’ to view the GNU Lesser General Public License version 3 (LGPLv3).
Type ‘G’ to view the GNU General Public License version 2 (GPLv2).
Type ‘y’ to accept this license offer.
Type ‘n’ to decline this license offer.
Do you accept the terms of either license? y
———————————————————————————————————————————————————————————————————————————————————————————————————————————————————
lcms2 ................................ no png .................................. no JPEG ................................. no harfbuzz ............................. no freetype ............................. no xkbcommon ............................ noNote: Also available for Linux: linux-clang linux-icc
Note: Using static linking will disable the use of dynamically
loaded plugins. Make sure to import all needed static plugins,
or compile needed modules into the library.
Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
Note: The following modules are not being compiled in this configuration:
3dcore
3drender
webenginecore
webengine
webenginewidgets
pdf
pdfwidgets
WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
On macOS, you can use Homebrew’s llvm package.
On Windows, you must set LLVM_INSTALL_DIR to the installation path.
WARNING: Tool gperf is required to build QtWebEngine.
WARNING: QtWebEngine will not be built.
WARNING: QtPdf will not be built.
ERROR: The OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
Check config.log for details.
./make.sh: line 8: -release: command not found
make: *** No targets specified and no makefile found. Stop.
make: Nothing to be done for ‘install’.
錯誤:
WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
警告:QDoc無法編譯,可能是因為無法找到libclang。這意味著您無法構(gòu)建Qt文檔。
在Linux系統(tǒng)上,您可以通過安裝libclang-dev或libclang-devel軟件包來安裝libclang,具體取決于您的發(fā)行版。
解決方法:
sudo apt-get install libclang-dev #安裝結(jié)束還存在該錯誤建議重啟虛擬機(jī)。
undefined reference to
inline定義的內(nèi)聯(lián)函數(shù)最終會影響到交叉編譯及生成庫文件
錯誤問題在于,內(nèi)聯(lián)函數(shù)聲明在調(diào)用內(nèi)聯(lián)函數(shù)之后,頭文件中已經(jīng)聲明了部分函數(shù),導(dǎo)致最終調(diào)用到內(nèi)聯(lián)
錯誤輸出:(.text+0x13): undefined reference to `xxxx’ ->交叉編譯
? undefined reference to ‘xxxx’-> 生成的庫文件調(diào)用后
問題解決:
成功代碼:arm-linux-gnueabihf-gcc -fpic -O2 -c mqtt_2.c -o mqtt.o
失敗代碼:arm-linux-gnueabihf-gcc -fpic (-O0) -c mqtt_2.c -o mqtt.o
Ubuntu 安裝軟件時 Authentication failure 需要輸入root密碼
sudo passwd root #重設(shè)unix密碼
linux開發(fā)板出現(xiàn)Read-only file system的解決辦法
創(chuàng)建文件夾出現(xiàn)如下提示
mkdir: can’t create directory ‘xxx’: Read-only file system
使用命令以下命令即可解決:
mount rw -o remount /
總結(jié)
以上是生活随笔為你收集整理的小明分享|嵌入式LINUX开发日志-错误汇总①的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 小明分享:SSD201/202系统烧录篇
- 下一篇: 小明分享|ESP8266设置STA模式p