Open 8Observer8 opened 1 month ago
I have installed libuv-1.48.0
: https://github.com/libuv/libuv
# Client exec
add_executable(client client_ws.cc)
target_include_directories(client PUBLIC E:/libs/libuv-1.48.0-prefix/include)
target_link_directories(client PUBLIC E:/libs/libuv-1.48.0-prefix/lib)
target_link_libraries(client uWebSockets libuv)
# Server exec
#add_executable(server server_ws.cc)
#target_link_libraries(server uWebSockets)
cmake -G "MinGW Makefiles" --fresh -S . -B build -DCMAKE_INSTALL_PREFIX=E:\libs\uwebsockets-prefix -DZLIB_LIBRARY=E:/lib/zlib-1.3.1-prefix/lib/libzlibstatic.a -DZLIB_INCLUDE_DIR=E:/libs/zlib-1.3.1-prefix/include
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Qt/Tools/mingw1120_64/bin/gcc.exe - 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: C:/Qt/Tools/mingw1120_64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: E:/lib/zlib-1.3.1-prefix/lib/libzlibstatic.a (found version "1.3.1")
-- Configuring done (8.8s)
-- Generating done (0.1s)
-- Build files have been written to: E:/libs/cmake-uwebsockets-main/build
cmake --build build -j4
[ 7%] Building C object CMakeFiles/uSockets.dir/_deps/usockets_content-src/src/context.c.obj
[ 15%] Building C object CMakeFiles/uSockets.dir/_deps/usockets_content-src/src/bsd.c.obj
[ 23%] Building C object CMakeFiles/uSockets.dir/_deps/usockets_content-src/src/crypto/openssl.c.obj
[ 30%] Building C object CMakeFiles/uSockets.dir/_deps/usockets_content-src/src/eventing/epoll_kqueue.c.obj
[ 38%] Building C object CMakeFiles/uSockets.dir/_deps/usockets_content-src/src/eventing/gcd.c.obj
In file included from E:\libs\cmake-uwebsockets-main\build\_deps\usockets_content-src\src\internal/internal.h:35,
from E:\libs\cmake-uwebsockets-main\build\_deps\usockets_content-src\src\bsd.c:23:
E:/libs/cmake-uwebsockets-main/build/_deps/usockets_content-src/src/internal/eventing/libuv.h:23:10: fatal error: uv.h: No such file or directory
23 | #include <uv.h>In file included from | E:/libs/cmake-uwebsockets-main/build/_deps/usockets_content-src/src/internal/internal.h:35^~~~~~,
from cE:\libs\cmake-uwebsockets-main\build\_deps\usockets_content-src\src\eventing\epoll_kqueue.c:19om:
p lE:/libs/cmake-uwebsockets-main/build/_deps/usockets_content-src/src/internal/eventing/libuv.h:23:10:at i nfatal error: tuv.h: No such file or directory
23 | #include e m<uv.h>in
| a e^~~~~~d.
coIn file included from m iE:\libs\cmake-uwebsockets-main\build\_deps\usockets_content-src\src\internal/internal.h:35la,
from t oE:\libs\cmake-uwebsockets-main\build\_deps\usockets_content-src\src\context.c:19n :
t rE:/libs/cmake-uwebsockets-main/build/_deps/usockets_content-src/src/internal/eventing/libuv.h:23:10:mi n tfatal error: eduv.h: No such file or directory
23 | #include . <uv.h>
| ^~~~~~
compilation terminated.
mingw32-make.exe[2]: *** [CMakeFiles\uSockets.dir\build.make:76: CMakeFiles/uSockets.dir/_deps/usockets_content-src/src/bsd.c.obj] Error 1
mingw32-make.exe[2]: *** Waiting for unfinished jobs....
mingw32-make.exe[2]: *** [CMakeFiles\uSockets.dir\build.make:121: CMakeFiles/uSockets.dir/_deps/usockets_content-src/src/eventing/epoll_kqueue.c.obj] Error 1
mingw32-make.exe[2]: *** [CMakeFiles\uSockets.dir\build.make:91: CMakeFiles/uSockets.dir/_deps/usockets_content-src/src/context.c.obj] Error 1
In file included from E:/libs/cmake-uwebsockets-main/build/_deps/usockets_content-src/src/internal/internal.h:35,
from E:\libs\cmake-uwebsockets-main\build\_deps\usockets_content-src\src\eventing\gcd.c:19:
E:/libs/cmake-uwebsockets-main/build/_deps/usockets_content-src/src/internal/eventing/libuv.h:23:10: fatal error: uv.h: No such file or directory
23 | #include <uv.h>
| ^~~~~~
compilation terminated.
mingw32-make.exe[2]: *** [CMakeFiles\uSockets.dir\build.make:136: CMakeFiles/uSockets.dir/_deps/usockets_content-src/src/eventing/gcd.c.obj] Error 1
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:84: CMakeFiles/uSockets.dir/all] Error 2
mingw32-make.exe: *** [Makefile:90: all] Error 2
target_include_directories(uWebSockets INTERFACE E:/libs/libuv-1.48.0-prefix/include)
target_link_directories(uWebSockets INTERFACE E:/libs/libuv-1.48.0-prefix/lib)
The same errors as above.
MinGW-w64 GCC 11.2 CMake 3.27