<div dir="ltr">Dear,<div><br></div><div style>I&#39;m trying to obtain a shared object for JIPOPT under linux (as is explained here: <a href="https://projects.coin-or.org/Ipopt/wiki/JavaInterface">https://projects.coin-or.org/Ipopt/wiki/JavaInterface</a>) , but I get the following error:</div>
<div style><br></div><div style>========================</div><div style><div>/opt/ipopt/build/Ipopt/contrib/JavaInterface$ make</div><div>g++ `echo -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long   -DIPOPT_BUILD | sed -e s&#39;|-pedantic-errors||&#39;`  -Wl,--rpath -Wl,/opt/ipopt/build/lib -shared -o lib/libjipopt.so jipopt.o `PKG_CONFIG_PATH=/opt/ipopt/build/lib64/pkgconfig:/opt/ipopt/build/lib/pkgconfig:/opt/ipopt/build/share/pkgconfig: /usr/bin/pkg-config --libs ipopt`</div>
<div>/usr/bin/ld: jipopt.o: relocation R_X86_64_32S against `vtable for Jipopt&#39; can not be used when making a shared object; recompile with -fPIC</div><div>jipopt.o: could not read symbols: Bad value</div><div>collect2: ld returned 1 exit status</div>
<div>make: *** [lib/libjipopt.so] Error 1</div><div>=========================</div><div><br></div><div style>This is what I&#39;ve done:</div><div style><br></div><div style>1. set my JAVA_HOME variable</div><div style>2. Downloaded the latest Ipopt from: <a href="https://projects.coin-or.org/svn/Ipopt/trunk" target="_blank" style="font-size:12.800000190734863px;font-family:arial,sans-serif">https://projects.coin-or.org/<u></u>svn/Ipopt/trunk</a></div>
<div style>3. Downloaded the necessary third party packages, including HSL for Ipopt.</div><div style>4. created a build directory inside the ipopt dir, and consecutively ran: ../configure, make, make test, make install. Both ../configure and make test returned that they were successful.</div>
<div style>5. Next I went inside the folder /opt/ipopt/build/Ipopt/contrib/JavaInterface where I ran make. The latter results in the above error.</div><div style><br></div><div style>Any suggestions on how to resolve this error?</div>
<div style><br></div><div style>br,</div><div style><br></div><div style>Joris</div></div><div style><br></div><div style><br></div><div style><br></div><div style>First I&#39;ve </div></div>