2015-12-01 37 views
1

我想建立一個項目,在spi2核心,我得到未定義的參考。顯然,x11庫沒有被鏈接。但是,我很想看看makefile實際輸出的命令。現在輸出如下:自動工具Makefile可以顯示它們執行的命令嗎?

CCLD  at-spi2-registryd 
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `find_display': 
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:83: undefined reference to `XextFindDisplay' 
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:83: undefined reference to `XextCreateExtension' 
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:83: undefined reference to `XextAddDisplay' 
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `XTestCompareCursorWithWindow': 
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:136: undefined reference to `XMissingExtension' 
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `XTestFakeKeyEvent': 
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:167: undefined reference to `XMissingExtension' 
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `XTestFakeButtonEvent': 
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:188: undefined reference to `XMissingExtension' 
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `XTestFakeMotionEvent': 
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:208: undefined reference to `XMissingExtension' 
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `XTestFakeRelativeMotionEvent': 
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:234: undefined reference to `XMissingExtension' 
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o):/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:301: more undefined references to `XMissingExtension' follow 
/home/deividas/Desktop/storage/Soft/MXE/mxe/usr/x86_64-pc-linux-gnu.static/lib/libXtst.a(XTest.o): In function `close_display': 
/home/deividas/Desktop/storage/Soft/MXE/mxe/tmp-xtst-x86_64-pc-linux-gnu.static/libXtst-1.2.1/src/XTest.c:88: undefined reference to `XextRemoveDisplay' 
collect2: error: ld returned 1 exit status 

CCLD根本沒有幫助。我試過http://www.gnu.org/software/automake/manual/html_node/Debugging-Make-Rules.html中的東西,但似乎沒有輸出如何執行ld。這部分發生在registryd的內部文件夾中,而不是在根目錄中(如果這是相關的話)。有沒有人有類似的問題與autotools獲得正常的調試輸出?

回答

1

正常makefile總是打印出它們執行的命令; CCLD和類似的輸出是由於Autotools「無聲規則」功能。要禁用一次運行make,請運行make V=1(V表示詳細)。要永久禁用它,請使用--disable-silent-rules再次運行configure。

相關問題