release plugin built in debug mode?
Posted: Tue Nov 12, 2019 6:12 pm
I'm using NetBSD and its pkgsrc system to build qcad 3.23.0.0 from source.
The resulting executable cannot read/import DXF drawing files, saying that
no suitable importer could be found.
On the terminal where I launched 'qcad', the message:
RPluginLoader.cpp:68, static QStringList RPluginLoader::getPluginFiles():
10:07:55: Debug: Ignoring release plugin built in debug mode: "libqcaddxf.so"
repeats numerous times.
The build log shows that the following libraries:
src/3rdparty/dxflib/libdxflib.so
src/core/libqcadcore.so
src/entity/libqcadentity.so
src/operations/libqcadoperations.so
are first built in release mode, then deleted and built in debug mode.
When they are linked into "libqcaddxf.so", it causes the plugin loader to
reject it with the message shown above.
I've hacked around it by changing the respective "Makefile.Debug" files
to rename the debug-mode libraries to not clash with the release-mode names.
Perhaps there's something missing that the pkgsrc framework should pass
to guarantee building the release mode versions of these libraries only?
Has anyone else built qcad 3.23.0.0 from source and had this happen (regardless
of build system/platform)?
Thanks.
John D. Baker
The resulting executable cannot read/import DXF drawing files, saying that
no suitable importer could be found.
On the terminal where I launched 'qcad', the message:
RPluginLoader.cpp:68, static QStringList RPluginLoader::getPluginFiles():
10:07:55: Debug: Ignoring release plugin built in debug mode: "libqcaddxf.so"
repeats numerous times.
The build log shows that the following libraries:
src/3rdparty/dxflib/libdxflib.so
src/core/libqcadcore.so
src/entity/libqcadentity.so
src/operations/libqcadoperations.so
are first built in release mode, then deleted and built in debug mode.
When they are linked into "libqcaddxf.so", it causes the plugin loader to
reject it with the message shown above.
I've hacked around it by changing the respective "Makefile.Debug" files
to rename the debug-mode libraries to not clash with the release-mode names.
Perhaps there's something missing that the pkgsrc framework should pass
to guarantee building the release mode versions of these libraries only?
Has anyone else built qcad 3.23.0.0 from source and had this happen (regardless
of build system/platform)?
Thanks.
John D. Baker