Can someone give me a link to Hello71's compiled build or his guide how to do so? Didn't find it in the thread.
it's on this page. (by 10 posts)
I wouldn't call that post a guide, as you said, it is instruction. I never used qt or cmake, so it is not that clear. I am getting this error on cmake ../Dwarf-Therapist
CMake Error at CMakeLists.txt:8 (find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5" with any of
the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
I also downloaded cmake and Qt5 for compiling DT and have used neither for anything else. I pasted your error message into google and arrived at stackexchange
here, at github here
here, and again at stackexchange
here. The important piece of info in
both all seems to be "The Qt5 cmake modules are provided by Qt5 itself, so you need to tell cmake where qt can be found." I checked the CMakeLists.txt that is in my Dwarf-Therapist directory (and that was presumably used for the compile) and it only has this "find_package" line
find_package(Qt5 REQUIRED COMPONENTS Qml Widgets)
and if you check your ./Dwarf-Therapist/CMakeLists.txt, it is probably already set this way On Ubuntu, I have cmake 3.7 and Qt5, but didn't have the issue you did. It must be that my cmake is finding Qt5 but I don't know how. I did not add anything to my $PATH. My cmake is installed in "~/Downloads/cmake-3.7.0-Linux-x86_64" and I run it with "../Downloads/cmake-3.7.0-Linux-x86_64/bin/cmake -DCMAKE_CXX_COMPILER=/usr/lib/llvm-3.5/bin/clang++ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS=-fsanitize=address ." which may be wrong for some reasons but it does compile DT and DT does work. So I think your issue goes back to
"The Qt5 cmake modules are provided by Qt5 itself, so you need to tell cmake where qt can be found." and the solution may be to run cmake using the command line like "cmake -DCMAKE_PREFIX_PATH=<path_to_source>". The QT5 manual
here says
"In order for find_package to be successful, Qt 5 must be found below the CMAKE_PREFIX_PATH, or the Qt5<Module>_DIR must be set in the CMake cache to the location of the Qt5WidgetsConfig.cmake file. The easiest way to use CMake is to set the CMAKE_PREFIX_PATH environment variable to the install prefix of Qt 5." I don't know which of the QT5 folders you need to point that setting at, but this seems like the step needed.
I wouldn't call that post a guide, as you said, it is instruction. I never used qt or cmake, so it is not that clear.
And how is saying that it should be called an "instruction" instead of a "guide" relevant to your gaining an understanding of what the listed steps will require you to do? Would changing the word give you a better ability to understand?