AgoraIO / OBS

46 stars 35 forks source link

Compilation on MacOS 12 failed #29

Open AlexBlade opened 2 years ago

AlexBlade commented 2 years ago

I'm trying to build agora-ui-tool from sources on my Mac, according to the short manual that is placed in the repo, but strange error is appearing. After configuration and generation steps in the cmake-gui, I'm trying to execute make in the build directory. The result of the execution is placed below:

blade@MBP-Alex build % make
[ 11%] Automatic MOC and UIC for target agora-tool-ui
[ 11%] Built target agora-tool-ui_autogen
[ 22%] Building CXX object CMakeFiles/agora-tool-ui.dir/agora-tool-ui_autogen/mocs_compilation.cpp.o
In file included from /Users/blade/Development/Investigation/agora-ui-tool/obs-agora-ui-tool/build/agora-tool-ui_autogen/mocs_compilation.cpp:2:
In file included from /Users/blade/Development/Investigation/agora-ui-tool/obs-agora-ui-tool/build/agora-tool-ui_autogen/U3KM7JFWRN/moc_agorartcengine.cpp:10:
/Users/blade/Development/Investigation/agora-ui-tool/obs-agora-ui-tool/build/agora-tool-ui_autogen/U3KM7JFWRN/../../../src/Agora/agorartcengine.hpp:3:10: fatal error: 'QObject' file not found
#include <QObject>
         ^~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/agora-tool-ui.dir/agora-tool-ui_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/agora-tool-ui.dir/all] Error 2
make: *** [all] Error 2

But I believe that Qt5 was installed (via brew). I'm pretty new in Qt so any help will be very appreciate. Please show me the right way to compile the tool. The cmake-gui screenshot is attached.

Снимок экрана 2021-11-14 в 22 56 26
sbd021 commented 2 years ago

Need to build obs studio first. Reference to https://github.com/obsproject/obs-studio/wiki/Install-Instructions.

abhinabamitra commented 2 years ago

I did build the OBS Studio first, and then proceded with the configuration, but I am still not finding 'Agora RTC Tool' under Tools Section, is there anything else needed to do? Also where exactly did we use the 'deps' folder after downloading it in the Pre-Requisites Section?