Opened 3 years ago

Last modified 3 years ago

#54456 assigned defect

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)

main.log (1.1 MB) - added by uvw2 3 years ago.

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by uvw2

Attachment: main.log added

comment:1 Changed 3 years ago by mf2k (Frank Schima)

Owner: set to NicosPavlov
Port: qtiplot added
Status: newassigned

In the future, please fill in the Port field and Cc the port maintainers (port info --maintainers qtiplot), if any.

Note: See TracTickets for help on using tickets.