Skip to content

Compilation on MacOS 12 failed #29

@AlexBlade

Description

@AlexBlade

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions