QuantLib Java bridge not compiling

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

QuantLib Java bridge not compiling

Alecsandru Chirosca-2
Dear all,

I am just starting to use QuantLib and the first step I took was to
compile the Java bridge but I encountered :

[xxxxx@localhost Java]# make
java -c++ -I../SWIG -outdir org/quantlib \
            -package org.quantlib -o quantlib_wrap.cpp quantlib.i
Unrecognized option: -c++
Could not create the Java virtual machine.
make: [quantlib_wrap.cpp] Error 1 (ignored)
make  all-am
make[1]: Entering directory `/root/work/QuantLib/QuantLib-SWIG-0.9.7/Java'
java -c++ -I../SWIG -outdir org/quantlib \
            -package org.quantlib -o quantlib_wrap.cpp quantlib.i
Unrecognized option: -c++
Could not create the Java virtual machine.
make[1]: [quantlib_wrap.cpp] Error 1 (ignored)
g++ -c quantlib_wrap.cpp -fno-strict-aliasing -g -O2
-I/opt/jdk1.5.0_17/include -I/opt/jdk1.5.0_17/include/linux
`quantlib-config --cflags` -o quantlib_wrap.o
g++: quantlib_wrap.cpp: No such file or directory
g++: no input files
make[1]: *** [quantlib_wrap.o] Error 1
make[1]: Leaving directory `/root/work/QuantLib/QuantLib-SWIG-0.9.7/Java'
make: *** [all] Error 2
[xxxxx@localhost Java]#

QuantLib is installed with the Boost environment :

QuantLib:
[root@localhost Java]# rpm -qa | grep QuantLib
QuantLib-test-0.9.7-3.fc10.i386
QuantLib-devel-0.9.7-3.fc10.i386
QuantLib-doc-0.9.7-3.fc10.i386
QuantLib-0.9.7-3.fc10.i386

Boost
[root@localhost Java]# rpm -qa | grep boost
boost-1.34.1-17.fc10.i386
boost-devel-1.34.1-17.fc10.i386

c :
[root@localhost Java]# c++ --version
c++ (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Can someone help me please with this error?


Best Regards,
Alecsandru Chirosca

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib Java bridge not compiling

Luigi Ballabio
On Fri, 2009-02-06 at 14:09 +0200, Alecsandru Chirosca wrote:
> I am just starting to use QuantLib and the first step I took was to
> compile the Java bridge but I encountered :
>
> [xxxxx@localhost Java]# make
> java -c++ -I../SWIG -outdir org/quantlib \
>             -package org.quantlib -o quantlib_wrap.cpp quantlib.i
> Unrecognized option: -c++

That should have been

swig -java -c++ etc.

Either you don't have SWIG installed, or ./configure didn't find it.
Am I right?

Luigi


--

If I do not want others to quote me, I do not speak.
-- Phil Wayne



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib Java bridge not compiling

Alecsandru Chirosca-2
Thanks,

I don't have swig installed.
Where can I get it from?



Best Regards,
Alecsandru Chirosca

On Fri, Feb 6, 2009 at 2:55 PM, Luigi Ballabio <[hidden email]> wrote:

> On Fri, 2009-02-06 at 14:09 +0200, Alecsandru Chirosca wrote:
>> I am just starting to use QuantLib and the first step I took was to
>> compile the Java bridge but I encountered :
>>
>> [xxxxx@localhost Java]# make
>> java -c++ -I../SWIG -outdir org/quantlib \
>>             -package org.quantlib -o quantlib_wrap.cpp quantlib.i
>> Unrecognized option: -c++
>
> That should have been
>
> swig -java -c++ etc.
>
> Either you don't have SWIG installed, or ./configure didn't find it.
> Am I right?
>
> Luigi
>
>
> --
>
> If I do not want others to quote me, I do not speak.
> -- Phil Wayne
>
>
>

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: QuantLib Java bridge not compiling

Luigi Ballabio
On Fri, 2009-02-06 at 17:59 +0200, Alecsandru Chirosca wrote:
> I don't have swig installed.
> Where can I get it from?

<http://www.swig.org/>

Luigi


--

To err is human -- to blame it on a computer is even more so.
-- unknown



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users