octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55282] QT_CPPFLAGS and QT_LDFLAGS not always


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #55282] QT_CPPFLAGS and QT_LDFLAGS not always present when needed
Date: Thu, 27 Dec 2018 03:00:53 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15

Follow-up Comment #11, bug #55282 (project octave):

@Mike

The pkg-config info for Qt includes files like the one below (Qt5Core.pc).


prefix=/usr/local/Cellar/qt/5.12.0
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/lib/QtCore.framework/Headers

host_bins=${prefix}/bin
qt_config=shared qt_framework release c++11 c++14 concurrent dbus
reduce_exports stl properties animation textcodec big_codecs codecs textdate
datestring doubleconversion filesystemiterator filesystemwatcher gestures
itemmodel proxymodel identityproxymodel library mimetype process statemachine
regularexpression settings sharedmemory sortfilterproxymodel stringlistmodel
systemsemaphore temporaryfile translation xmlstream xmlstreamreader
xmlstreamwriter

Name: Qt5 Core
Description: Qt Core module
Version: 5.12.0
Libs: -F${libdir} -framework QtCore 
Cflags: -DQT_CORE_LIB -I${includedir} -F${libdir}


To fix this problem, each module's pc-file would need to be modified to
include ...


includedir=${prefix}/include


Where this folder includes subfolders which are symbolic links to the headers
for each framework.

This seems a bit too much. Meaning the include files for all Modules would be
present even if only one module were specified.

An improved, but sloppy, approach would be to add a new pc-file, say
"Qt5AutoToolsInclude.pc"


prefix=/usr/local/Cellar/qt/5.12.0
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${libdir}/include

host_bins=${prefix}/bin
qt_config=shared qt_framework release c++11 c++14 concurrent dbus
reduce_exports stl properties animation textcodec big_codecs codecs textdate
datestring doubleconversion filesystemiterator filesystemwatcher gestures
itemmodel proxymodel identityproxymodel library mimetype process statemachine
regularexpression settings sharedmemory sortfilterproxymodel stringlistmodel
systemsemaphore temporaryfile translation xmlstream xmlstreamreader
xmlstreamwriter

Name: Qt5 Autotools Include
Description: All Qt modules
Version: 5.12.0
Libs: -F${libdir}
Cflags: -DQT_CORE_LIB -I${includedir} -F${libdir}


Maybe the Libs should be fully populated with all the modules?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55282>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]