Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. fatal error: QObject: No such file or directory #QTstories

fatal error: QObject: No such file or directory #QTstories

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
c++
2 Posts 2 Posters 381 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Broder
    wrote on last edited by
    #1

    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.

    JonBJ 1 Reply Last reply
    0
    • B Broder

      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.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Broder
      Show where you have added a path something like /usr/include/x86_64-linux-gnu/qt6 (not just /usr/include) to your include paths for cmake.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved