日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

小明分享|嵌入式LINUX开发日志-错误汇总①

發布時間:2024/10/14 linux 72 豆豆
生活随笔 收集整理的這篇文章主要介紹了 小明分享|嵌入式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 ............................ no

Note: 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。這意味著您無法構建Qt文檔。
在Linux系統上,您可以通過安裝libclang-dev或libclang-devel軟件包來安裝libclang,具體取決于您的發行版。

解決方法:

sudo apt-get install libclang-dev #安裝結束還存在該錯誤建議重啟虛擬機。

undefined reference to

inline定義的內聯函數最終會影響到交叉編譯及生成庫文件

錯誤問題在于,內聯函數聲明在調用內聯函數之后,頭文件中已經聲明了部分函數,導致最終調用到內聯
錯誤輸出:(.text+0x13): undefined reference to `xxxx’ ->交叉編譯

? undefined reference to ‘xxxx’-> 生成的庫文件調用后

問題解決:

成功代碼: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 #重設unix密碼

linux開發板出現Read-only file system的解決辦法

創建文件夾出現如下提示

mkdir: can’t create directory ‘xxx’: Read-only file system

使用命令以下命令即可解決:

mount rw -o remount /

總結

以上是生活随笔為你收集整理的小明分享|嵌入式LINUX开发日志-错误汇总①的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。