Commit 81e6f313 by 程裕兵

Initial commit

parent 1dad0aea
......@@ -11,25 +11,23 @@ fi
HOST_DIR="$(cd "$(dirname "$0")" && pwd)"
# Compile wrapper binary
if [ ! -x "$HOST_DIR/run_host" ]; then
echo "Compiling native host wrapper..."
if ! command -v gcc &>/dev/null; then
echo ""
echo "========================================"
echo "ERROR: gcc 未安装"
echo "请先安装 Xcode Command Line Tools:"
echo " xcode-select --install"
echo "========================================"
echo ""
exit 1
fi
gcc -o "$HOST_DIR/run_host" "$HOST_DIR/runner.c" || {
echo "编译失败,请确认 gcc 可用"
exit 1
}
echo " 编译完成: $HOST_DIR/run_host"
# Always compile wrapper binary (ensures correct architecture for this machine)
echo "Compiling native host wrapper..."
if ! command -v gcc &>/dev/null; then
echo ""
echo "========================================"
echo "ERROR: gcc 未安装"
echo "请先安装 Xcode Command Line Tools:"
echo " xcode-select --install"
echo "========================================"
echo ""
exit 1
fi
gcc -o "$HOST_DIR/run_host" "$HOST_DIR/runner.c" || {
echo "编译失败,请确认 gcc 可用"
exit 1
}
echo " 编译完成 ($(uname -m)): $HOST_DIR/run_host"
# Install manifest to all known Chromium browser directories
INSTALLED=0
......
========================================
Traceback (most recent call last):
File "/Users/chengyubing/Documents/projects/hzjj/tts-ranking/server/run_host.py", line 12, in <module>
main()
File "/Users/chengyubing/Documents/projects/hzjj/tts-ranking/server/native_host.py", line 81, in main
print("[host] Ready, waiting for messages...", file=sys.stderr)
BrokenPipeError: [Errno 32] Broken pipe
ready|Votes: 21, Skips: 9|10:50:39
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment