trebleshot / desktop

An Open-Source file sharing software for Linux, macOS and Windows allowing you to send and receive files over available connections, and pause and resume transfer process even when an error is given
GNU General Public License v2.0
33 stars 6 forks source link

qmdnsengine headers not found when building #32

Closed aluaces closed 4 years ago

aluaces commented 4 years ago

It is likely that something changed on qmdnsengine's part (I'm just guessing), because there is not (or it isn't working) a correct path for its header files. Starting with a fresh clone, and after initializing the submodules:

In file included from /tmp/desktop/cmake-build-release/trebleshot_autogen/WNS5U4BGQZ/moc_DNSSDService.cpp:10,
                 from /tmp/desktop/cmake-build-release/trebleshot_autogen/mocs_compilation.cpp:3:
/tmp/desktop/src/broadcast/DNSSDService.h:47:10: fatal error: qmdnsengine/server.h: No such file or directory
   47 | #include <qmdnsengine/server.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/trebleshot.dir/build.make:110: CMakeFiles/trebleshot.dir/trebleshot_autogen/mocs_compilation.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /tmp/desktop/src/ui/MainWindow.h:20,
                 from /tmp/desktop/src/main.cpp:21:
/tmp/desktop/src/broadcast/DNSSDService.h:47:10: fatal error: qmdnsengine/server.h: No such file or directory
   47 | #include <qmdnsengine/server.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
velitasali commented 4 years ago

It is a submodule. You should refresh and pull the submodules. You can find the instructions in the README.

andrii-kazantsev commented 3 years ago

I had this error with the pulled submodules. I was able to fix it by replacing the libs/qmdnsengine with qmdnsengine in the main CMakeLists.txt file.

target_link_libraries(${PROJECT_EXECUTABLE} PUBLIC qmdnsengine)