loentar / ngrest

Fast and easy C++ RESTful WebServices framework
Apache License 2.0
465 stars 94 forks source link

Skipping Nginx module compilation: no Nginx source path provided #93

Closed JL2014 closed 1 year ago

JL2014 commented 1 year ago

Hi,

How to avoid the warning "Skipping Nginx module compilation: no Nginx source path provided" when use cmake ? At first sight, I can ignore it when not in "production" ? Is there a "development" define ?

cmake -DNGINX_PATH=.... "." ? ( as I can see in https://github.com/loentar/ngrest/wiki/Deploy-ngrest-under-Nginx )

If yes, could you confirm it is root Nginx path ? Nginx header path ? Nginx binary path ? other path ?

Greetings, JL.

loentar commented 1 year ago

Like mentioned it should be current directory after a set of commands:

mkdir ~/nginx-build && cd ~/nginx-build
cd nginx-*
NGINX_PATH=$PWD make -C ~/.ngrest/ngrest-build

so it would be ~/nginx-build/nginx-[NGINX_VERSION]

JL2014 commented 1 year ago

Hi @loentar,

Ok, i know this folder is used "only" for Nginx sources, I think documentation would indicate "nginx-sources" instead of "nginx-build".

Greetings, JL.