难搞,大佬能帮帮忙看看么
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/CMakeToolchainFileMingw32.cmake –build ./ ../ — The C compiler identification is GNU 4.9.3 — The CXX compiler identification is GNU 4.9.3 — Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc– Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc — works — Detecting C compiler ABI info — Detecting C compiler ABI info – done — Detecting C compile features — Detecting C compile features – done — Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++ — Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++ — works — Detecting CXX compiler ABI info — Detecting CXX compiler ABI info – done — Detecting CXX compile features — Detecting CXX compile features – done — Configuring done — Generating done — Build files have been written to: /root/n2n/build
In file included from /root/n2n/win32/wintap.c:5:0: /root/n2n/win32/../n2n.h:64:19: fatal error: netdb.h: No such file or directory #include
build git:(master) ✗ cat ../cmake/CMakeToolchainFileMingw32.cmake # the name of the target operating system SET(CMAKE_SYSTEM_NAME Windows) # which compilers to use for C and C++ #SET(CMAKE_C_COMPILER i686-mingw32-gcc) #SET(CMAKE_CXX_COMPILER i686-mingw32-g++) SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres) # here is the target environment located SET(CMAKE_FIND_ROOT_PATH ${HOME}/usr/x86_64-w64-mingw32/bin) # adjust the default behaviour of the FIND_XXX() commands: # search headers and libraries in the target environment, search # programs in the host environment #set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) #set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) #set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)