使用Boost进行Linux上树莓派3的交叉编译错误

时间:2019-10-21 20:45:56

标签: c++ linux boost cmake raspberry-pi

我有一个raspberry pi 3模型b,我想为此交叉编译我的应用程序,这样我就不必一直离开PC。运行$(document).ready(function() { $('.reserve').on('click', function(e) { var rowData = $(this).parent().parent().children(); $('#nom_local').val($(rowData).eq(0).text()); $('#numeroplace').val($(rowData).eq(1).text()); $('#prixplace').val($(rowData).eq(2).text()); $('#tailleplace').val($(rowData).eq(3).text()); }); }); 时出现错误的任何方式:

cmake .. 
-DCMAKE_TOOLCHAIN_FILE=/home/sean/Code/toolchains/cmake-files/raspberry-pi/Toolchain-Raspberry-pi.cmake

我的交叉编译器cmake文件(Toolchain-Raspberry-pi.cmake):

Make Error at /usr/lib/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package):
  Found package configuration file:

    /usr/lib/cmake/boost_system-1.71.0/boost_system-config.cmake

  but it set boost_system_FOUND to FALSE so package "boost_system" is
  considered to be NOT FOUND.  Reason given by package:

  No suitable build variant has been found.

  The following variants have been tried and rejected:

  * libboost_system.so.1.71.0 (64 bit, need 32)

  * libboost_system.a (64 bit, need 32)

Call Stack (most recent call first):
  /usr/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
  /usr/share/cmake-3.15/Modules/FindBoost.cmake:443 (find_package)
  CMakeLists.txt:17 (find_package)


-- Configuring incomplete, errors occurred!

我确实从AUR安装了lib32-boost-libs及其在/ usr / lib32中,但它似乎并不在乎那些。

0 个答案:

没有答案