|
From: Banerjee, T. K <tap...@jp...> - 2019-08-05 20:15:26
|
Hi Luigi,
See below the output of configure command. I also tried to compile .cpp directly file to create jar, still got struck after some success. See below the error details.
Please suggest what else I can try,
/home/podsintr/qlib/QuantLib-SWIG-1.15 > ./configure --with-jdk-include=/usr/java/jdk1.8.0/include --with-jdk-system-include=/usr/java/jdk1.8.0/linux --prefix=/home/podsintr/qlib/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking system... Linux
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking for g++44... g++44
checking whether we are using the GNU C++ compiler... yes
checking whether g++44 accepts -g... yes
checking dependency style of g++44... none
checking whether g++44 accepts warning flags... yes
checking for QuantLib... ./configure: line 4029: quantlib-config: command not found
checking for swig... no
checking for python... /usr/bin/python
checking for perl... /usr/bin/perl
checking for ruby... no
checking for gmcs... no
checking for mcs... no
checking for gmcs2... no
checking for R... no
checking for javac... /usr/bin/javac
checking for jar... /usr/bin/jar
checking for java... /usr/bin/java
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: `CSharp/Makefile.in' # We don’t have C# compiler, so thought it is OK to infore.
..
== in config script
…..
# check for QuantLib
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QuantLib" >&5
4028 $as_echo_n "checking for QuantLib... " >&6; }
4029 ql_version=`quantlib-config --version`
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_version" >&5
4031 $as
# Also tried to attempt directly building Quantlib.jar – after some progreass, still struck.
/usr/bin/g++44 -c quantlib_wrap.cpp -fpic -I/usr/java/jdk1.8.0/include -I/usr/java/jdk1.8.0/include/linux -I/home/podsintr/qlib/QuantLib-1.15 -I /home/podsintr/qlib/boost_1_56_0
output
-rw-r--r-- 1 podsintr as_web0 30491568 Aug 5 15:51 quantlib_wrap.o
/home/podsintr/qlib/QuantLib-SWIG-1.15/Java > g++44 -shared quantlib_wrap.o -Wl, -o quantlib_wrap.so -lquantlib -L/home/podsintr/qlib/QuantLib-1.15
quantlib_wrap.o: file not recognized: File format not recognized
From: Luigi Ballabio [mailto:lui...@gm...]
Sent: Monday, August 05, 2019 3:57 PM
To: Banerjee, Tapas K <tap...@jp...>
Cc: QuantLib developers <qua...@li...>
Subject: Re: [Quantlib-dev] QuantLib-SWIG-1.15 build issue
May you post the full output of the ./configure command?
Luigi
On Mon, Aug 5, 2019 at 8:39 PM Banerjee, Tapas K via QuantLib-dev <qua...@li...<mailto:qua...@li...>> wrote:
Hi,
I fail to build Java QuantLib-SWIG library, with below error.
When I execute Makefile –C Java , I get error “No targets specified and no makefile found. Stop.”
Any idea, what can do to fix?
Thanks,
/home/podsintr/qlib/QuantLib-SWIG-1.15 ./configure --with-jdk-include=/usr/java/jdk1.8.0/include --with-jdk-system-include=/usr/java/jdk1.8.0/linux --prefix=/home/podsintr/qlib/
/home/podsintr/qlib/QuantLib-SWIG-1.15 > make -C Java
make: Entering directory `/lfs/fs00/dev/home/podsintr/qlib/QuantLib-SWIG-1.15/Java'
make: *** No targets specified and no makefile found. Stop.
make: Leaving directory `/lfs/fs00/dev/home/podsintr/qlib/QuantLib-SWIG-1.15/Java'
I see Makefiles are present in Java dir
/home/podsintr/qlib/QuantLib-SWIG-1.15 > ls Java/Ma*
Java/Makefile.am<https://secureweb.jpmchase.net/readonly/http:/Makefile.am> Java/Makefile.in<https://secureweb.jpmchase.net/readonly/http:/Makefile.in>
Below is excerpts from Makefile. I removed other files e.g. R, CSharp etc, as I am interested only in Java build.
Any pointers?
Thanks,
Makefile
…
SUBDIRS = Java
EXTRA_DIST = \
ChangeLog.txt \
LICENSE.TXT \
News.md<https://secureweb.jpmchase.net/readonly/http:/News.md> \
Readme.txt \
autogen.sh<https://secureweb.jpmchase.net/readonly/http:/autogen.sh>
all: all-recursive
.SUFFIXES:
am--refresh: Makefile
@:
$(srcdir)/Makefile.in<https://secureweb.jpmchase.net/readonly/http:/Makefile.in>: $(srcdir)/Makefile.am<https://secureweb.jpmchase.net/readonly/http:/Makefile.am> $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
$(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
&& exit 0; \
exit 1;; \
esac; \
done; \
…….
This message is confidential and subject to terms at:https://www.jpmorgan.com/emaildisclaimer including on confidential, privileged or legal entity information, viruses and monitoring of electronic messages. If you are not the intended recipient, please delete this message and notify the sender immediately. Any unauthorized use is strictly prohibited.
_______________________________________________
QuantLib-dev mailing list
Qua...@li...<mailto:Qua...@li...>
https://lists.sourceforge.net/lists/listinfo/quantlib-dev<https://secureweb.jpmchase.net/readonly/https:/lists.sourceforge.net/lists/listinfo/quantlib-dev>
This message is confidential and subject to terms at: https://www.jpmorgan.com/emaildisclaimer including on confidential, privileged or legal entity information, viruses and monitoring of electronic messages. If you are not the intended recipient, please delete this message and notify the sender immediately. Any unauthorized use is strictly prohibited.
|