从源代码构建notepadqq时出错

时间:2019-07-12 09:47:55

标签: linux makefile

我转到了notepadqq github页面,并按照他们指定的步骤进行操作。首先,我更新了所需的库,然后下载了git文件。然后我运行了该命令./configure --prefix /usr。一切顺利,直到我尝试构建它。我所做的只是运行此命令make。这是它给我的输出:

petar74@LVLH:~/bin/notepadqq$ make cd src/ui/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/petar74/bin/notepadqq/src/ui/ui.pro PREFIX=/usr QMAKE_CXX=c++ 'QMAKE_CXXFLAGS= ' QMAKE_LFLAGS= 'LRELEASE=/usr/bin/qtchooser -run-tool=lrelease -qt=5' CONFIG+= ) && make -f Makefile Project MESSAGE: Release build Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_de.qm'... Generated 453 translation(s) (453 finished and 0 unfinished) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_es.qm'... Generated 454 translation(s) (454 finished and 0 unfinished) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_fr.qm'... Generated 345 translation(s) (345 finished and 0 unfinished) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_hu.qm'... Generated 454 translation(s) (454 finished and 0 unfinished) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_it.qm'... Generated 451 translation(s) (434 finished and 17 unfinished) Ignored 1 untranslated source text(s) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_ja.qm'... Generated 447 translation(s) (447 finished and 0 unfinished) Ignored 5 untranslated source text(s) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_pl.qm'... Generated 452 translation(s) (452 finished and 0 unfinished) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_pt.qm'... Generated 454 translation(s) (454 finished and 0 unfinished) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_ru.qm'... Generated 328 translation(s) (326 finished and 2 unfinished) Ignored 17 untranslated source text(s) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_sl.qm'... Generated 345 translation(s) (345 finished and 0 unfinished) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_sv.qm'... Generated 359 translation(s) (359 finished and 0 unfinished) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_uk.qm'... Generated 453 translation(s) (453 finished and 0 unfinished) Updating '/home/petar74/bin/notepadqq/src/ui/../translations/notepadqq_zh.qm'... Generated 448 translation(s) (448 finished and 0 unfinished) Project ERROR: uchardet development package not found make: *** [Makefile:46: sub-src-ui-make_first] Error 3

我不想使用快照安装notepadqq,我想构建它,使用make并没有那么丰富的经验。所以,如果可以的话,请帮助我。知道我在哪里犯了错误以及如何解决这个问题将很有用。提前致谢。 :)

2 个答案:

答案 0 :(得分:0)

错误几乎总是在结尾处。在您的情况下,您缺少uchardet的头文件,而uchardet头文件是编译notepadqq所需的。

根据您的发行版,软件包可以命名为uchardet-devuchardet-devellibuchardet-devlibuchardet-devel

查看主页(https://www.freedesktop.org/wiki/Software/uchardet/)以获得更多信息

答案 1 :(得分:0)

很抱歉给大家带来麻烦。我找到了答案,原因是我没有安装pkg-config命令中使用的./configure --prefix /usr软件包。因此,我刚刚安装了它,而在编写此文件时,记事本正在编译,因此已解决。