下载包含boost包的代码 Compressed TAR Archive, Includes Boost Headers
默认已经编译完openssl库
默认已经编译完ncurse库
编译x86版本
1 2 3 4 5 6 7 8
#解压mysql tar xvf mysql-boost-5.7.32.tar.gz cd mysql-5.7.32 mkdir build cd build cmake .. -DWITH_BOOST=/home/fulong/linux/mysql-5.7.32/boost/boost_1_59_0/ # 最好使用单线程编译,因为可能内存不够导致编译超时,编译不通过 make
编译arm版本
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#解压mysql tar xvf mysql-boost-5.7.32.tar.gz -C mysql-5.7.32.arm cd mysql-5.7.32.arm mkdir build cd build cmake .. \ -DWITH_BOOST=/home/fulong/linux/mysql-5.7.32/boost/boost_1_59_0/ \ -DCMAKE_C_COMPILER=/home/fulong/Public/gcc-x86/bin/arm-linux-gnueabihf-gcc \ -DCMAKE_CXX_COMPILER=/home/fulong/Public/gcc-x86/bin/arm-linux-gnueabihf-g++ \ -DWITH_SSL=/home/fulong/linux/rootfs4lora_gateway/usr \ -DWITH_LIBEVENT=bundled \ -DCURSES_INCLUDE_PATH=/home/fulong/linux/rootfs4lora_gateway/usr/include \ -DCURSES_LIBRARY=/home/fulong/linux/rootfs4lora_gateway/usr/lib/libncurses.so \ -DCMAKE_INSTALL_PREFIX=/home/fulong/linux/rootfs4lora_gateway/usr # 最好使用单线程编译,因为可能内存不够导致编译超时,编译不通过 make make install
错误汇总
1.出现/lib/ld-linux-armhf.so.3: No such file or directory
--- a/mysql-5.7.32/storage/innobase/include/os0atomic.ic +++ b/mysql-5.7.32.arm/storage/innobase/include/os0atomic.ic @@ -143,7 +143,7 @@ os_atomic_val_compare_and_swap( static_cast<lint>(old_val)))); } -#elif defined(HAVE_IB_GCC_ATOMIC_COMPARE_EXCHANGE) +#elif defined(HAVE_ATOMIC_BUILTINS) /** Do an atomic test and set. @param[in,out] ptr Memory location to set