teamviewer 快速连接按钮与 qt creator
teamviewer quick connect button with qt creator
首先,我使用的是centos 6.9和qt creator 3.0.0
我可以使用终端直接使用命令连接服务器
/usr/bin/teamviewer -i [serverid] -P [password]"
然后我用这段代码将它实现到 qt 中的一个按钮:
system("gnome-terminal --hide-menubar --profile=noclose -x bash -c '/usr/bin/teamviewer -i [serverid] -P [password];'");
但这不起作用,它显示此错误:
Init...
CheckCPU: SSE2 support: yes
XRandRWait: No value set. Using default.
XRandRWait: Started by user.
Checking setup...
/opt/teamviewer/tv_bin/wine/bin/wineserver: Symbol `wine_casemap_upper' has different size in shared object, consider re-linking
/opt/teamviewer/tv_bin/wine/bin/wineserver: Symbol `wine_casemap_lower' has different size in shared object, consider re-linking
Launching TeamViewer ...
/opt/teamviewer/tv_bin/wine/bin/wineserver: Symbol `wine_casemap_upper' has different size in shared object, consider re-linking
/opt/teamviewer/tv_bin/wine/bin/wineserver: Symbol `wine_casemap_lower' has different size in shared object, consider re-linking
Launching TeamViewer GUI ...
我也尝试过使用 Qprocess .start .execute 的不同方法,仍然没有成功。
我自己解决了。
我已经在系统中安装了 wine,我想我已经正确删除了它,但是没有。
发生这种情况是因为我没有正确删除所有 wine 组件。
我只是用 yum remove wine
、
删除了酒,然后用 yum remove wine*
解决了。
顺便说一句,感谢 @nwp 将我的标签问题更改为仅限 wine 和 teamviewer。那让我重新检查我系统上的 wine 包。
首先,我使用的是centos 6.9和qt creator 3.0.0
我可以使用终端直接使用命令连接服务器
/usr/bin/teamviewer -i [serverid] -P [password]"
然后我用这段代码将它实现到 qt 中的一个按钮:
system("gnome-terminal --hide-menubar --profile=noclose -x bash -c '/usr/bin/teamviewer -i [serverid] -P [password];'");
但这不起作用,它显示此错误:
Init... CheckCPU: SSE2 support: yes XRandRWait: No value set. Using default. XRandRWait: Started by user. Checking setup... /opt/teamviewer/tv_bin/wine/bin/wineserver: Symbol `wine_casemap_upper' has different size in shared object, consider re-linking /opt/teamviewer/tv_bin/wine/bin/wineserver: Symbol `wine_casemap_lower' has different size in shared object, consider re-linking Launching TeamViewer ... /opt/teamviewer/tv_bin/wine/bin/wineserver: Symbol `wine_casemap_upper' has different size in shared object, consider re-linking /opt/teamviewer/tv_bin/wine/bin/wineserver: Symbol `wine_casemap_lower' has different size in shared object, consider re-linking Launching TeamViewer GUI ...
我也尝试过使用 Qprocess .start .execute 的不同方法,仍然没有成功。
我自己解决了。
我已经在系统中安装了 wine,我想我已经正确删除了它,但是没有。
发生这种情况是因为我没有正确删除所有 wine 组件。
我只是用 yum remove wine
、
删除了酒,然后用 yum remove wine*
解决了。
顺便说一句,感谢 @nwp 将我的标签问题更改为仅限 wine 和 teamviewer。那让我重新检查我系统上的 wine 包。