All,
Thanks to the great help of Ari on this list, i've been able to get the Java bindings to compile. For otherws with similar questions in the future, here's the short answer on what to run in the QuantLib-SWIG-xxx/Java library after doing 'configure/make -C Java' in top-level: --- g++ -c quantlib_wrap.cpp -I<platform specific JVM includes> g++ -shared quantlib_wrap.o -Wl,--add-stdcall-alias -o quantlib_wrap.so -lquantlib -L<path to quantlib lib> That should build the wrapper shared lib. Then in you java program you nead to load that lib and have it and the quantlib lib on the LD_LIBRARY_PATH --- For the long version, see the attached writeup from our wiki. Again, huge thanks for the help on getting this to work. And if someone knows who I can to talk to incorporate the changes into the distribution so as to avoid manual work in the future, please let me know. On 12/13/06, Toli Kuznets <[hidden email]> wrote: > Hey everyone, > > This may be a newbie question - i'm new to QuantLib. > > I'm trying to build the Java SWIG bindings on Ubuntu. > I have the binary version of quantlib-0.3.12 already installed, along with swig. > > In the QuantLib-SWIG-0.3.12 directory, i run ./configure and then make -C Java. > That creates the org/quantlib/*.java files, along with quantlib_wrap.cpp > > however, it then exits with " Nothing to be done for `all-am'." and doesn't > produce an actual C++ wrapper for quantlib. > > I can compile the Java files, but how do i create the C++ wrapper? > > running 'make' from top-level results in a different error, it fails somewhere > in Python compilation. > > I have Ubuntu 6.10, quantlib-0.3.12, automake 1.9.6 > > I've tried following the Eclipse-based instructions with Skwash, but that > didin't work for me either. > > Is there no command-line way to build java swig bindings? > Or is there something obvious that i'm missing? > -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum=quantlib-users/attachments/20061214/4a972319/attachment.html |
On Thu, 2006-12-14 at 18:25 -0800, Toli Kuznets wrote:
> And if someone knows who I can to talk to incorporate the changes into the > distribution so as to avoid manual work in the future, please let me > know. That would be me. I'll try and follow the procedure myself so that I can include it in the build process. Thanks for sharing Ari's insights (I hadn't received the post myself.) Later, Luigi ---------------------------------------- The First Rule of Optimization: Don't do it. The Second Rule of Optimization (For experts only): Don't do it yet. -- Michael Jackson |
Sorry, that was not very 'community' of me. I had played with the Java bindings sometime ago as I am also interested in using QuantLib this way. I have not had more time to play with it since then nor time to contribute any updates on the steps I had to go through to get it up and running that Toli was facing (Although the skwash site does a good job, I wanted to build from the command line). As well, the bindings for Java were a bit lighter than for perl and pyhton and had to make some updates to expose more pricing engines and some methods on other classes. Overall it is great support for Java to start out with and hopefully when I have more time I can contribute some of these updates. -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Luigi Ballabio Sent: Friday, December 15, 2006 3:01 AM To: Toli Kuznets Cc: [hidden email]; [hidden email] Subject: Re: [Quantlib-users] [Quantlib-dev] Building the Java swig bindings to quantlib On Thu, 2006-12-14 at 18:25 -0800, Toli Kuznets wrote: > And if someone knows who I can to talk to incorporate the changes > into the distribution so as to avoid manual work in the future, please > let me know. That would be me. I'll try and follow the procedure myself so that I can include it in the build process. Thanks for sharing Ari's insights (I hadn't received the post myself.) Later, Luigi ---------------------------------------- The First Rule of Optimization: Don't do it. The Second Rule of Optimization (For experts only): Don't do it yet. -- Michael Jackson ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. -------- IRS Circular 230 Disclosure: Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein. |
Free forum by Nabble | Edit this page |