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

Build报错 #1

Open
HAM02020 opened this issue Jan 2, 2024 · 30 comments
Open

Build报错 #1

HAM02020 opened this issue Jan 2, 2024 · 30 comments

Comments

@HAM02020
Copy link
Collaborator

HAM02020 commented Jan 2, 2024

控制台输出如下

> hvigor Finished ::PreBuildApp... after 1 ms 
> hvigor UP-TO-DATE :entry:default@PreBuild...  
> hvigor Finished :entry:default@GenerateMetadata... after 5 ms 
> hvigor Finished :entry:default@MergeProfile... after 1 ms 
> hvigor Finished :entry:default@GenerateLoaderJson... after 1 ms 
> hvigor Finished :entry:default@MakePackInfo... after 4 ms 
> hvigor Finished :entry:default@ProcessProfile... after 35 ms 
> hvigor Finished :entry:default@ProcessResource... after 1 ms 
> hvigor Finished :entry:default@CompileResource... after 333 ms 
> hvigor Finished :entry:default@CompileJS... after 1 ms 
> hvigor Finished :entry:default@BuildNativeWithCmake... after 394 ms 
> hvigor ERROR: ninja: Entering directory `/Users/sheng/code/eco/moonlight-harmonyos/entry/.cxx/default/default/arm64-v8a'
> hvigor ERROR: Failed :entry:default@BuildNativeWithNinja... 
> hvigor ERROR: Tools execution failed.
ninja: error: '/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/arm64-v8a/libohosffmpeg.z.so', needed by '/Users/sheng/code/eco/moonlight-harmonyos/entry/build/default/intermediates/cmake/default/obj/arm64-v8a/libentry.so', missing and no known rule to make it
	 Detail: Please check the message from tools.
> hvigor ERROR: BUILD FAILED in 468 ms 

Process finished with exit code -1
@likuai2010
Copy link
Owner

/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/arm64-v8a/libohosffmpeg.z.so 这个是三方库,需要交叉编译的, GitHub有50m文件大小限制, 还未上传

@HAM02020
Copy link
Collaborator Author

HAM02020 commented Jan 2, 2024 via email

@HAM02020
Copy link
Collaborator Author

HAM02020 commented Jan 2, 2024

好的,可以提供这个三方库的地址吗

@likuai2010
Copy link
Owner

@likuai2010
Copy link
Owner

项目里有 交叉编译脚本,可以参考一下

@HAM02020
Copy link
Collaborator Author

HAM02020 commented Jan 3, 2024

具体怎么编译呢,执行build_ffmpeg.sh吗

@likuai2010
Copy link
Owner

likuai2010 commented Jan 3, 2024 via email

@likuai2010
Copy link
Owner

likuai2010 commented Jan 3, 2024 via email

@likuai2010
Copy link
Owner

likuai2010 commented Jan 3, 2024 via email

@HAM02020
Copy link
Collaborator Author

HAM02020 commented Jan 4, 2024

好的,你说的需求我会尝试实现。我先把项目运行起来

@HAM02020
Copy link
Collaborator Author

HAM02020 commented Jan 4, 2024

我先简单说明一下项目情况, 目前还是demo阶段,没有ui见面,只有串流界面, 是软件解码(cpu,ffmpeg),硬解码,已实现需要真机调试(不着急). 目前harmonyos的坑还很多,缺少api, 比如键盘,手柄输入事件.这个要等到harmonyos next 才会有,app项目api版本是api9(harmonyos 4.0), 但是官方的模拟器和远程真机9很少,几乎有不了, 本地模拟器x86的运行不了的(ffmpeg的原因) 如果你有m1的macbook,那就可以运行, 如果没有,就退版本到8.0(不支持硬解码,去要注释代码),如果你想为本项目提供帮助,我这里有个需求你可以尝试一下: 用蓝牙api去连接蓝牙键盘,鼠标等hid设备.获取设备发来的数据,不需要解析, 经典蓝牙或者BLE都行. 你对harmonyos的蓝牙api不熟悉的话, 可以先尝试写一个ios 的demo, oc和swift 都可以. 谢谢合作!

________________________________ 发件人: HAM02020 @.> 发送时间: 2024年1月3日 7:10 收件人: likuai2010/moonlight-harmonyos @.> 抄送: likuai @.>; Comment @.> 主题: Re: [likuai2010/moonlight-harmonyos] Build报错 (Issue #1) 具体怎么编译呢,执行build_ffmpeg.sh吗 ― Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBJM77HRVPI2C6HDCQTYMT77HAVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUHEZTKNJWHE. You are receiving this because you commented.Message ID: @.***>

iOS中获取键盘、鼠标和手柄的输入可以分别通过GCKeyboard、GCMouse和GCController库中的回调获取。并没有涉及到蓝牙模块。请问我的理解是否有偏差

@likuai2010
Copy link
Owner

likuai2010 commented Jan 4, 2024 via email

@likuai2010
Copy link
Owner

likuai2010 commented Jan 4, 2024 via email

@HAM02020
Copy link
Collaborator Author

HAM02020 commented Jan 4, 2024

好的,我尝试使用iOS ble框架去读取https://www.bilibili.com/read/cv15067064/中提到的蓝牙服务和特征值,但是发现无法获取到。我猜测这些特征属于系统层管理,不对应用层暴露

@likuai2010
Copy link
Owner

likuai2010 commented Jan 4, 2024 via email

@HAM02020
Copy link
Collaborator Author

HAM02020 commented Jan 4, 2024

我连接的键盘是蓝牙5.0的,我尝试一下鸿蒙是否可以正常获取

@likuai2010
Copy link
Owner

likuai2010 commented Jan 19, 2024 via email

@HAM02020
Copy link
Collaborator Author

HAM02020 commented Jan 19, 2024 via email

@HAM02020
Copy link
Collaborator Author

令人兴奋的进度展示!现在还差外部设备的连接对吗?

最新进度 https://www.bilibili.com/video/BV1Qw411775p/ 获取 Outlook for iOShttps://aka.ms/o0ukef

________________________________ 发件人: HAM02020 @.> 发送时间: Thursday, January 4, 2024 2:21:51 PM 收件人: likuai2010/moonlight-harmonyos @.> 抄送: likuai @.>; Comment @.> 主题: Re: [likuai2010/moonlight-harmonyos] Build报错 (Issue #1) 我连接的键盘是蓝牙5.0的,我尝试一下鸿蒙是否可以正常获取 ― Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBKYZYADOPTQTT36OS3YMZC77AVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZWGQ2TGMZRHE. You are receiving this because you commented.Message ID: @.***>

@likuai2010
Copy link
Owner

likuai2010 commented Jan 19, 2024 via email

@HAM02020
Copy link
Collaborator Author

我这环境还是run不起来项目,也不知道怎么解决。模拟器是不是运行不了?我是m2的mac mini

 > hvigor UP-TO-DATE :entry:default@PreBuild...  
> hvigor UP-TO-DATE :entry:default@GenerateMetadata...  
> hvigor UP-TO-DATE :entry:default@MergeProfile...  
> hvigor UP-TO-DATE :entry:default@GenerateLoaderJson...  
> hvigor UP-TO-DATE :entry:default@MakePackInfo...  
> hvigor UP-TO-DATE :entry:default@ProcessProfile...  
> hvigor UP-TO-DATE :entry:default@ProcessResource...  
> hvigor UP-TO-DATE :entry:default@CompileResource...  
> hvigor UP-TO-DATE :entry:default@CompileArkTS...  
> hvigor Finished :entry:default@CompileJS... after 2 ms 
> hvigor Finished :entry:default@BuildNativeWithCmake... after 60 ms 
> hvigor ERROR: ninja: Entering directory `/Users/sheng/code/eco/moonlight-harmonyos/entry/.cxx/default/default/arm64-v8a'
[1/34] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SimpleStun.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SimpleStun.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SimpleStun.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SimpleStun.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SimpleStun.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/SimpleStun.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[2/34] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoDepacketizer.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoDepacketizer.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoDepacketizer.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoDepacketizer.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoDepacketizer.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/VideoDepacketizer.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[3/34] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/reedsolomon/rs.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/reedsolomon/rs.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/reedsolomon/rs.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/reedsolomon/rs.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/reedsolomon/rs.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon/rs.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[4/34] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RecorderCallbacks.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RecorderCallbacks.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RecorderCallbacks.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RecorderCallbacks.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RecorderCallbacks.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/RecorderCallbacks.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[5/34] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpAudioQueue.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpAudioQueue.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpAudioQueue.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpAudioQueue.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpAudioQueue.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/RtpAudioQueue.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[6/34] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpVideoQueue.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpVideoQueue.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpVideoQueue.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpVideoQueue.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpVideoQueue.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/RtpVideoQueue.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[7/34] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspConnection.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspConnection.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspConnection.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspConnection.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspConnection.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/RtspConnection.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[8/34] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SdpGenerator.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SdpGenerator.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SdpGenerator.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SdpGenerator.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SdpGenerator.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/SdpGenerator.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[9/34] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoStream.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoStream.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoStream.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoStream.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoStream.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/VideoStream.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[10/34] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspParser.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspParser.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspParser.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspParser.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspParser.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/RtspParser.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
ninja: build stopped: subcommand failed.
> hvigor ERROR: Failed :entry:default@BuildNativeWithNinja... 
> hvigor ERROR: Tools execution failed.

	 Detail: Please check the message from tools.
