diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2023-01-22 15:01:29 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-01-23 02:57:40 +0100 |
commit | 4feca443fb45a87fa971fe7f24c9dd3128643c19 (patch) | |
tree | cafb62865ab0f282e8d8a4b0f8765e173e4f36c3 /README.SunOS | |
parent | 16434e5519f6224e231bc5f7202f0e495eda7bb7 (diff) | |
download | pytqt-4feca443fb45a87fa971fe7f24c9dd3128643c19.tar.gz pytqt-4feca443fb45a87fa971fe7f24c9dd3128643c19.zip |
temporary commit to show changes
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'README.SunOS')
-rw-r--r-- | README.SunOS | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/README.SunOS b/README.SunOS index 139c964..1d1629c 100644 --- a/README.SunOS +++ b/README.SunOS @@ -1,22 +1,22 @@ o Compiler Error: CC -DHAVE_CONFIG_H -I. -I. -I.. - -I/users/toollib/include/python2.0 -I/users/pyqt/install/sip-3.2.1/include - -I/users/pyqt/install/qt-x11-commercial-3.0.4/include -I/usr/openwin/include - -c qtcmodule.cpp -KPIC -DPIC -o qtcmodule.o - "sipqtProxyqt.h", line 113: Error: Multiple declaration for - sipProxyqt::proxySlot(int). - "qtcmodule.cpp", line 5393: Error: sipProxyqt::proxySlot(int) already had a + -I/users/toollib/include/python3.10 -I/users/pytqt/install/sip-tqt/include + -I/users/pytqt/install/tqt3/include -I/usr/openwin/include + -c tqtcmodule.cpp -KPIC -DPIC -o tqtcmodule.o + "siptqtProxytqt.h", line 113: Error: Multiple declaration for + sipProxytqt::proxySlot(int). + "tqtcmodule.cpp", line 5393: Error: sipProxytqt::proxySlot(int) already had a body defined. This occurs because the Sun Workshop C++ 4.2 compiler (and the Sun Forte C++ 6.x compiler with -compat) can not distinguish between 'bool' and 'int' types in overloaded method signatures and issues a compiler error. - In this case bool is declared in qt/include/qglobal.h as + In this case bool is declared in tqt/include/tqglobal.h as 'typedef int bool;'. To workaround this '#if 0' out the the declaration - and body of 'proxySlot(bool)' in PyTQt/qt/sipqtProxyqt.h and - PyTQt/qt/qtcmodule.cpp. This resolves the compiler error but breaks + and body of 'proxySlot(bool)' in PyTQt/tqt/siptqtProxytqt.h and + PyTQt/tqt/tqtcmodule.cpp. This resolves the compiler error but breaks any 'sig(bool)' type signals. To workaround this, save the - PyTQt/qt/sipqtProxyqt.moc generated after fixing the compiler error and + PyTQt/tqt/siptqtProxytqt.moc generated after fixing the compiler error and add the following bits of code: ... @@ -29,13 +29,13 @@ { "proxySlot(bool)", &slot_42, TQMetaData::Public } }; metaObj = TQMetaObject::new_metaobject( - "sipProxyqt", parentObject, + "sipProxytqt", parentObject, slot_tbl, 43, ... case 42: proxySlot(static_QUType_bool.get(_o+1)); break; - You will need to comment out the line in PyTQt/qt/Makefile that re-generates - PyTQt/qt/sipqtProxyqt.moc with moc to avoid the above changes from being + You will need to comment out the line in PyTQt/tqt/Makefile that re-generates + PyTQt/tqt/siptqtProxytqt.moc with moc to avoid the above changes from being overwritten. In order to test that everything has been done correctly, create a |