How to properly use a .dylib in a plugin on OSX?
Hi all
If after using the help much appreciated here on the forums, I managed to load a third party DLL that I needed to use in my plugin on Windows. Now I'm moving on OSX and have a .dylib file, which is actually the equivalent of the DLL in OSX. My question is how can I properly load the .dylib on OSX for my plugin to work in AE?
Thanks a lot for your time and help!
Best,
Arie
Ah, ok, that should make things easier. So where do you put your dylib file? Even as with Windows, it must be in a location that is referenced in the path environment variable or the location of the calling application. Easy to test thing will probably be if you put it in/usr/lib or/usr/lib (for global access) or for only the current user's ~/lib.
See also here: using the dynamic libraries
Tags: After Effects
Similar Questions
-
How to properly use the OCILobWrite2?
Hello world
I am fairly new to Oracle and Oracle Database development. In the database, I have a few stored procedures in C/C++. Some of them have a power of varchar2. Unfortunately, it is limited to a specific length of characters. But these procedures sometimes give great performance. That's why I wanted to use a lob as output. But I unfortunately did not get output in the lob.
This is how I want to write to the lob:
That's how I registered the function in the Oracle database:extern "C" DLLEXPORT void version(OCIExtProcContext* context, OCILobLocator **out, sb4 *ind_out){ OCIEnv* envh; OCISvcCtx* svch; OCIError* errh; OCIExtProcGetEnv (context, &envh, &svch, &errh); std::string versioninfo = "104"; oraub8 maxChar = 10; OCIDescriptorAlloc(envh, (dvoid **) out, (ub4) OCI_DTYPE_LOB, /* Type of Descriptor */ (size_t) 0, (dvoid **) 0); OCILobTrim2(svch, errh, *out, (ub4)1); OCILobWrite2(/*svcctx*/svch, /*errh*/errh, /*ociloblocator*/*out, /*byte_amtp*/NULL, /*char_amtp*/&maxChar, /*offset*/1, /*bufp*/(void*)versioninfo.c_str(), /*buflen*/versioninfo.size(), /*piece*/OCI_ONE_PIECE, /*context for callback*/NULL, /*callback*/NULL, /*csid*/0, /*csfrm*/SQLCS_IMPLICIT); *ind_out = 0; }
I call the following stored procedure:create or replace procedure version(versioninfo OUT clob) as external name "version" library myLib language c with context parameters (context, versioninfo, versioninfo INDICATOR SB4);
It gives me just an empty line without the desired contents of versioninfo.declare res clob; begin -- the following doesnt help much --dbms_lob.createtemporary(res,true); version(res); dbms_output.put_line(res); end;
How can I use OCILobWrite2?
ConcerningSolved by using "OCILobCreateTemporary" before working with this CLOB.
OCIDescriptorAlloc(envh, (dvoid **) out, (ub4) OCI_DTYPE_LOB, /* Type of Descriptor */ (size_t) 0, (dvoid **) 0); OCILobCreateTemporary(svch, errh, *out, 0, SQLCS_IMPLICIT, OCI_TEMP_CLOB, OCI_ATTR_NOCACHE, OCI_DURATION_CALL); ub4 amt = static_cast
(result.size()); OCILobTrim2(svch, errh, *out, (ub4)amt); oraub8 amtp = static_cast (result.size()); OCILobWrite2(/*svcctx*/svch, /*errh*/errh, /*ociloblocator*/*out, /*byte_amtp*/NULL, /*char_amtp*/&amtp, /*offset*/1, /*bufp*/reinterpret_cast (const_cast (result.c_str())), /*buflen*/amt, /*piece*/OCI_ONE_PIECE, /*context for callback*/NULL, /*callback*/NULL, /*csid*/0, /*csfrm*/SQLCS_IMPLICIT); *ind = 0; -
How to properly use the "blackberry.app.exit"/"swipemenu"?
Hello developers BB!
Can someone show me how to use this feature? I use a physical PlayBook.
I tried to use the following code:
The config.xml file have this feature:
But when touching, nothing happens.
The bbui.js is necessary?
Or I use the wrong library/code?
Also how to call an action by using the upper frame by scanning?
for example:
function something()
{
use the topswipe
blah blah blah, this is the case
}
Thanks in advance for answers!
Once more, I am so used to seeing the reference to the webworks.js file, I has not yet noticed that was missing in your sample.
You must include the library that defines the API blackberry.*. Here's how you do that: