furuihai 发表于 2017-12-29 18:20:38

mstar交叉编译工具编译bluez5.44及相关依赖

bluez每个版本依赖的工具包不一样,编译配置也有差别,以下配置可以编译过,离能用还很远,记录以下,供参考,O(∩_∩)O哈哈~
cd zlib-1.2.8
CC="mips-linux-gnu-gcc -EL" ./configure --prefix=/usr/local/bluez-5.44
make
make install




cd libffi-3.0.13
./configure--host=mips-linux --prefix=/usr/local/bluez-5.44 CC="mips-linux-gnu-gcc -EL -I/usr/local/bluez-5.44/include -L/usr/local/bluez-5.44/lib"


o32.S中的
      .section      .eh_frame,"aw",@progbits
      改成
      .section    .note.GNU-stack,"",@progbits
make
make install




cd glib-2.40.0
./configure --prefix=/usr/local/bluez-5.44 --host=mips-linux CC="mips-linux-gnu-gcc -EL"PKG_CONFIG_PATH=/usr/local/bluez-5.44/lib/pkgconfig glib_cv_stack_grows=no glib_cv_uscore=yes ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes
make
make install




cd expat-2.1.0
./configure --prefix=/usr/local/bluez-5.44 --host=mips-linux CC="mips-linux-gnu-gcc -EL"
make
make install




cd dbus-1.9.4
./configure --prefix=/usr/local/bluez-5.44 --host=mips-linux --with-x=no --disable-tests --enable-abstract-sockets CC="mips-linux-gnu-gcc -EL" CFLAGS=-I/usr/local/bluez-5.44/include LDFLAGS=-L/usr/local/bluez-5.44/lib
make
make install




cd libical-1.0
apt-get install autoconf automake libtool
./bootstrap
./configure --prefix=/usr/local/bluez-5.44 --host=mips-linux CC="mips-linux-gnu-gcc -EL"
make
make install




cd ncurses-5.9
./configure --prefix=/usr/local/bluez-5.44 --host=mips-linux CC="mips-linux-gnu-gcc -EL" --with-shared
make
make install


cd readline-6.3
./configure --prefix=/usr/local/bluez-5.44 --host=mips-linux CC="mips-linux-gnu-gcc -EL" bash_cv_wcwidth_broken=yes
make
make install


cd bluez-5.44
export PKG_CONFIG_LIBDIR=/usr/local/bluez-5.44/lib/pkgconfig


./configure --exec_prefix=/usr/local/bluez-5.44 --prefix=/usr/local/bluez-5.44 --host=mips-linux CC="mips-linux-gnu-gcc -EL" PKG_CONFIG_PATH=/usr/local/bluez-5.44/lib/pkgconfig CFLAGS="-I/usr/local/bluez-5.44/include -I/usr/local/bluez-5.44/include/glib-2.0 -I/usr/local/bluez-5.44/include/dbus-1.0"
LDFLAGS="-lncurses-lreadline -ldbus-1 -lglib-2.0 -lical -L/usr/local/bluez-5.44/lib -L/usr/local/bluez-5.44/lib" DBUS_CFLAGS="-I/usr/local/bluez-5.44/lib/dbus-1.0/include" DBUS_LIBS="-L/usr/local/bluez-5.44/lib" GLIB_CFLAGS="-I/usr/local/bluez-5.44/lib/glib-2.0/include" GLIB_LIBS="-L/usr/local/bluez-5.44/lib"ICAL_CFLAGS="-I/usr/local/bluez-5.44/include" ICAL_LIBS="-L/usr/local/bluez-5.44/lib"--disable-systemd --enable-tools --disable-udev --disable-cups --disable-obex --enable-library --disable-android --sysconfdir=/etc --localstatedir=/var --enable-experimental --with-systemdsystemunitdir=/lib/systemd/system --with-systemduserunitdir=/usr/lib/system --with-dbusconfdir=/usr/local/bluez-5.44/etc/dbus-1/system.d
make
make install

页: [1]
查看完整版本: mstar交叉编译工具编译bluez5.44及相关依赖