c++ - Qt5 build failing -



c++ - Qt5 build failing -

i'm trying compile phantomjs 2, uses qt5. running failure:

make[2]: entering directory `/app/phantomjs/src/qt/qtbase/src/platformsupport' g++ -c -include .pch/qt5platformsupport -pipe -o2 -fpic -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -wall -w -d_reentrant -dqt_no_mtdev -dqt_no_libudev -dqt_no_evdev -dqt_no_graphicsview -dqt_no_graphicseffect -dqt_no_stylesheet -dqt_no_style_cde -dqt_no_style_cleanlooks -dqt_no_style_motif -dqt_no_style_plastique -dqt_no_cast_from_ascii -dqt_no_fontconfig -dqt_build_platformsupport_lib -dqt_building_qt -dqt_no_cast_to_ascii -dqt_ascii_cast_warnings -dqt_moc_compat -dqt_use_qstringbuilder -dqt_deprecated_warnings -dqt_disable_deprecated_before=0x050000 -dqt_no_exceptions -d_largefile64_source -d_largefile_source -dqt_no_debug -dqt_gui_lib -dqt_core_lib -i../../mkspecs/linux-g++ -i. -i../../include -i../../include/qtplatformsupport -i../../include/qtplatformsupport/5.3.0 -i../../include/qtplatformsupport/5.3.0/qtplatformsupport -i../../include/qtgui/5.3.0 -i../../include/qtgui/5.3.0/qtgui -i../../include/qtgui -i../../include/qtcore/5.3.0 -i../../include/qtcore/5.3.0/qtcore -i../../include/qtcore -i.moc -o .obj/qbasicfontdatabase.o fontdatabases/basic/qbasicfontdatabase.cpp in file included ../../include/qtgui/5.3.0/qtgui/private/../../../../../src/gui/text/qfontengine_ft_p.h:58:0, ../../include/qtgui/5.3.0/qtgui/private/qfontengine_ft_p.h:1, fontdatabases/basic/qbasicfontdatabase.cpp:54: /usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: no such file or directory #include <freetype/config/ftheader.h> ^ compilation terminated. make[2]: *** [.obj/qbasicfontdatabase.o] error 1 make[2]: leaving directory `/app/phantomjs/src/qt/qtbase/src/platformsupport' make[1]: *** [sub-platformsupport-make_first] error 2 make[1]: leaving directory `/app/phantomjs/src/qt/qtbase/src' make: *** [sub-src-make_first] error 2

i've installed freetype2:

$ find / -name ftheader.h /usr/include/freetype2/freetype/config/ftheader.h /app/phantomjs/src/qt/qtbase/src/3rdparty/freetype/include/freetype/config/ftheader.h

not sure how resolve this, since don't have much experience c/c++ building. might have add/change prefix, i'm not sure how.

if @ locations of error (), there next comment right above it:

55 /* `<prefix>/include/freetype2' must in current inclusion path */ 56 #include <freetype/config/ftheader.h>

not sure why build didn't resolve on own, since it's resolved other libraries depends on, adding -i /usr/include/freetype2 build configuration did trick.

for case of phantomjs specifically, total command was:

./build.sh --confirm --qt-config '-i /usr/include/freetype2'

c++ qt build

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -