linux编译n2n v2,CentOS下交叉编译Windows N2N服务端及客户端

难搞,大佬能帮帮忙看看么

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)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值