[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    RE: [CMake] CMake and swig problem
From:       Ian.Appru () ubs ! com
Date:       2006-02-24 15:04:02
Message-ID: 2A7F57AF9DE2274EA6354BFB1D21947B021B13B6 () NLDNC104PEX1 ! ubsw ! net
[Download RAW message or body]

I am trying to load the swig generated lib into the java java gen'ed
layer so I think pretty std usage.

The JDK I am using - 1.4.2_06 - completely fails to see MyJNI.so on
solaris/linux, when using loadLibrary("MyJNI") - if I rename the lib
libMyJNI.so it works fine.

I think there was some discussion in java circles of trying to load the
library without the lib prefix if the system dep name mapping failed but
doesn't look like that is implemented in my jdk version.

Fair point about the loadable modules tho - sometimes have a bit of c++
centric view.

Ian

-----Original Message-----
From: cmake-bounces+ian.appru=ubs.com@cmake.org
[mailto:cmake-bounces+ian.appru=ubs.com@cmake.org] On Behalf Of William
A. Hoffman
Sent: 24 February 2006 14:31
To: Appru, Ian; brad.king@kitware.com
Cc: cmake@cmake.org
Subject: RE: [CMake] CMake and swig problem

At 09:06 AM 2/24/2006, Ian.Appru@ubs.com wrote:
>Thanks for your reply Brad,
>
>I did (eventually) spot this line in the SWIG_ADD_MODULE macro.
>
>As I mentioned in conversation with Bill - think the thread 
>accidentally went private there - I have decided to use my own 
>UseSWIG-Java module and just remove this line.
>
>This is because I would like to use all the cmake logic in this area 
>rather than override the PREFIX property with values relevant to all 
>the platforms I am using (solaris/linux/XP).
>
>Not sure it is the swig convention to generate unix libs with no 'lib'
>prefix since it is the target language which controls this platform 
>specific requirement - java, python etc
Well, on some systems loadable modules are not libraries, and can not
even be linked to.  

Does the java stuff with the load not work without the lib prefix?
Or are you trying to link to the swig module for something else?

-Bill

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic