cinit / udpfwd

Cloudflare-WARP WireGuard Relay
8 stars 3 forks source link

CMake build error #1

Open mitch1887 opened 10 months ago

mitch1887 commented 10 months ago

I tried to build the application on Linux and got this error:

CMake Error at CMakeLists.txt:13 (add_subdirectory):
  The source directory

    /home/.../udpfwd/libs/oneTBB

  does not contain a CMakeLists.txt file.

CMake Error at CMakeLists.txt:33 (add_subdirectory):
  The source directory

    /home/.../udpfwd/libs/fmt

  does not contain a CMakeLists.txt file.

CMake Error at CMakeLists.txt:35 (target_compile_definitions):
  Cannot specify compile definitions for target "fmt-header-only" which is
  not built by this project.
cinit commented 10 months ago

Hi @mitch1887 ,

This project requires git submodules.

[submodule "libs/fmt"]
    path = libs/fmt
    url = https://github.com/fmtlib/fmt

Please run git submodule update --init --recursive before running cmake. There are also some breaking changes recently. Please checkout 77aea7e6c6603d642ef8501cf185cde2292a9261 before running cmake.

mitch1887 commented 10 months ago

I got another error while building

CMake Error at CMakeLists.txt:37 (add_executable):
  Cannot find source file:

    src/veth/VEtherForward.cc

CMake Error at CMakeLists.txt:37 (add_executable):
  No SOURCES given to target: udpfwd

CMake Generate step failed.  Build files cannot be regenerated correctly.
cinit commented 10 months ago

I got another error while building

CMake Error at CMakeLists.txt:37 (add_executable):
  Cannot find source file:

    src/veth/VEtherForward.cc

CMake Error at CMakeLists.txt:37 (add_executable):
  No SOURCES given to target: udpfwd

CMake Generate step failed.  Build files cannot be regenerated correctly.

Please checkout 77aea7e6c6603d642ef8501cf185cde2292a9261. This file should not be there at that time.

mitch1887 commented 10 months ago

Could you provide some pre-compiled binaries? I keep running into build errors

cinit commented 10 months ago

@mitch1887 Which architecture do you want, x86_64 or aarch64?

mitch1887 commented 10 months ago

@mitch1887 Which architecture do you want, x86_64 or aarch64?

x86_64

cinit commented 10 months ago

@mitch1887 udpfwd_x86_64.zip

keta1 commented 10 months ago

how to use? unable to run on FreeBSD