goahead交叉编译调试
选择嵌入式交叉编译工具 /usr/local/arm-2014.05/bin/arm-none-linux-gnueabi-gcc
azan@ubuntu:~/nwjzq/nwddu/goahead-5.1.1$ make CC=/usr/local/arm-2014.05/bin/arm-none-linux-gnueabi-gcc ARCH=arm
make --no-print-directory -f projects/goahead-linux-default.mk all
[Info] Use make SHOW=1 to trace executed commands.
[Warning] Make flags have changed since the last build
[Warning] Previous build command: s --no-print-directory -- CC=arm-none-linux-gnueabi-gcc ARCH=arm
[Compile] build/linux-arm-default/obj/mbedtls.o
[Link] build/linux-arm-default/bin/libmbedtls.a
[Copy] build/linux-arm-default/inc/goahead.h
[Compile] build/linux-arm-default/obj/goahead-mbedtls.o
[Link] build/linux-arm-default/bin/libgoahead-mbedtls.a
[Copy] build/linux-arm-default/inc/js.h
[Compile] build/linux-arm-default/obj/action.o
[Compile] build/linux-arm-default/obj/alloc.o
[Compile] build/linux-arm-default/obj/auth.o
[Compile] build/linux-arm-default/obj/cgi.o
[Compile] build/linux-arm-default/obj/crypt.o
[Compile] build/linux-arm-default/obj/file.o
[Compile] build/linux-arm-default/obj/fs.o
[Compile] build/linux-arm-default/obj/http.o
[Compile] build/linux-arm-default/obj/js.o
[Compile] build/linux-arm-default/obj/jst.o
[Compile] build/linux-arm-default/obj/options.o
[Compile] build/linux-arm-default/obj/osdep.o
[Compile] build/linux-arm-default/obj/rom.o
[Compile] build/linux-arm-default/obj/route.o
[Compile] build/linux-arm-default/obj/runtime.o
[Compile] build/linux-arm-default/obj/socket.o
[Compile] build/linux-arm-default/obj/time.o
[Compile] build/linux-arm-default/obj/upload.o
[Link] build/linux-arm-default/bin/libgo.so
[Copy] build/linux-arm-default/bin
[Compile] build/linux-arm-default/obj/goahead.o
[Link] build/linux-arm-default/bin/goahead
[Compile] build/linux-arm-default/obj/test.o
[Link] build/linux-arm-default/bin/goahead-test
[Compile] build/linux-arm-default/obj/gopass.o
[Link] build/linux-arm-default/bin/gopass
You can now install via "sudo make -- ARCH=arm CC=/usr/local/arm-2014.05/bin/arm-none-linux-gnueabi-gcc install" or run GoAhead via: "sudo make run"
To run locally, put linux-arm-default/bin in your path
azan@ubuntu:~/nwjzq/nwddu/goahead-5.1.1$ cd build
azan@ubuntu:~/nwjzq/nwddu/goahead-5.1.1/build$ ls
linux-arm-default
copy auth.txt rote.txt 到同个目录下,新建web文件夹保存网页
azan@ubuntu:~/nwjzq/nwddu/goahead-5.1.1/build/linux-arm-default/bin$ cp ../../../src/auth.txt ./
azan@ubuntu:~/nwjzq/nwddu/goahead-5.1.1/build/linux-arm-default/bin$ cp ../../../src/route.txt ./
azan@ubuntu:~/nwjzq/nwddu/goahead-5.1.1/build/linux-arm-default/bin$ mkdir myweb
azan@ubuntu:~/nwjzq/nwddu/goahead-5.1.1/build/linux-arm-default/bin$ ls
auth.txt ca.crt ca.key ec.crt ec.key goahead goahead-test gopass libgoahead-mbedtls.a libgo.so libmbedtls.a myweb roots.crt route.txt self.crt self.key test.crt test.key
azan@ubuntu:~/nwjzq/nwddu/goahead-5.1.1/build/linux-arm-default/bin$ cp ../../../src/web/favicon.ico ./myweb/
azan@ubuntu:~/nwjzq/nwddu/goahead-5.1.1/build/linux-arm-default/bin$ cp ../../../src/web/mydex.html ./myweb/
网络挂载运行
[root@buildroot ~]#mount -t nfs -o nolock 192.168.100.150://home/vmuser/nwjzq/nwddu/goahead-5.1.1/build/linux-arm-default/bin /root/app
[root@buildroot ~]#cd /root/app
[root@buildroot ~/app]#
[root@buildroot ~/app]#
[root@buildroot ~/app]#ls
ca.crt ec.crt goahead gopass libgoahead-mbedtls.a roots.crt self.key test.key
ca.key ec.key goahead-test libgo.so libmbedtls.a self.crt test.crt
[root@buildroot ~/app]#./goahead -v ./myweb/
goahead: 1: This system does not have IPv6 support
goahead: 2: Configuration for Embedthis GoAhead Community Edition
goahead: 2: ---------------------------------------------
goahead: 2: Version: 5.1.1
goahead: 2: BuildType: Debug
goahead: 2: CPU: arm
goahead: 2: OS: linux
goahead: 2: Host: 127.0.1.1
goahead: 2: Directory: /root/app
goahead: 2: Documents: ./myweb/
goahead: 2: Configure: me -d -q -platform linux-x86-default -configure . -gen make
goahead: 2: ---------------------------------------------
goahead: 2: Started http://*:80
goahead: 2: Started https://*:443
输入https://192.168.100.151:443/mydex.html
跳出网页提示 OK azan! The server is up and running.
至此,在972平台上goahead跑通。