Hello!

I am new on this list, so please forgive me, that I did not wait the grace 
period before I post my first question here, but I have now some free time, and 
I try to use it to fix my broken Adium plugin.

I created this little plugin:
https://github.com/gklka/adium-facebook-chat-button

All what this makes is, that it puts a toolbar item into the chat window if the 
user chats on Facebook chat. Pressing the button opens the chat page in the 
browser.

Since Adium 1.5.x the my plugin does not work, the error is the following:

14.08.20. 0:42:43,934 Adium[16887]: Error loading /Users/gk/Library/Application 
Support/Adium 
2.0/PlugIns/FacebookChatLinkToolbarItemPlugin.AdiumPlugin/Contents/MacOS/FacebookChatLinkToolbarItemPlugin:
  dlopen(/Users/gk/Library/Application Support/Adium 
2.0/PlugIns/FacebookChatLinkToolbarItemPlugin.AdiumPlugin/Contents/MacOS/FacebookChatLinkToolbarItemPlugin,
 265): Library not loaded: 
@executable_path/../Frameworks/libpurple.framework/Versions/2.10.7ra97104490e3e/libpurple
  Referenced from: /Users/gk/Library/Application Support/Adium 
2.0/PlugIns/FacebookChatLinkToolbarItemPlugin.AdiumPlugin/Contents/MacOS/FacebookChatLinkToolbarItemPlugin
  Reason: image not found

14.08.20. 0:42:43,934 Adium[16887]: Failed to obtain principal class from 
plugin "FacebookChatLinkToolbarItemPlugin.AdiumPlugin" 
("/Users/gk/Library/Application Support/Adium 
2.0/PlugIns/FacebookChatLinkToolbarItemPlugin.AdiumPlugin")! infoDictionary: {
    AIMinimumAdiumVersionRequirement = "1.5";
    BuildMachineOSBuild = 13E28;
    CFBundleDevelopmentRegion = English;
    CFBundleExecutable = FacebookChatLinkToolbarItemPlugin;
    CFBundleIdentifier = "hu.lka.gk.FacebookChatLinkToolbarItemPlugin";
    CFBundleInfoDictionaryVersion = "6.0";
    CFBundleInfoPlistURL = "Contents/Info.plist -- 
file://localhost/Users/gk/Library/Application%20Support/Adium%202.0/PlugIns/FacebookChatLinkToolbarItemPlugin.AdiumPlugin/";
    CFBundleName = FacebookChatLinkToolbarItemPlugin;
    CFBundleNumericVersion = 16809984;
    CFBundlePackageType = BNDL;
    CFBundleShortVersionString = "1.0";
    CFBundleSignature = AdIM;
    CFBundleVersion = 1;
    DTCompiler = "com.apple.compilers.llvm.clang.1_0";
    DTPlatformBuild = 6A280e;
    DTPlatformVersion = GM;
    DTSDKBuild = 14A329d;
    DTSDKName = "macosx10.10";
    DTXcode = 0600;
    DTXcodeBuild = 6A280e;
    NSHumanReadableCopyright = "Copyright \U00a9 2013 GKSoftware. All rights 
reserved.";
    NSPrincipalClass = FacebookChatLinkToolbarItemPlugin;
}

I guess the problem is that Adium changed internally so much, that my plugin 
does not compile with it. I replaced the included frameworks with the current 
ones from the mercurial source tree, but got the following error:

AdiumLibpurple/AIFacebookXMPPAccount.h file not found

…because of course it isn’t. Can you tell me what happened to it? Is it moved 
or replaced by some other thing? I need the AIFacebookXMPPAccount class from it 
to test if the chat contact is a kind of that or not.

If I remove this code (I don’t want to remove it permanently, just for 
testing), I got an another error: 

'glib.h' file not found in gaim-compat.h.

I don’t understand this error, because I have libglib added to my project.

Could you please help me what to do? Maybe my source code is totally wrong, 
these are my first baby steps in OS X programming (I made only slightly smaller 
iOS projects before).

-- 
Gruber Kristóf


Reply via email to