Opened 7 years ago
Closed 2 years ago
#54456 closed defect (fixed)
qtiplot @0.9.8.9_13+qtexengine+python27: build falied relating to SIP
Reported by: | uvw2 | Owned by: | NicosPavlov |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.1 |
Keywords: | Cc: | ||
Port: | qtiplot |
Description
I want to build qtiplot with python27 scripting. However, the build failed as follows.
:info:build src/scripting/qti.sip:151:35: error: use of undeclared identifier 'sipType_QDateTime' ::info:build src/scripting/qti.sip:153:81: error: use of undeclared identifier 'sipType_QDateTime' :info:build src/scripting/qti.sip:167:35: error: use of undeclared identifier 'sipType_QTime' :info:build src/scripting/qti.sip:169:69: error: use of undeclared identifier 'sipType_QTime'
Therefore, I try to add the definitions in src/scripting/qti.sip to avoid compiling errors.
--- qti.sip.orig 2017-07-10 16:48:44.000000000 +0900 +++ qti.sip.patched 2017-07-10 16:51:11.000000000 +0900 @@ -122,6 +122,8 @@ static int setCellDataHelper(Table* tabl table->clearCell(row, col); return 0; } + const sipTypeDef* sipType_QDateTime = sipFindType("QDateTime"); + const sipTypeDef* sipType_QTime = sipFindType("QTime"); switch (table->columnType(col)) { case Table::Numeric: item = PyNumber_Float(item);
Since I'm not an expert on C++, could you comment this patch is valid or invalid? Or, if anyone knows better solution to build qtiplot with python scripting support, could you help me?
Attachments (1)
Change History (3)
Changed 7 years ago by uvw2
comment:1 Changed 7 years ago by mf2k (Frank Schima)
Owner: | set to NicosPavlov |
---|---|
Port: | qtiplot added |
Status: | new → assigned |
comment:2 Changed 2 years ago by barracuda156
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
In the future, please fill in the Port field and Cc the port maintainers (
port info --maintainers qtiplot
), if any.