Hi,
I tried to use QT API in my OFX plugin, but it failed to load it from OFX. The issue likes below,
1. we compile a dynamic library *.so by Makefile
2. implement a class which derive from QObject in *.so, like below
- Code: Select all
class CQtIO : public QObject, public CBaseIO
{
Q_OBJECT
public:
CQtIO();
virtual ~CQtIO();
...
...
}
3. when OFX plugin try to dlopen this library, it show below error,
2020-07-31 22:54:37.823 load os wrapper libOSWrapper.so... - Jul 31 2020 22:54:15 Build
2020-07-31 22:54:37.825 load SO failed! /lib64/libOSWrapper.so: undefined symbol: _ZN9QMetaType22registerNormalizedTypeERK10QByteArrayPFvPvEPFS3_S3_PKvEi6QFlagsINS_8TypeFlagEEPK11QMetaObject
4. seems QMetaType::registerNormalizedType not implement in CQtIO, maybe the requirement comes from macro Q_OBJECT
anyone can help? thanks.