configure: error: Could not find a version of the library!

69 views
Skip to the first unread message

Rabia Khan

unread,
19 May 2021, 1:48:00 pm19/5/21
to opendnp3
Hello

I want to build the Java JNI bindings for the OpenDNP3 library from https://github.com/gec/dnp3.

after autoreconf -f -i, when I ./configure --with-java=/path/to/jdk/include, it is giving an error. However if I am trying to run it with other platfom it is giving me the same error.
the error is:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
checking for g++... g++
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 g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for boostlib >= 1.43... yes
checking for gcc... gcc
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... gcc3
checking whether the Boost::Date_Time library is available... yes
configure: error: Could not find a version of the library!

I have swig installed. I have tried ./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu

It is not working. I am using UBUNTU 21.04, arm64, 64bit.

I have spent time on fixing with the link below. It did not work out.
https://stackoverflow.com/questions/53089494/configure-error-could-not-find-a-version-of-the-library

Please see the attached config.log file
config.log

I have tried to do the same thing on a raspbian. I still have the same problem. Not sure what is the problem.

Please assist me. Thanks

Adam Crain

unread,
19 May 2021, 1:49:10 pm19/5/21
to opendnp3
That's an older fork of the library.

You want to be looking here:

Rabia Khan

unread,
19 May 2021, 4:49:13 pm19/5/21
to opendnp3
Thank you for your reply. I will try it and update the progress :-)

Rabia Khan

unread,
19 May 2021, 4:49:16 pm19/5/21
to opendnp3
I actually to build an openFMB adapter  GitHub - gec/openfmb-dds-adapters, that requires me to build dnp3 with java JNI. So I do not know how would I use  https://github.com/dnp3/opendnp3/ to build it with java JNI and then use it as required. It seems another task for me. Please let me know if anyone has an idea about it?

On Wednesday, May 19, 2021 at 6:49:10 PM UTC+1 ad...@stepfunc.io wrote:

Adam Crain

unread,
17 June 2021, 1:40:17 pm17/6/21
to opendnp3
These are unrelated projects.  We cannot support them here.
Reply all
Reply to author
Forward
0 new messages