nadjieb / cpp-mjpeg-streamer

C++ MJPEG over HTTP Library
MIT License
132 stars 36 forks source link

Build failed in external directory #7

Closed alexkutsan closed 3 years ago

alexkutsan commented 3 years ago

Steps:

developer@alex-WorkStation:~/build$ cmake ../cpp-mjpeg-streamer/
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include 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  
-- Using the single-header code from /home/developer/cpp-mjpeg-streamer/single_include/
-- Configuring done
-- Generating done
-- Build files have been written to: /home/developer/build
developer@alex-WorkStation:~/build$ make 
Scanning dependencies of target doctest_main
[ 14%] Building CXX object test/CMakeFiles/doctest_main.dir/src/unit.cpp.o
[ 14%] Built target doctest_main
Scanning dependencies of target test-streamer
[ 28%] Building CXX object test/CMakeFiles/test-streamer.dir/src/unit-streamer.cpp.o
[ 42%] Linking CXX executable test-streamer
[ 42%] Built target test-streamer
Scanning dependencies of target test-http-message
[ 57%] Building CXX object test/CMakeFiles/test-http-message.dir/src/unit-http-message.cpp.o
/home/developer/cpp-mjpeg-streamer/test/src/unit-http-message.cpp:3:10: fatal error: nadjieb/detail/http_message.hpp: No such file or directory
    3 | #include <nadjieb/detail/http_message.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [test/CMakeFiles/test-http-message.dir/build.make:63: test/CMakeFiles/test-http-message.dir/src/unit-http-message.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1043: test/CMakeFiles/test-http-message.dir/all] Error 2
make: *** [Makefile:141: all] Error 2