No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
liblua-cmake @ 4b46f68
libssl-cmake @ c7e9b68
libz-cmake @ d007d2b
modules
nginx-upload-module @ 4ae65c6
.gitignore
.gitmodules
CMakeLists.txt
README.md
libsha-0.8.2b.tar.gz
nginx-1.2.8.patch
nginx-patch-with-device.sh
nginx-remote-check.sh

README.md

nginx-cmake

Normal Usage:

$ git clone --recursive https://github.com/changyy/nginx-cmake.git
$ cd nginx-cmake
$ mkdir build
$ cd build
$ cmake ..
$ make
$ ./nginx-out/sbin/nginx -p ./nginx-out/

Cross Compiler (Testing on ARM Device):

$ git clone --recursive https://github.com/changyy/nginx-cmake.git
$ cd nginx-cmake
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/toolchain-arm6.cmake
...
CMake Error at CMakeLists.txt:14 (message):
  Please use -DREMOTE_DEVICE_SSH_LOGIN='account@remote_device_ip' again (need
  sshd & scp service)
...
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/toolchain-arm6.cmake -DREMOTE_DEVICE_SSH_LOGIN='root@192.168.168.168'
$ make
$ scp -r ./nginx-out root@192.168.168.168:/tmp
$ ssh root@192.168.168.168 "/tmp/nginx-out/sbin/nginx -p /tmp/nginx-out/"
(need to check the shared library used by sbin/nginx: readelf -a sbin/nginx | grep Shared)

Thanks for this sharing: Ali's blog: Cross-compile nginx 1.3.6 & YangAcer's help.