rizinorg / rz-ghidra

Deep ghidra decompiler and sleigh disassembler integration for rizin
GNU Lesser General Public License v3.0
829 stars 88 forks source link

QObject: No such file or directory #350

Open BabyBroder opened 7 months ago

BabyBroder commented 7 months ago

Hello everyone, I want to install rz-ghidra in Linux. However, in the step: make && make install, I have the problem.

➜ build git:(dev) ✗ make && make install
[  0%] Built target pugixml
[  4%] Built target ghidra_base
[ 27%] Built target ghidra_decompiler
[ 33%] Built target ghidra_sleigh
[ 34%] Built target ghidra_libdecomp
[ 39%] Built target core_ghidra
[ 40%] Built target asm_ghidra
[ 42%] Built target analysis_ghidra
[ 44%] Built target sleighc
[ 97%] Built target sla
[ 98%] Automatic MOC for target rz_ghidra_cutter
[ 98%] Built target rz_ghidra_cutter_autogen
[ 99%] Building CXX object cutter-plugin/CMakeFiles/rz_ghidra_cutter.dir/rz_ghidra_cutter_autogen/mocs_compilation.cpp.o
In file included from /home/syjoon/tools/rz-ghidra/build/cutter-plugin/rz_ghidra_cutter_autogen/EWIEGA46WW/moc_RzGhidraPlugin.cpp:10,
                 from /home/syjoon/tools/rz-ghidra/build/cutter-plugin/rz_ghidra_cutter_autogen/mocs_compilation.cpp:2:
/home/syjoon/tools/rz-ghidra/build/cutter-plugin/rz_ghidra_cutter_autogen/EWIEGA46WW/../../../../cutter-plugin/RzGhidraPlugin.h:8:10: fatal error: QObject: No such file or directory
    8 | #include <QObject>
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [cutter-plugin/CMakeFiles/rz_ghidra_cutter.dir/build.make:76: cutter-plugin/CMakeFiles/rz_ghidra_cutter.dir/rz_ghidra_cutter_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:434: cutter-plugin/CMakeFiles/rz_ghidra_cutter.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I installed qt5 and qt6, it exists in my /usr/include

➜  ~ find /usr/include -iname "qobject"
/usr/include/x86_64-linux-gnu/bits/QtCore/QObject
/usr/include/x86_64-linux-gnu/qt5/QtCore/QObject
/usr/include/x86_64-linux-gnu/qt6/QtCore/QObject

/usr/include/c++/11/QtCore/QObject Can you help me!!! I spent many times for it, but I can't solve it.