> hvigor ERROR: BUILD FAILED in 190 ms 

Process finished with exit code -1

@likuai2010
Copy link
Owner

likuai2010 commented Jan 19, 2024 via email

@HAM02020
Copy link
Collaborator Author

还是不行。
这是build-profile.json5的配置:

{
  "apiType": 'stageMode',
  "buildOption": {
    "externalNativeOptions": {
      "path": "./src/main/cpp/CMakeLists.txt",
      "arguments": "-Warn,-Wunused-command-line-argument",
      "cppFlags": "",
      "abiFilters": ["arm64-v8a"]
    },
//    "externalNativeOptions": {
//      "path": "./src/main/cpp/CMakeLists.txt",
//      "arguments": "",
//      "cppFlags": "",
//    }
  },
  "targets": [
    {
      "name": "default",
      "runtimeOS": "HarmonyOS"
    },
    {
      "name": "ohosTest",
    }
  ]
}

@likuai2010
Copy link
Owner

likuai2010 commented Jan 19, 2024 via email

@HAM02020
Copy link
Collaborator Author

/Users/sheng/nodejs/bin/node /Users/sheng/.hvigor/project_caches/a98242e8588b18f59bde12c73157a154/workspace/node_modules/@ohos/hvigor/bin/hvigor.js --mode module -p module=entry@default -p product=default -p debuggable=true assembleHap
> hvigor UP-TO-DATE :entry:default@PreBuild...  
> hvigor UP-TO-DATE :entry:default@GenerateMetadata...  
> hvigor UP-TO-DATE :entry:default@MergeProfile...  
> hvigor UP-TO-DATE :entry:default@GenerateLoaderJson...  
> hvigor UP-TO-DATE :entry:default@MakePackInfo...  
> hvigor UP-TO-DATE :entry:default@ProcessProfile...  
> hvigor UP-TO-DATE :entry:default@ProcessResource...  
> hvigor UP-TO-DATE :entry:default@CompileResource...  
> hvigor UP-TO-DATE :entry:default@CompileArkTS...  
> hvigor Finished :entry:default@CompileJS... after 2 ms 
> hvigor Finished :entry:default@BuildNativeWithCmake... after 405 ms 
> hvigor ERROR: ninja: Entering directory `/Users/sheng/code/eco/moonlight-harmonyos/entry/.cxx/default/default/arm64-v8a'
[1/44] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoDepacketizer.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoDepacketizer.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoDepacketizer.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoDepacketizer.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoDepacketizer.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/VideoDepacketizer.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[2/44] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpVideoQueue.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpVideoQueue.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpVideoQueue.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpVideoQueue.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpVideoQueue.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/RtpVideoQueue.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[3/44] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SdpGenerator.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SdpGenerator.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SdpGenerator.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SdpGenerator.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SdpGenerator.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/SdpGenerator.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[4/44] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoStream.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoStream.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoStream.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoStream.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/VideoStream.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/VideoStream.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[5/44] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspParser.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspParser.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspParser.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspParser.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspParser.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/RtspParser.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[6/44] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RecorderCallbacks.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RecorderCallbacks.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RecorderCallbacks.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RecorderCallbacks.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RecorderCallbacks.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/RecorderCallbacks.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[7/44] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpAudioQueue.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpAudioQueue.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpAudioQueue.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpAudioQueue.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtpAudioQueue.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/RtpAudioQueue.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[8/44] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SimpleStun.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SimpleStun.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SimpleStun.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SimpleStun.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/SimpleStun.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/SimpleStun.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[9/44] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/reedsolomon/rs.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/reedsolomon/rs.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/reedsolomon/rs.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/reedsolomon/rs.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/reedsolomon/rs.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon/rs.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
[10/44] Building C object moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspConnection.c.o
FAILED: moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspConnection.c.o 
/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm/bin/clang --target=aarch64-linux-ohos --gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm --sysroot=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/sysroot -DHAS_SOCKLEN_T -DLC_DEBUG -DOHOS_PLATFORM -Dmoonlight_common_c_EXPORTS -I/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/ffmpeg/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/curl/include -I/Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/reedsolomon -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/openssl/include -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src -isystem /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/enet/include -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security  -D__MUSL__ -O0 -g -fno-limit-debug-info  -fPIC   -Wall -Wextra -Wno-unused-parameter -Werror -std=gnu11 -MD -MT moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspConnection.c.o -MF moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspConnection.c.o.d -o moonlight-core/moonlight-common-c/CMakeFiles/moonlight-common-c.dir/src/RtspConnection.c.o   -c /Users/sheng/code/eco/moonlight-harmonyos/entry/src/main/cpp/moonlight-core/moonlight-common-c/src/RtspConnection.c
clang: error: argument unused during compilation: '--gcc-toolchain=/Users/sheng/Library/Huawei/Sdk/openharmony/9/native/llvm' [-Werror,-Wunused-command-line-argument]
ninja: build stopped: subcommand failed.
> hvigor ERROR: Failed :entry:default@BuildNativeWithNinja... 
> hvigor ERROR: Tools execution failed.

	 Detail: Please check the message from tools.
> hvigor ERROR: BUILD FAILED in 623 ms 

Process finished with exit code -1

@likuai2010
Copy link
Owner

likuai2010 commented Jan 19, 2024 via email

@HAM02020
Copy link
Collaborator Author

真就run不过去了 [捂脸]

@likuai2010
Copy link
Owner

likuai2010 commented Jan 19, 2024 via email

@HAM02020
Copy link
Collaborator Author

我的ide和运行环境可以吗
image

@likuai2010
Copy link
Owner

likuai2010 commented Jan 19, 2024 via email

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

2 participants