Hi Damon,
On Oct 28, 2009, at 10:35 PM, Damon Jacobsen wrote:
I have switched to trying to use the MinGW compiler instead of
Borland.
ok.
I have it working for the most part now. I am curious on proper
locations of files. I am compiling a jni component that links to a
third
party library for a dll Should the lib and dll be in the jni maven
project,
or placed in another project?
yes, they should be as the jni part will not work without the library/
dll.
What is the proper directory
structure for these artifacts?
look into src/it for some test with 3rd party lib.
Will the dll be moved out with the jni
dll when loadLibrary is called?
the lib and dll will be in nar file. loadLibrary knows nothing about
nar,
so some kind of installation/assembly (and I am not sure we have that
currently)
needs to be done in the final deployment.
Do I need to explicitly add the lib file
in the linker configuration of the pom, or will the nar plugin find it
once it is in the correct location?
When you declare a "nar" project, you only depend on jar type
dependencies.
nar file will be found, downloaded and unpacked for usage.
If you create a "jar"/normal project, then some unpacking needs to be
done.
Again I am not sure we have that yet.
Sorry, I left the project dangling 2 years ago, for a different job.
Got back into it
a month ago, but have not looked at everything yet.
Regards
Mark
Damon Jacobsen
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
_____________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]