Loading dylib from inside the Bundle
Igor Korot <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <CA+FnnTzSYXHdxC2J+hVdj6OZ+Q7d+00-9=oOA4LL731AdAiVwQ@mail.gmail.com> |
Hi, ALL, When I tried to do this: [code] wxDynamicLibrary lib; lib.Load( "mylibrary.dylib" ); [/code] it works when the library is loaded from the place where it was built, but it doesn't when the library is located in <Bundle>/Content/Frameworks. On Windows, the code above successfully loads DLL when the DLL is located from the place where executable is. On Linux so library is successfully loaded from "/usr/local/lib", again using the code above. Now on OSX this is different. When I load the file from the place it was built - everything works. When I try to load the dylib from inside the Bundle - it fails with the error "Can't find the image". However it successfully loads the dylib file from the place where I built it - it works. So what is the proper way to load the dylib from inside the Bundle? Should my code be using ifdef here for OSX? Thank you. -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/CA%2BFnnTzSYXHdxC2J%2BhVdj6OZ%2BQ7d%2B00-9%3DoOA4LL731AdAiVwQ%40mail.gmail.com.