I'm trying to build the example on Arch Linux.
$ uname -a
Linux nadja 5.8.3-arch1-1 #1 SMP PREEMPT Fri, 21 Aug 2020 16:54:16 +0000 x86_64 GNU/Linux
$ cmake --version
cmake version 3.18.2
$ make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ git clone --recursive https://github.com/chmorgan/libesphttpd_linux_example.git
$ cd libesphttpd_linux_example
$ mkdir build
$ cd build
$ cmake ../
$ make
Scanning dependencies of target tests
[ 4%] Creating directories for 'tests'
[ 8%] No download step for 'tests'
[ 12%] No update step for 'tests'
[ 16%] No patch step for 'tests'
[ 20%] Performing configure step for 'tests'
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/libesphttpd_linux_example/build/tests-prefix/src/tests-build
[ 25%] Performing build step for 'tests'
[ 29%] Performing install step for 'tests'
Install the project...
-- Install configuration: ""
-- Installing: /tmp/libesphttpd_linux_example/build/install/bin/test_post.sh
-- Installing: /tmp/libesphttpd_linux_example/build/install/bin/test_too_long_url.sh
[ 33%] Completed 'tests'
[ 33%] Built target tests
Scanning dependencies of target httpd
[ 37%] Creating directories for 'httpd'
[ 41%] No download step for 'httpd'
[ 45%] No update step for 'httpd'
[ 50%] No patch step for 'httpd'
[ 54%] Performing configure step for 'httpd'
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cacert.der
-- /tmp/libesphttpd_linux_example/build/httpd-prefix/src/httpd-build/cacert.der
-- prvtkey.der
-- /tmp/libesphttpd_linux_example/build/httpd-prefix/src/httpd-build/prvtkey.der
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1g")
-- Using OpenSSL 1.1.1g
-- rt found /usr/lib/librt.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
Found library ESPHTTPD_LIBRARY-NOTFOUND
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ESPHTTPD_LIBRARY
linked by target "httpd" in directory /tmp/libesphttpd_linux_example/httpd
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
make[2]: *** [CMakeFiles/httpd.dir/build.make:125: httpd-prefix/src/httpd-stamp/httpd-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:126: CMakeFiles/httpd.dir/all] Error 2
make: *** [Makefile:114: all] Error 2