Skip to content

android version compilation has failed. #548

Closed
@cfc4n

Description

@cfc4n

Describe the bug

CGO_ENABLED=1 CGO_CFLAGS='-O2 -g -gdwarf-4 -I/home/cfc4n/project/ecapture/lib/libpcap/' CGO_LDFLAGS='-O2 -g -L/home/cfc4n/project/ecapture/lib/libpcap/ -lpcap -static' GOOS=linux GOARCH=arm64 CC=gcc go build -tags androidgki -ldflags "-w -s -X 'github.com/gojue/ecapture/cli/cmd.GitVersion=androidgki_arm64:0.7.7-20240303-bfb4a8c:aarch64' -linkmode=external -extldflags -static " -o bin/ecapture
file bin/ecapture
# github.com/gojue/ecapture/cli/http
cli/http/server.go:93:27: undefined: config.MysqldConfig
cli/http/server.go:103:27: undefined: config.PostgresConfig
bin/ecapture: cannot open `bin/ecapture' (No such file or directory)
Sun May 19 13:16:50 UTC 2024

To Reproduce
Steps to reproduce the behavior:

  1. checkout v0.8.1
  2. ANDROID=1 make

Expected behavior
Compilation successful

Linux Server/Android (please complete the following information):

  • Env: [run make env to get the environment variables]
  • OS: Ubuntu 22.04
  • Arch: arm_aarch64
  • Kernel Version: 5.10
  • Version: 0.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions