Boost logo

Boost-Build :

Subject: [Boost-build] [boost-build] Qt include uic generated header
From: Steve Lorimer (steve.lorimer_at_[hidden])
Date: 2016-03-03 16:43:11


Hi folks

I'm trying to generate some jamfiles for qicstable (
https://gitlab.com/ics-qicstable/qicstable)

They have an addon which adds html features to their table. Part of this
requires the .ui file to be compiled with the uic tool.

*The generated file is
.../bin/gcc-4.9.2/debug/link-static/threading-multi/ui_QicsHTMLExportDialog.h*

In one of the provided examples which shows the use of this addon, that
generated header cannot be found.

*fatal error: ui_QicsHTMLExportDialog.h: No such file or directory*

How can I specify where the example binary can find this header?

This is the Jamfile for the library:

*lib qicstable*
*: [ glob src/*.cpp include/*.h addons/printing/*.cpp addons/printing/*.h
addons/printing/*.ui ]*
* /qt5//QtCore/<link>shared*
* /qt5//QtWidgets/<link>shared*
* /qt5//QtGui/<link>shared*
* /qt5//QtXml/<link>shared*
* /qt5//QtPrintSupport/<link>shared*
*: <include>include*
* <include>addons/printing*
* <cxxflags>-fPIC*
*:*
*: <include>.*
* <include>include*
* <include>addons/printing*
* <cxxflags>-fPIC*
*;*

*lib qicstable_html*
*: [ glob addons/table.html/*.cpp addons/table.html/*.h
addons/table.html/*.ui ]*
* qicstable*
*: <include>addons/table.html*
*:*
*: <include>addons/table.html*
*;*

This is the Jamfile for the example application stocks2 (
https://gitlab.com/ics-qicstable/qicstable/tree/master/examples/stocks2)

*exe stocks2*
*: [ glob *.cpp *.h *.qrc *.ui ]*
* /cay/3rd-party/qicstable//qicstable_html*
*;*

Here is the bjam output:

*$ bjam -d2 examples/stocks2 -q -a*

...patience...
...found 1299 targets...
...updating 288 targets...
qt5.uic
../../3rd-party/qicstable/bin/gcc-4.9.2/debug/link-static/threading-multi/ui_QicsPrintDialog.h

    $QTDIR/bin/uic
../../3rd-party/qicstable/addons/printing/QicsPrintDialog.ui -o
../../3rd-party/qicstable/bin/gcc-4.9.2/debug/link-static/threading-multi/ui_QicsPrintDialog.h

qt5.uic
../../3rd-party/qicstable/bin/gcc-4.9.2/debug/link-static/threading-multi/ui_QicsPrintPreviewDialog.h

    $QTDIR/bin/uic
../../3rd-party/qicstable/addons/printing/QicsPrintPreviewDialog.ui -o
../../3rd-party/qicstable/bin/gcc-4.9.2/debug/link-static/threading-multi/ui_QicsPrintPreviewDialog.h

qt5.uic
../../3rd-party/qicstable/bin/gcc-4.9.2/debug/link-static/threading-multi/ui_QicsHTMLExportDialog.h

    $QTDIR/bin/uic
../../3rd-party/qicstable/addons/table.html/QicsHTMLExportDialog.ui -o
../../3rd-party/qicstable/bin/gcc-4.9.2/debug/link-static/threading-multi/ui_QicsHTMLExportDialog.h

gcc.compile.c++
../../3rd-party/qicstable/examples/stocks2/bin/gcc-4.9.2/debug/link-static/threading-multi/stocksorterdelegate.o

    "ccache" "g++" -ftemplate-depth-128 -std=c++14 -Werror -Wall -m64
-msse2 -msse4.2 -mfpmath=sse -funroll-loops -O0 -fno-inline -Wall -g -fPIC
-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DQT_CORE_LIB -DQT_GUI_LIB
-DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB
 -I"$QTDIR/include" -I"$QTDIR/include/QtCore" -I"$QTDIR/include/QtGui"
-I"$QTDIR/include/QtPrintSupport" -I"$QTDIR/include/QtWidgets"
-I"$QTDIR/include/QtXml" -I"../.." -I"../../3rd-party"
-I"../../3rd-party/qicstable" -I"../../3rd-party/qicstable/addons/printing"
-I"../../3rd-party/qicstable/addons/table.html"
-I"../../3rd-party/qicstable/include" -I"/usr/include"
-I"/usr/local/include" -c -o
"../../3rd-party/qicstable/examples/stocks2/bin/gcc-4.9.2/debug/link-static/threading-multi/stocksorterdelegate.o"
"../../3rd-party/qicstable/examples/stocks2/stocksorterdelegate.cpp"

gcc.compile.c++
../../3rd-party/qicstable/examples/stocks2/bin/gcc-4.9.2/debug/link-static/threading-multi/stockdata.o

    "ccache" "g++" -ftemplate-depth-128 -std=c++14 -Werror -Wall -m64
-msse2 -msse4.2 -mfpmath=sse -funroll-loops -O0 -fno-inline -Wall -g -fPIC
-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DQT_CORE_LIB -DQT_GUI_LIB
-DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB
 -I"$QTDIR/include" -I"$QTDIR/include/QtCore" -I"$QTDIR/include/QtGui"
-I"$QTDIR/include/QtPrintSupport" -I"$QTDIR/include/QtWidgets"
-I"$QTDIR/include/QtXml" -I"../.." -I"../../3rd-party"
-I"../../3rd-party/qicstable" -I"../../3rd-party/qicstable/addons/printing"
-I"../../3rd-party/qicstable/addons/table.html"
-I"../../3rd-party/qicstable/include" -I"/usr/include"
-I"/usr/local/include" -c -o
"../../3rd-party/qicstable/examples/stocks2/bin/gcc-4.9.2/debug/link-static/threading-multi/stockdata.o"
"../../3rd-party/qicstable/examples/stocks2/stockdata.cpp"

gcc.compile.c++
../../3rd-party/qicstable/examples/stocks2/bin/gcc-4.9.2/debug/link-static/threading-multi/stockapp.o

    "ccache" "g++" -ftemplate-depth-128 -std=c++14 -Werror -Wall -m64
-msse2 -msse4.2 -mfpmath=sse -funroll-loops -O0 -fno-inline -Wall -g -fPIC
-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DQT_CORE_LIB -DQT_GUI_LIB
-DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB
 -I"$QTDIR/include" -I"$QTDIR/include/QtCore" -I"$QTDIR/include/QtGui"
-I"$QTDIR/include/QtPrintSupport" -I"$QTDIR/include/QtWidgets"
-I"$QTDIR/include/QtXml" -I"../.." -I"../../3rd-party"
-I"../../3rd-party/qicstable" -I"../../3rd-party/qicstable/addons/printing"
-I"../../3rd-party/qicstable/addons/table.html"
-I"../../3rd-party/qicstable/include" -I"/usr/include"
-I"/usr/local/include" -c -o
"../../3rd-party/qicstable/examples/stocks2/bin/gcc-4.9.2/debug/link-static/threading-multi/stockapp.o"
"../../3rd-party/qicstable/examples/stocks2/stockapp.cpp"

gcc.compile.c++
../../3rd-party/qicstable/examples/stocks2/bin/gcc-4.9.2/debug/link-static/threading-multi/stockui.o

    "ccache" "g++" -ftemplate-depth-128 -std=c++14 -Werror -Wall -m64
-msse2 -msse4.2 -mfpmath=sse -funroll-loops -O0 -fno-inline -Wall -g -fPIC
-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -DQT_CORE_LIB -DQT_GUI_LIB
-DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB
 -I"$QTDIR/include" -I"$QTDIR/include/QtCore" -I"$QTDIR/include/QtGui"
-I"$QTDIR/include/QtPrintSupport" -I"$QTDIR/include/QtWidgets"
-I"$QTDIR/include/QtXml" -I"../.." -I"../../3rd-party"
-I"../../3rd-party/qicstable" -I"../../3rd-party/qicstable/addons/printing"
-I"../../3rd-party/qicstable/addons/table.html"
-I"../../3rd-party/qicstable/include" -I"/usr/include"
-I"/usr/local/include" -c -o
"../../3rd-party/qicstable/examples/stocks2/bin/gcc-4.9.2/debug/link-static/threading-multi/stockui.o"
"../../3rd-party/qicstable/examples/stocks2/stockui.cpp"

*In file included from
../../3rd-party/qicstable/examples/stocks2/stockui.cpp:18:0:*
*../../3rd-party/qicstable/addons/printing/../../addons/table.html/QicsHTMLExportDialog.h:16:37:
fatal error: ui_QicsHTMLExportDialog.h: No such file or directory*
* #include "ui_QicsHTMLExportDialog.h"*
* ^*
compilation terminated.
...failed gcc.compile.c++
../../3rd-party/qicstable/examples/stocks2/bin/gcc-4.9.2/debug/link-static/threading-multi/stockui.o...
...failed updating 1 target...
...updated 6 targets...



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk