我尝试使用
安装一些反汇编程序$sudo cmake ../edb-debugger-master
但它给了我一个跟随错误
-- Boost version: 1.58.0
-- Checking for module 'libgvc>=2.38.0'
--
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:26 (find_package):
Could not find a package configuration file provided by "Qt5Svg" with any
of the following names:
Qt5SvgConfig.cmake
qt5svg-config.cmake
Add the installation prefix of "Qt5Svg" to CMAKE_PREFIX_PATH or set
"Qt5Svg_DIR" to a directory containing one of the above files. If "Qt5Svg"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
src/CMakeLists.txt:26 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/kanna/Desktop/build/CMakeFiles/CMakeOutput.log".
如果您查看此图片,您可以看到Qt5(此软件的依赖关系)和Qt5SvgConfig.cmake
都存在。
那为什么它仍然给我一个错误?
答案 0 :(得分:5)
我通过做两件事来解决这个问题。首先安装所有qt dev库只需在synaptic中搜索或尝试安装所有这些。
sudo apt-get install git build-essential cmake qt5-default qtscript5-dev libssl-dev qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5svg5-dev libqt5webkit5-dev libsdl2-dev libasound2 libxmu-dev libxi-dev freeglut3-dev libasound2-dev libjack-jackd2-dev libxrandr-dev libqt5xmlpatterns5-dev libqt5xmlpatterns5 libqt5xmlpatterns5-private-dev
之后确保以这种方式克隆项目。它还说在README中。
git clone --recursive https://github.com/eteran/edb-debugger.git
在此之后它起作用了。
答案 1 :(得分:0)
打开terminal
并将环境变量Qt5Svg_DIR
设置为包含这些文件的目录。
export Qt5Svg_DIR=~/Qt5.7.0/5.7/gcc_64/lib/cmake/Qt5Svg
然后在同一个终端中运行cmake命令。请在上面一行检查环境变量的路径。
答案 2 :(得分:0)
它已经解决了我的问题:
sudo apt install libqt5svg5-dev