On 08/27/2016 12:12 PM, Bruce Dubbs wrote:

How is your PKG_CONFIG_PATH set up? I have something like /opt/qt5/lib/pkgconfig. There is a file there, Qt5Core.pc which has:

prefix=/opt/qt5
...
includedir=${prefix}/include
...
Cflags: -I${includedir}/QtCore -I${includedir}

The QtCore in that you are looking at is for Qt4 so yours should be slightly different. The configure command should use pkgconfig to set up the -I entries to tell the compiler where to find include files.

  -- Bruce


root [ ~ ]# cat /opt/qt-4.8.6/include/QtCore/QtGlobal
#include "qglobal.h"
root [ ~ ]# cat /opt/qt-5.4.0/include/QtCore/QtGlobal
#include "qglobal.h"
root [ ~ ]#





root [ ~ ]# find /opt/qt4/lib/pkgconfig/*Core*
/opt/qt4/lib/pkgconfig/QtCore.pc
root [ ~ ]# cat /opt/qt4/lib/pkgconfig/QtCore.pc
prefix=/opt/qt-4.8.6
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include/QtCore
qt_config=lex yacc warn_on uic resources qt warn_on release incremental link_prl gdb_dwarf_index shared def_files_disabled exceptions no_mocdepend release stl qt_no_framework system-sqlite release largefile stl precompile_header mmx 3dnow sse sse2 sse3 ssse3 sse4_1 sse4_2 avx dylib create_prl link_prl depend_includepath QTDIR_build qt_install_headers qt warn_on depend_includepath qmake_cache target_qt hide_symbols create_pc create_libtool explicitlib moc thread dll shared
moc_location=${prefix}/bin/moc
uic_location=${prefix}/bin/uic
rcc_location=${prefix}/bin/rcc
lupdate_location=${prefix}/bin/lupdate
lrelease_location=${prefix}/bin/lrelease

Name: Qtcore
Description: Qtcore Library
Version: 4.8.6
Libs: -L${libdir} -lQtCore
Libs.private: -L/opt/qt-4.8.6/lib  -lpthread -lz -lm -ldl -lgthread-2.0 
-pthread -lglib-2.0 -lrt
Cflags: -DQT_SHARED -I/opt/qt-4.8.6/include -I${includedir}






root [ ~ ]# find /opt/qt5/lib/pkgconfig/*Core*
/opt/qt5/lib/pkgconfig/Qt5Core.pc
root [ ~ ]# cat /opt/qt5/lib/pkgconfig/Qt5Core.pc
prefix=/opt/qt-5.4.0
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

host_bins=${prefix}/bin
qt_config=minimal-config small-config medium-config large-config full-config gtk2 gtkstyle fontconfig libudev evdev xlib xrender xcb-plugin xcb-render xcb-glx xcb-xlib xcb-sm xkbcommon-qt accessibility-atspi-bridge linuxfb kms c++11 accessibility egl egl_x11 eglfs opengl shared qpa reduce_exports reduce_relocations clock-gettime clock-monotonic posix_fallocate mremap getaddrinfo ipv6ifname getifaddrs inotify eventfd system-jpeg system-png png system-freetype harfbuzz system-zlib mtdev cups iconv glib dbus dbus-linked openssl-linked xcb xinput2 rpath alsa pulseaudio icu concurrent audio-backend release

Name: Qt5 Core
Description: Qt Core module
Version: 5.4.0
Libs: -L${libdir} -lQt5Core
Libs.private: -lpthread -lz -licui18n -licuuc -licudata -lpcre16 -lm -ldl 
-lgthread-2.0 -pthread -lglib-2.0 -lrt
Cflags: -I${includedir}/QtCore -I${includedir}


Wayne Sallee
wa...@waynesallee.com
http://www.WayneSallee.com

--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to