2017-01-22 21 views
1

我試圖編譯我的beaglebone黑色pocketsphinx跳過不兼容的錯誤。但是,在構建過程中,我通過使用Eclipse Luna遇到了「跳過不兼容錯誤」。我嘗試鏈接-Lusr/lib/arm-linux-gnueabihf和-lpthread -lm -lrt -ldl,但它不能解決錯誤。採用ARM-Linux的gnueabihf當beaglebone黑

編譯使用gcc和g ++我的電腦上就可以了。只是改變gcc和克後++到 「臂-Linux的gnueabihf-GCC-4.8 -std = C++ 11」 和 「臂-Linux的gnueabihf-G ++ - 4.8 -std = C++ 11」 並在問題出現了。

這是我編譯後得到的,

描述資源路徑位置類型 尋找-lsphinxbase
時跳過跳過不兼容不兼容/usr/local/lib/libsphinxbase.a在/ usr /本地/ LIB/libsphinxad.so當搜索-lsphinxad
跳過不兼容/usr/local/lib/libsphinxad.a尋找-lsphinxad
跳過不兼容/usr/local/lib/libpocketsphinx.so時-lpocketsphinx
搜索時跳繩不兼容/usr/local/lib/libpocketsphinx.a當搜索-lpocketsphinx
跳過不兼容的/usr/local/lib/libsphinxbase.so搜索-lsphinxbase時
跳過不兼容的/ usr/local/lib/libsphinxbase。一個搜索-lsphinxbase
跳過不兼容//usr/local/lib/libsphinxad.so當搜索-lsphinxad
跳過不兼容//usr/local/lib/libsphinxad.a時-lsphinxad
跳過不兼容搜索時//usr/local/lib/libpocketsphinx.so當搜索-lpocketsphinx
跳過不兼容的//usr/local/lib/libpocketsphinx.a搜索-lpocketsphinx時
化妝:*** [pocketsphinx2]錯誤1
找不到-lsphinxbase
找不到-lsphinxad
找不到-lpocketsphinx

回答

2

你必須包括在你的編譯器生成路徑路徑到您的獅身人面像庫:

-L「路徑/到/獅身人面像」

一旦你這樣做了解析的符號將問題已得到糾正。

+0

所需的獅身人面像庫都包含在我的構建路徑中。我沒有問題使用gcc g ++命令編譯我的電腦。只有當我改變命令 「臂-Linux的gnueabihf-GCC-4.8 -std = C++ 11」 和 「臂-Linux的gnueabihf-G ++ - 4.8 -std = C++ 11」,使其兼容與beaglebone黑色是否出現此錯誤。 –