likuai2010 / moonlight-harmonyos

MIT License
34 stars 2 forks source link

Build报错 #1

Open HAM02020 opened 9 months ago

HAM02020 commented 9 months ago

控制台输出如下

> 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 commented 9 months ago

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

HAM02020 commented 9 months ago

你好!我已收到你的邮件。谢谢!

HAM02020 commented 9 months ago

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

likuai2010 commented 9 months ago

https://gitee.com/openharmony/third_party_ffmpeg

likuai2010 commented 9 months ago

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

HAM02020 commented 9 months ago

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

likuai2010 commented 9 months ago

把它放入项目根目录, 执行 build_ffmpeg.sh arm64 目前支持arm64, x86的不支持


发件人: 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 GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1874935569, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBJM77HRVPI2C6HDCQTYMT77HAVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUHEZTKNJWHE. You are receiving this because you commented.Message ID: @.***>

likuai2010 commented 9 months ago

[cid:bf4d07f1-6b30-4006-a067-8d37a49305a3]libohosffmpeg.z.sohttps://1drv.ms/u/s!ArVTELQaSTnvkZJPG0bml8iWpk1P9Q 这是编译好的


发件人: 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 GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1874935569, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBJM77HRVPI2C6HDCQTYMT77HAVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUHEZTKNJWHE. You are receiving this because you commented.Message ID: @.***>

likuai2010 commented 9 months ago

我先简单说明一下项目情况, 目前还是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 GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1874935569, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBJM77HRVPI2C6HDCQTYMT77HAVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUHEZTKNJWHE. You are receiving this because you commented.Message ID: @.***>

HAM02020 commented 9 months ago

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

HAM02020 commented 9 months ago

我先简单说明一下项目情况, 目前还是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 commented 9 months ago

GCKeyboard、GCMouse和GCController 这是平台库,ios平台库, harmonyos也类似的,但是要等到harmonyos next 版本才会有,也是我们最终使用的api, 目前harmony4.0缺少这样的api, 我们只能通过低级api来连接设备, 如USB连接HID设备(不常用),蓝牙连接HID设备. ios应该有BLE蓝牙库,使用它来连接蓝牙键盘,来接受键盘的输入


