Page 1 of 1

dlopen fail while try to load library from OFX plugin

PostPosted: Fri Jul 31, 2020 4:30 pm
by cpluser

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
                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 - Jul 31 2020 22:54:15 Build
2020-07-31 22:54:37.825 load SO failed! /lib64/ 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.