关于在使用switch-remoteplay中遇到的问题整理

发布于 2022-05-25 00:04:58

关于在使用switch-remoteplay中遇到的问题整理,这个项目可能并不成熟,但可以作为学习的用途。

查看更多

浏览量
4997
6 个回答
猫哥
猫哥 项目组成员 2022-06-07
希望我的回答能对你有所帮助

在安装joycontrol时执行pip3 install .报错
错误一:error: invalid command 'bdist_wheel,主要是在安装dbus-python时出错,解决办法:

pip3 install wheel

错误二:Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure,via the LIBS environment variable,此消息不是要求python库本身,而是要求标头链接到它们。然后,您可以使用以下命令进行安装:

sudo apt-get install python3-dev

错误三:configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. 缺少pkg-config,它的作用是在源代码编译时查询已安装的库的使用接口的计算机工具软件。

sudo apt-get install pkg-config

错误四:configure: error: Package requirements (dbus-1 >= 1.8) were not met:No package 'dbus-1' found,这个是缺少dbus-1库,这个库依赖好多东西,可以一块加上

apt-get install libdbus-1-3 libdbus-1-dev libglib2.0-dev
猫哥
猫哥 项目组成员 2022-05-25
希望我的回答能对你有所帮助
ubuntu下如何安装yarn?

Yarn 是一个 JavaScript 包管理器,它兼容于 npm,可以帮助你自动处理安装,升级,配置,和移除 npm 包。它被创建,用于解决 npm 的一系列问题,例如通过并行操作提高软件包安装处理速度并且减少网络连接相关的错误。
安装代码:

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
yarn --version  #验证是否安装成功,输出:1.22.4

参考资料 A

猫哥
猫哥 项目组成员 2022-05-25
希望我的回答能对你有所帮助

官方源码地址

内容分两部分,一、网页端浏览和操控 二、服务器端连接和发送指令

一、网页端浏览和操控

  1. 网页端代码可以使用docker或yarn进行部署。
环境里使用如下命令启动:
yarn install
yarn start

二、服务器端连接和发送指令

猫哥
猫哥 项目组成员 2022-06-20
希望我的回答能对你有所帮助
错误:undefined symbol: hid_get_input_report
原因可能是:hid的版本不兼容,目前测试1.0.5的太高,建议使用1.0.4。
pip3 uninstall hid
pip3 install hid==1.0.4
错误:AttributeError: module 'asyncio' has no attribute 'get_running_loop'
原因可能是:python3.6版本还不支持asyncio.get_running_loop(),建议升级python3.7以上
#升级过程,这里使用python3.9。先安装python3.9:环境Ubuntu18.04
apt install software-properties-common
add-apt-repository ppa:deadsnakes/ppa
apt install python3.9
python3.9 -V # 验证安装成功

# 下一步切换Python3 为 python3.9版本
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2
python3 -V # 返回 Python 3.9.13 表示成功!
猫哥
猫哥 项目组成员 2022-06-06
希望我的回答能对你有所帮助

在使用yarn安装过程中遇到的问题和解决办法:
yarn info there appears to be trouble with your network connection

可能原因是:系统使用了代理,需要先关闭代理;网络问题,需使用国内的yarn源;
猫哥
猫哥 项目组成员 2022-06-07
希望我的回答能对你有所帮助

阶段命令汇总:

apt-get update -qy
apt-get upgrade -qy
git clone https://github.com/juharris/switch-remoteplay.git
git clone https://github.com/mart1nro/joycontrol.git
cd joycontrol
sudo apt install python3 python3-dev python3-pip python3-dbus libhidapi-hidraw0 pkg-config libdbus-1-3 libdbus-1-dev libglib2.0-dev
pip3 install wheel
pip3 install .
cd ../switch-remoteplay/server
sudo pip3 install -e .

学习
记录

发布
问题

分享
好友

手机
浏览

扫码手机浏览