mirror of
https://github.com/superconvert/smart-os.git
synced 2024-11-23 02:30:02 +08:00
resovle xclient compile issue!
This commit is contained in:
parent
fd0919108f
commit
4bf9fc1dd6
40
mk_xorg.sh
40
mk_xorg.sh
@ -47,12 +47,14 @@ fi
|
|||||||
#
|
#
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
cd ${build_dir}
|
cd ${build_dir}
|
||||||
|
xserver_dir=${xorg_install}"/xclient"
|
||||||
|
xclient_dir=${xorg_install}"/xclient"
|
||||||
|
|
||||||
# 编译
|
# 编译
|
||||||
if [ ! -d "xorg_install" ]; then
|
if [ ! -d "xorg_install" ]; then
|
||||||
mkdir -pv xorg_install && cd ${XORG_SRC_DIR} && make distclean && ./autogensh
|
mkdir -pv xorg_install && cd ${XORG_SRC_DIR} && make distclean && ./autogensh
|
||||||
./configure --prefix=/usr
|
./configure ${CFGOPT}
|
||||||
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" -j8 DESTDIR=${xorg_install}"/server" && cd ..
|
CFLAGS="-L${glibc_install}/lib64 $CFLAGS" make -j8 && make install -j8 DESTDIR=${xserver_dir} && cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#--------------------------------------------
|
#--------------------------------------------
|
||||||
@ -60,6 +62,7 @@ fi
|
|||||||
# 编译 xclient
|
# 编译 xclient
|
||||||
#
|
#
|
||||||
#--------------------------------------------
|
#--------------------------------------------
|
||||||
|
export CFGOPT="--prefix=/usr --with-sysroot=${xorg_install}/xclient --with-build-sysroot=${xorg_install}/xclient"
|
||||||
export CFLAGS="-I${xorg_install}/xclient/usr/include"
|
export CFLAGS="-I${xorg_install}/xclient/usr/include"
|
||||||
export LDFLAGS="-L${xorg_install}/xclient/usr/lib"
|
export LDFLAGS="-L${xorg_install}/xclient/usr/lib"
|
||||||
export ACLOCAL="aclocal -I /usr/share/aclocal:${xorg_install}/xclient/usr/share/aclocal"
|
export ACLOCAL="aclocal -I /usr/share/aclocal:${xorg_install}/xclient/usr/share/aclocal"
|
||||||
@ -90,92 +93,91 @@ fi
|
|||||||
|
|
||||||
echo "${GREEN}build macros begin${NC}"
|
echo "${GREEN}build macros begin${NC}"
|
||||||
cd macros
|
cd macros
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build macros success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build macros success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build xcbproto begin${NC}"
|
echo "${GREEN}build xcbproto begin${NC}"
|
||||||
cd xcbproto
|
cd xcbproto
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build xcbproto success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build xcbproto success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build xorgproto begin${NC}"
|
echo "${GREEN}build xorgproto begin${NC}"
|
||||||
cd xorgproto
|
cd xorgproto
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build xorgproto success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build xorgproto success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libxau begin${NC}"
|
echo "${GREEN}build libxau begin${NC}"
|
||||||
cd libxau
|
cd libxau
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libxau success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libxau success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libxcb begin${NC}"
|
echo "${GREEN}build libxcb begin${NC}"
|
||||||
cd libxcb
|
cd libxcb
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libxcb success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libxcb success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libxtrans begin${NC}"
|
echo "${GREEN}build libxtrans begin${NC}"
|
||||||
|
|
||||||
cd libxtrans
|
cd libxtrans
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libxtrans success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libxtrans success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libx11 begin${NC}"
|
echo "${GREEN}build libx11 begin${NC}"
|
||||||
cd libx11
|
cd libx11
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libx11 success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libx11 success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libice begin${NC}"
|
echo "${GREEN}build libice begin${NC}"
|
||||||
|
|
||||||
cd libice
|
cd libice
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libice success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libice success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libsm begin${NC}"
|
echo "${GREEN}build libsm begin${NC}"
|
||||||
|
|
||||||
cd libsm
|
cd libsm
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libsm success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libsm success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libxt begin${NC}"
|
echo "${GREEN}build libxt begin${NC}"
|
||||||
|
|
||||||
cd libxt
|
cd libxt
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libxt success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libxt success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libxext begin${NC}"
|
echo "${GREEN}build libxext begin${NC}"
|
||||||
|
|
||||||
cd libxext
|
cd libxext
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libxext success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libxext success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libxmu begin${NC}"
|
echo "${GREEN}build libxmu begin${NC}"
|
||||||
|
|
||||||
cd libxmu
|
cd libxmu
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libxmu success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libxmu success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libxpm begin${NC}"
|
echo "${GREEN}build libxpm begin${NC}"
|
||||||
|
|
||||||
cd libxpm
|
cd libxpm
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libxpm success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libxpm success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libxaw begin${NC}"
|
echo "${GREEN}build libxaw begin${NC}"
|
||||||
|
|
||||||
cd libxaw
|
cd libxaw
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libxaw success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libxaw success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build libxdmcp begin${NC}"
|
echo "${GREEN}build libxdmcp begin${NC}"
|
||||||
|
|
||||||
cd libxdmcp
|
cd libxdmcp
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build libxdmcp success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build libxdmcp success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
echo "${GREEN}build xload begin${NC}"
|
echo "${GREEN}build xload begin${NC}"
|
||||||
|
|
||||||
cd xload
|
cd xload
|
||||||
./autogen.sh && ./configure --prefix=/usr && CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" make -j8 && make install -j8 DESTDIR=${xorg_install}"/xclient" && echo "${GREEN}build xload success${NC}"
|
./autogen.sh && ./configure ${CFGOPT} && make -j8 && make install -j8 DESTDIR=${xclient_dir} && echo "${GREEN}build xload success${NC}"
|
||||||
cd .. && sleep 1
|
cd .. && sleep 1
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user