dlopen fail while try to load library from OFX plugin

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message


  • Posts: 19
  • Joined: Wed Nov 27, 2019 3:35 am
  • Real Name: Jun Lin

dlopen fail while try to load library from OFX plugin

PostFri Jul 31, 2020 4:30 pm


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 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.

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 5 guests