Skip to content

Commit

Permalink
Mac OS X: Attempting to fix a plugin loading failure with Qt 4.7
Browse files Browse the repository at this point in the history
It seems that Qt 4.6 and 4.7 can't load libraries automatically from
within bundles? Let's see if this helps at all...
  • Loading branch information
skyjake committed Oct 28, 2012
1 parent dc694aa commit 2e98f0c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doomsday/libdeng2/src/core/library.cpp
Expand Up @@ -29,19 +29,20 @@ Library::Library(const String& nativePath)
{
LOG_AS("Library::Library");

/*
#ifdef MACOSX
// If the library happens to be in a bundle, just use the bundle path.
String path = nativePath;
if(path.fileNamePath().fileNameExtension() == ".bundle")
{
path = path.fileNamePath();
path = path; //.fileNamePath().fileNameWithoutExtension();
}
LOG_TRACE("%s") << path;
_library = new QLibrary(path);
#else
#else*/
LOG_TRACE("%s") << nativePath;
_library = new QLibrary(nativePath);
#endif
//#endif
_library->setLoadHints(QLibrary::ResolveAllSymbolsHint);
_library->load();

Expand Down

0 comments on commit 2e98f0c

Please sign in to comment.