Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android version compilation has failed. #548

Closed
cfc4n opened this issue May 19, 2024 · 1 comment
Closed

android version compilation has failed. #548

cfc4n opened this issue May 19, 2024 · 1 comment

Comments

@cfc4n
Copy link
Member

cfc4n commented May 19, 2024

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
@cfc4n
Copy link
Member Author

cfc4n commented May 19, 2024

fixed #547

@cfc4n cfc4n closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant