mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 10:04:38 +00:00
- resolved mac/linux bug on missing plugins name preamble (i.e. in mac filter_mutualinfo.xml -> libfilter_mutualinfo.dylib in linux libfilter_mutualinfo.so in windows filter_mutualinfo.dll)
This commit is contained in:
parent
e903dbb049
commit
a895edf30e
@ -19,6 +19,17 @@ static QString DLLExtension() {
|
||||
return QString();
|
||||
}
|
||||
|
||||
static QString DLLFileNamePreamble() {
|
||||
#if defined(Q_OS_WIN)
|
||||
return QString("");
|
||||
#elif defined(Q_OS_MAC)
|
||||
return QString("lib");
|
||||
#else
|
||||
return QString("lib");
|
||||
#endif
|
||||
assert(0 && "Unknown Operative System. Please Define the appropriate dynamic library preamble");
|
||||
return QString();
|
||||
}
|
||||
|
||||
PluginManager::PluginManager()
|
||||
:currentDocInterface(NULL),scriptplugcode()
|
||||
@ -305,7 +316,7 @@ void PluginManager::loadXMLPlugin( const QString& fileName )
|
||||
if (fin.suffix() == "xml")
|
||||
{
|
||||
|
||||
QString dllfile = fin.completeBaseName() + "."+DLLExtension();
|
||||
QString dllfile = DLLFileNamePreamble() + fin.completeBaseName() + "."+DLLExtension();
|
||||
|
||||
MeshLabXMLFilterContainer fc;
|
||||
//fc.filterInterface = NULL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user