appweb-4.4-0はARMに移植されます。
2000 ワード
からhttp://appwebserver.org/downloads/appweb/download.ejs ソースコードを取得
projectディレクトリからapweb-linux-static.mkをコピーしてapweb-linux-arm-static.mkと名づけます。
appweb-linux-static-bit.hをコピーしてapweb-linux-arm-static-bit.hと名づけました。
appweb-linux-arm-static-bit.hで胫define BIT_を遮断します。HASSYNC 1が現れます。
appweb-4.4-0/src/deps/mpr/mprLib.cc:3819:undefined reference to`u_usync_ロックtest_and_set4
appweb-linux-arm-static.mkファイルを修正します。
make-f project/apweb-linux-arm-static.mkコンパイルで生成したファイルはlinux-arm-staticディレクトリに保存されます。
修正後の完全コードはhttp://download.csdn.net/detail/lqrensn/5597103ダウンロード
projectディレクトリからapweb-linux-static.mkをコピーしてapweb-linux-arm-static.mkと名づけます。
appweb-linux-static-bit.hをコピーしてapweb-linux-arm-static-bit.hと名づけました。
appweb-linux-arm-static-bit.hで胫define BIT_を遮断します。HASSYNC 1が現れます。
appweb-4.4-0/src/deps/mpr/mprLib.cc:3819:undefined reference to`u_usync_ロックtest_and_set4
appweb-linux-arm-static.mkファイルを修正します。
ARCH := arm
CC := arm-linux-gcc
LD := arm-linux-ld
prep:
@echo " [Info] Use "make SHOW=1" to trace executed commands."
@if [ "$(CONFIG)" = "" ] ; then echo WARNING: CONFIG not set ; exit 255 ; fi
@if [ "$(BIT_APP_PREFIX)" = "" ] ; then echo WARNING: BIT_APP_PREFIX not set ; exit 255 ; fi
@[ ! -x $(CONFIG)/bin ] && mkdir -p $(CONFIG)/bin; true
@[ ! -x $(CONFIG)/inc ] && mkdir -p $(CONFIG)/inc; true
@[ ! -x $(CONFIG)/obj ] && mkdir -p $(CONFIG)/obj; true
@[ ! -f $(CONFIG)/inc/bitos.h ] && cp src/bitos.h $(CONFIG)/inc/bitos.h ; true
@if ! diff $(CONFIG)/inc/bitos.h src/bitos.h >/dev/null ; then\
cp src/bitos.h $(CONFIG)/inc/bitos.h ; \
fi; true
@[ ! -f $(CONFIG)/inc/bit.h ] && cp projects/appweb-linux-arm-static-bit.h $(CONFIG)/inc/bit.h ; true
@if ! diff $(CONFIG)/inc/bit.h projects/appweb-linux-arm-static-bit.h >/dev/null ; then\
cp projects/appweb-linux-arm-static-bit.h $(CONFIG)/inc/bit.h ; \
fi; true
@if [ -f "$(CONFIG)/.makeflags" ] ; then \
if [ "$(MAKEFLAGS)" != " ` cat $(CONFIG)/.makeflags`" ] ; then \
echo " [Warning] Make flags have changed since the last build: "`cat $(CONFIG)/.makeflags`"" ; \
fi ; \
fi
@echo $(MAKEFLAGS) >$(CONFIG)/.makeflags
修正後、実行:make-f project/apweb-linux-arm-static.mkコンパイルで生成したファイルはlinux-arm-staticディレクトリに保存されます。
修正後の完全コードはhttp://download.csdn.net/detail/lqrensn/5597103ダウンロード