fredemmott / streaming-remote

Control OBS Studio or XSplit Broadcaster over a network
Other
21 stars 6 forks source link

QThread::create() function error #1

Closed oan-99 closed 5 years ago

oan-99 commented 5 years ago

I have been building the code using this streaming-remote$ mkdir build streaming-remote$ cd build build$ cmake ../plugins \ -DWITH_XSPLIT_PLUGIN=ON \ -DWITH_OBS_PLUGIN=ON \ -DOBS_SOURCE_DIR=/path/to/obs-source build$ make

when executing the last line following errors pop up

` /home/oan/Downloads/streaming-remote-master/plugins/xsplit/plugin-main.cpp: In function ‘BOOL XSplitScriptPluginInit()’: /home/oan/Downloads/streaming-remote-master/plugins/xsplit/plugin-main.cpp:48:26: error: ‘create’ is not a member of ‘QThread’ appThread = QThread::create( ^~ /home/oan/Downloads/streaming-remote-master/plugins/xsplit/plugin-main.cpp: In function ‘BOOL XSplitScriptPluginCall(IXSplitScriptDllContext, BSTR, wchar_t, UINT, wchar_t)’: /home/oan/Downloads/streaming-remote-master/plugins/xsplit/plugin-main.cpp:74:7: error: no matching function for call to ‘QMetaObject::invokeMethod(XSplit&, XSplitScriptPluginCall(IXSplitScriptDllContext*, BSTR, wchar_t, UINT, wchar_t)::<lambda()>, Qt::ConnectionType)’ );

`

Here it gives two errors; one on create() function and other on invokeMethod. I am unable to debug them. I also have attached the full output. Moreover, I'm using qt5 and ubuntu 18. Please guide me quick. I'm in hurry.

log.txt

oan-99 commented 5 years ago

Well, I kept on trying and eventually found out that I was using qt 5.9.xx which did not support these functions fully. So, I installed qt 5.13 and did the work again and compiled it.