smoke testing Beta 1

Dirk Hohndel dirk at hohndel.org
Thu Sep 3 22:48:03 PDT 2015


> On Sep 3, 2015, at 6:28 PM, Thiago Macieira <thiago at macieira.org> wrote:
> 
> On Friday 04 September 2015 00:01:28 Robert C. Helling wrote:
>> Found metadata in lib
>> /Applications/Subsurface.app/Contents/PlugIns/grantlee/5.0/grantlee_default
>> tags.so, metadata= {
>> 
>>    "IID": "org.grantlee.TagLibraryInterface",
>>    "MetaData": {
>>    },
>>    "className": "DefaultTagLibrary",
>>    "debug": false,
>>    "version": 328961
>> 
>> }
> 
> This looks fine. That version there is 0x50501 and is the same as the other 
> plugins that did get loaded.
> 
> But then the actual dlopen failed:
> 
>> loaded library
>> "/Applications/Subsurface.app/Contents/PlugIns/grantlee/5.0/grantlee_defaul
>> ttags.so" QLibraryPrivate::loadPlugin failed on
>> "/Applications/Subsurface.app/Contents/PlugIns/grantlee/5.0/grantlee_defaul
>> ttags.so" : "Cannot load library
>> /Applications/Subsurface.app/Contents/PlugIns/grantlee/5.0/grantlee_default
>> tags.so:
>> (dlopen(/Applications/Subsurface.app/Contents/PlugIns/grantlee/5.0/grantlee
>> _defaulttags.so, 5): Library not loaded:
>> /Users/hohndel/src/install-root/lib/libGrantlee_Templates.5.dylib\n 
>> Referenced from:
>> /Applications/Subsurface.app/Contents/PlugIns/grantlee/5.0/grantlee_default
>> tags.so\n  Reason: image not found)"
> 
> Looks like grantlee_defaulttags.so could not be loaded because 
> /Users/hohndel/src/install-root/lib/libGrantlee_Templates.5.dylib was not 
> found. Note the file path.
> 
> It seems the plugins were not properly deployed and the paths to the libraries 
> properly rewritten to find the library inside the bundle.

Excellent work, Thiago, that pointed me in the right direction.
It turns out that the PlugIns/grantlee/5.0/*.so files referenced /Users/hohndel/src/install-root/lib/libGrantlee_Templates.5.dylib
Once I rewrote those to use @executable_path instead I was able to create a working bundle that prints successfully in my tests.
As I said in the last email, I still can't get it to sign the way Apple wants it to be signed, but this is progress.

/D


More information about the subsurface mailing list