发件人: HAM02020 @.> 发送时间: 2024年1月4日 2:47 收件人: likuai2010/moonlight-harmonyos @.> 抄送: likuai @.>; Comment @.> 主题: Re: [likuai2010/moonlight-harmonyos] Build报错 (Issue #1)

我先简单说明一下项目情况, 目前还是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 #1https://github.com/likuai2010/moonlight-harmonyos/issues/1) 具体怎么编译呢,执行build_ffmpeg.sh吗 D Reply to this email directly, view it on GitHub<#1 (comment)https://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1874935569>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBJM77HRVPI2C6HDCQTYMT77HAVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUHEZTKNJWHE. You are receiving this because you commented.Message ID: @.***>

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

― Reply to this email directly, view it on GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1876236602, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBKJRTEI6VLNFLXKUB3YMYJ53AVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZWGIZTMNRQGI. You are receiving this because you commented.Message ID: @.***>

likuai2010 commented 9 months ago

你可以看看这篇文章 https://novelbits.io/bluetooth-hid-devices-an-intro/ https://www.bilibili.com/read/cv15067064/


发件人: HAM02020 @.> 发送时间: 2024年1月4日 2:47 收件人: likuai2010/moonlight-harmonyos @.> 抄送: likuai @.>; Comment @.> 主题: Re: [likuai2010/moonlight-harmonyos] Build报错 (Issue #1)

我先简单说明一下项目情况, 目前还是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 #1https://github.com/likuai2010/moonlight-harmonyos/issues/1) 具体怎么编译呢,执行build_ffmpeg.sh吗 D Reply to this email directly, view it on GitHub<#1 (comment)https://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1874935569>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBJM77HRVPI2C6HDCQTYMT77HAVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUHEZTKNJWHE. You are receiving this because you commented.Message ID: @.***>

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

― Reply to this email directly, view it on GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1876236602, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBKJRTEI6VLNFLXKUB3YMYJ53AVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZWGIZTMNRQGI. You are receiving this because you commented.Message ID: @.***>

HAM02020 commented 9 months ago

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

likuai2010 commented 9 months ago

这是特征是BLE (蓝牙4.0)的服务,可能是一个蓝牙键盘不支持BLE(蓝牙4.0), 是经典蓝牙模式(3.0) 它ios是不开放的


发件人: HAM02020 @.> 发送时间: 2024年1月4日 6:06 收件人: likuai2010/moonlight-harmonyos @.> 抄送: likuai @.>; Comment @.> 主题: Re: [likuai2010/moonlight-harmonyos] Build报错 (Issue #1)

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

― Reply to this email directly, view it on GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1876422602, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBNLKWGRT4FU5KFTTDLYMZBGLAVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZWGQZDENRQGI. You are receiving this because you commented.Message ID: @.***>

HAM02020 commented 9 months ago

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

likuai2010 commented 9 months ago

最新进度 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 GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1876453319, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBKYZYADOPTQTT36OS3YMZC77AVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZWGQ2TGMZRHE. You are receiving this because you commented.Message ID: @.***>

HAM02020 commented 9 months ago

你好!我已收到你的邮件。谢谢!

HAM02020 commented 9 months ago

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

最新进度 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 commented 9 months ago

对,目前差控制,harmonynext 需要Meta60才能申请,其他机型还得等

获取 Outlook for iOShttps://aka.ms/o0ukef


发件人: HAM02020 @.> 发送时间: Friday, January 19, 2024 9:37:36 AM 收件人: likuai2010/moonlight-harmonyos @.> 抄送: likuai @.>; Comment @.> 主题: Re: [likuai2010/moonlight-harmonyos] Build报错 (Issue #1)

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

最新进度 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 #1https://github.com/likuai2010/moonlight-harmonyos/issues/1) 我连接的键盘是蓝牙5.0的,我尝试一下鸿蒙是否可以正常获取 D Reply to this email directly, view it on GitHub<#1 (comment)https://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1876453319>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBKYZYADOPTQTT36OS3YMZC77AVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZWGQ2TGMZRHE. You are receiving this because you commented.Message ID: @.***>

― Reply to this email directly, view it on GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1899496069, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBLUZFRYOKP3VCLSV3LYPHE6BAVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZGQ4TMMBWHE. You are receiving this because you commented.Message ID: @.***>

HAM02020 commented 9 months ago

我这环境还是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 commented 9 months ago

肯能是编译器的问题: [-Werror,-Wunused-command-line-argument] 在build-profile.json5 添加 -Warn,-Wunused-command-line-argument

试试


发件人: HAM02020 @.> 发送时间: 2024年1月19日 1:54 收件人: likuai2010/moonlight-harmonyos @.> 抄送: likuai @.>; Comment @.> 主题: Re: [likuai2010/moonlight-harmonyos] Build报错 (Issue #1)

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

hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor Finished @. after 2 ms hvigor Finished @.* 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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 *@. 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

― Reply to this email directly, view it on GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1899513555, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBK2YK6AUAJQWLUAPWLYPHG6VAVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZGUYTGNJVGU. You are receiving this because you commented.

HAM02020 commented 9 months ago

还是不行。 这是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 commented 9 months ago

加 cppFlags 里试试

[cid:e393f57c-13cb-4747-b611-38cc470287d9] 这里的日志文件发我看看,


发件人: HAM02020 @.> 发送时间: 2024年1月19日 2:45 收件人: likuai2010/moonlight-harmonyos @.> 抄送: likuai @.>; Comment @.> 主题: Re: [likuai2010/moonlight-harmonyos] Build报错 (Issue #1)

还是不行。 这是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", } ] }

― Reply to this email directly, view it on GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1899554887, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBKNX76LTRCOKYLWMRLYPHM4XAVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZGU2TIOBYG4. You are receiving this because you commented.

HAM02020 commented 9 months ago
/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 commented 9 months ago

这不是吧

获取 Outlook for iOShttps://aka.ms/o0ukef


发件人: HAM02020 @.> 发送时间: Friday, January 19, 2024 10:50:08 AM 收件人: likuai2010/moonlight-harmonyos @.> 抄送: likuai @.>; Comment @.> 主题: Re: [likuai2010/moonlight-harmonyos] Build报错 (Issue #1)

/Users/sheng/nodejs/bin/node @./hvigor/bin/hvigor.js --mode module -p @. -p product=default -p debuggable=true assembleHap

hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor UP-TO-DATE @. hvigor Finished @. after 2 ms hvigor Finished @.* 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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 -DMUSL -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 *@. 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

― Reply to this email directly, view it on GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1899558146, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBINQAXE7B6V2YMP4YTYPHNOBAVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZGU2TQMJUGY. You are receiving this because you commented.Message ID: @.***>

HAM02020 commented 9 months ago

真就run不过去了 [捂脸]

likuai2010 commented 9 months ago

这些日志文件我看看你

获取 Outlook for iOShttps://aka.ms/o0ukef


发件人: HAM02020 @.> 发送时间: Friday, January 19, 2024 1:09:17 PM 收件人: likuai2010/moonlight-harmonyos @.> 抄送: likuai @.>; Comment @.> 主题: Re: [likuai2010/moonlight-harmonyos] Build报错 (Issue #1)

真就run不过去了 [捂脸]

― Reply to this email directly, view it on GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1899778838, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBL2I2GMAA4JNAZ2NQLYPH5X3AVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZG43TQOBTHA. You are receiving this because you commented.Message ID: @.***>

HAM02020 commented 9 months ago

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

likuai2010 commented 9 months ago

没问题, 等晚些时候我build一个动态库吧


发件人: HAM02020 @.> 发送时间: 2024年1月19日 5:20 收件人: likuai2010/moonlight-harmonyos @.> 抄送: likuai @.>; Comment @.> 主题: Re: [likuai2010/moonlight-harmonyos] Build报错 (Issue #1)

我的ide和运行环境可以吗 image.png (view on web)https://github.com/likuai2010/moonlight-harmonyos/assets/60844661/38a232ed-cfc3-4853-af98-6238657612ef

― Reply to this email directly, view it on GitHubhttps://github.com/likuai2010/moonlight-harmonyos/issues/1#issuecomment-1899787588, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQHREBJY4GU4VSIGVZVH7Z3YPH7B3AVCNFSM6AAAAABBJWF4FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJZG44DONJYHA. You are receiving this because you commented.