outline-apps
outline-apps copied to clipboard
[Bug]: Error while building client app for windows | undefined: core.LWIPStack
Application
Outline Client
Describe the bug
src\tun2socks\tunnel\tunnel.go:35:19: undefined: core.LWIPStack
src\tun2socks\tunnel\tunnel.go:59:57: undefined: core.LWIPStack
npm run action electron/build windows
> [email protected] action
> node src/build/run_action.mjs electron/build windows
/ __ \| | | |__ __| | |_ _| \ | | ____|
| | | | | | | | | | | | | | \| | |__
| | | | | | | | | | | | | | . ` | __|
| |__| | |__| | | | | |____ _| |_| |\ | |____
\____/ \____/ |_| |______|_____|_| \_|______|
=========================================================
© The Outline Authors, 2023
=========================================================
▶ action(electron/build):
Running [node '--trace-uncaught' 'D:\outline-apps\src\electron\build.action.mjs' 'windows']...
▶ action(www/build):
Running [node '--trace-uncaught' 'D:\outline-apps\src\www\build.action.mjs' 'windows']...
▶ action(www/build): 🎉 Success! (16540ms)
▶ action(tun2socks/build):
Running [node '--trace-uncaught' 'D:\outline-apps\src\tun2socks\build.action.mjs' 'windows']...
Running [go 'build' '-o' 'output/build/windows/tun2socks' 'github.com/Jigsaw-Code/outline-client/src/tun2socks/outline/electron']...
ERROR(spawn_stream): node --trace-uncaught D:\outline-apps\src\electron\build.action.mjs windows failed with exit code 1.}
Printing stderr:
WARNING: building "windows" in [DEBUG] mode. Do not publish this build!!
ERROR(spawn_stream): node --trace-uncaught D:\outline-apps\src\tun2socks\build.action.mjs windows failed with exit code 1.}
Printing stderr:
ERROR(spawn_stream): go build -o output/build/windows/tun2socks github.com/Jigsaw-Code/outline-client/src/tun2socks/outline/electron failed with exit code 1.}
Printing stderr:
# github.com/Jigsaw-Code/outline-client/src/tun2socks/tunnel
src\tun2socks\tunnel\tunnel.go:35:19: undefined: core.LWIPStack
src\tun2socks\tunnel\tunnel.go:59:57: undefined: core.LWIPStack
node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
# github.com/Jigsaw-Code/outline-client/src/tun2socks/tunnelsrc\tun2socks\tunnel\tunnel.go:35:19: undefined: core.LWIPStacksrc\tun2socks\tunnel\tunnel.go:59:57: undefined: core.LWIPStack
Thrown at:
at loadESM (node:internal/process/esm_loader:40:33)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.19.1
▶ action(tun2socks/build): ❌ Failed.
▶ action(electron/build): ❌ Failed.
Steps to reproduce
Run the following command: npm run action electron/build windows
windows 11
What did you expect to happen?
No response
What actually happened?
No response
Outline Version
1.10.1
What operation system are you using?
Windows
Operating System Version
Windows 11
Screenshots and Videos
Hi @I-amCoder , this seems to be a go
environment problem, please make sure the CC
, CXX
, CGO_ENABLED=1
are correctly set in go env
. Also, please ensure the C/C++ compilers referenced by CC
and CXX
are installed in the system (they should all be accessed via PATH
).
@I-amCoder did you manage to get this to work with @jyyi1's advice? Feel free to reopen this if you still need help.