Make

安裝失敗了嗎?(製作222:“安裝”無需執行任何操作。)

  • June 17, 2019

我嘗試根據這些說明使用我的 LMDE Linux OS(聯想筆記型電腦)安裝 Raspberry zero 的 Qt Cross 編譯,使用我編寫的以下腳本:

#!/bin/bash

./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/home/so/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot /home/so/raspi/sysroot -opensource -confirm-license -skip qtwayland -skip qtlocation -skip qtscript -make libs -prefix /usr/local/qt5pi -extprefix /home/so/raspi/qt5pi -hostprefix /home/so/raspi/qt5 -no-use-gold-linker -v -no-gbm


make
make install

並保存為instlation_qt.sh文件。我執行它使用

sudo ./instlation_qt.sh

在輸出的最後,我有這個:

so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtbase/bin/qmake -install qinstall /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qttranslations/translations/qtxmlpatterns_pl.qm /home/so/raspi/qt5pi/translations/qtxmlpatterns_pl.qm
/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtbase/bin/qmake -install qinstall /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qttranslations/translations/qtxmlpatterns_ru.qm /home/so/raspi/qt5pi/translations/qtxmlpatterns_ru.qm
/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtbase/bin/qmake -install qinstall /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qttranslations/translations/qtxmlpatterns_sk.qm /home/so/raspi/qt5pi/translations/qtxmlpatterns_sk.qm
/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtbase/bin/qmake -install qinstall /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qttranslations/translations/qtxmlpatterns_uk.qm /home/so/raspi/qt5pi/translations/qtxmlpatterns_uk.qm
/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtbase/bin/qmake -install qinstall /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qttranslations/translations/qtxmlpatterns_zh_TW.qm /home/so/raspi/qt5pi/translations/qtxmlpatterns_zh_TW.qm
make[2]: Leaving directory '/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qttranslations/translations'
make[1]: Leaving directory '/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qttranslations'
cd qtdoc/ && ( test -e Makefile || /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtbase/bin/qmake -o Makefile /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtdoc/qtdoc.pro ) && make -f Makefile install
make[1]: Entering directory '/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtdoc'
cd doc/ && ( test -e Makefile || /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtbase/bin/qmake -o Makefile /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtdoc/doc/doc.pro ) && make -f Makefile install
make[2]: Entering directory '/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtdoc/doc'
make[2]: Nothing to be done for 'install'.
make[2]: Leaving directory '/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtdoc/doc'
make[1]: Leaving directory '/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtdoc'

我有一個新 ~/raspi/qt5pi文件夾,如./configure ... -extprefix /home/so/raspi/qt5pi ....

我認為安裝過程基於這個類似的問題成功結束。安裝過程是否成功完成?

或者

我在將 Qt 項目交叉編譯到我的樹莓零時遇到問題並收到此錯誤:

 19:22:40: Starting /home/pi/Desktop/test_3/bin/test_3 ...
   libEGL warning: DRI3: xcb_connect failed
   libEGL warning: DRI2: xcb_connect failed
   libEGL warning: DRI2: xcb_connect failed
   Could not initialize egl display

所以我懷疑有什麼問題。我見過這個類似的問題,我認為有一些問題。是否

make 3:“安裝”無需做任何事情。

消息來自編寫make install命令時的錯誤,例如:

  1. 沒有sudo之前嗎?
  2. 基於此站點,例如:

是由makefile規則中的before命令而不是製表符引起的…

  1. 或其他任何事情?

“‘安裝’無需做任何事情。” 消息是指安裝的一小部分:

make[2]: Entering directory '/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtdoc/doc'
make[2]: Nothing to be done for 'install'.

qtdoc/doc這表示僅在目錄中無事可做。

上面的行,例如

/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtbase/bin/qmake -install qinstall /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qttranslations/translations/qtxmlpatterns_ru.qm /home/so/raspi/qt5pi/translations/qtxmlpatterns_ru.qm
/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtbase/bin/qmake -install qinstall /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qttranslations/translations/qtxmlpatterns_sk.qm /home/so/raspi/qt5pi/translations/qtxmlpatterns_sk.qm
/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtbase/bin/qmake -install qinstall /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qttranslations/translations/qtxmlpatterns_uk.qm /home/so/raspi/qt5pi/translations/qtxmlpatterns_uk.qm
/home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qtbase/bin/qmake -install qinstall /home/so/Desktop/trash/3/qt-everywhere-src-5.12.3/qttranslations/translations/qtxmlpatterns_zh_TW.qm /home/so/raspi/qt5pi/translations/qtxmlpatterns_zh_TW.qm

顯示文件成功安裝。

如果整體安裝失敗,您的make install執行將因錯誤而結束,例如

make: *** [Makefile:20: install] Error 2

引用自:https://unix.stackexchange.com/questions/525434