Hi all:
The following is for svn 1048 ./configure —with-android —with-libapl
Using MacOS Yosemite 10.10.5 and Xcode 6.4 and a vanilla Cocoa Document app.
In the AppDelegate code I have the following:
void *libaplHandle; // plain C file pointer
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Load libapl from default location.
const char* libaplPath="/usr/local/lib/apl/libapl.so"; // TO DO Make this path a User Preference....}
libaplHandle = dlopen(libaplPath, RTLD_LAZY|RTLD_GLOBAL);
if (NULL == libaplHandle) {
char *error = dlerror();
printf("AppDelegate - dlopen(libaplHandle) error: %s",error);
}
}
AppDelegate - dlopen(libaplHandle) error: dlopen(/usr/local/lib/apl/libapl.so, 9): Symbol not found: _CERR
Referenced from: /usr/local/lib/apl/libapl.so
Expected in: flat namespace
in /usr/local/lib/apl/libapl.so
I really have no idea why this happens. Please educate me…..
Thanks and
respect…..
Peter