Dear OT Users ! I tried to build OpenTURNS with OPT++ and failed to do so.
Here is what I did. I got the sources from https://software.sandia.gov/opt++/opt++_download.html Then I built OPT++ v2.4 : cd optpp-2.4 mkdir build ../configure --prefix=$PWD/install make -j4 make check make install Finally, I configured the build, using the OPTPP_INCLUDE_DIR, OPTPP_LIBRARY and OPTPP_NEWMAT_LIBRARY keys : $ cmake .. -DCMAKE_INSTALL_PREFIX=$PWD/install -DSPHINX_FLAGS=”-j4” -DOPTPP_INCLUDE_DIR=/home/osboxes/Documents/optpp-2.4/build/install/include -DOPTPP_LIBRARY=/home/osboxes/Documents/optpp-2.4/build/install/lib/libopt.a -DOPTPP_NEWMAT_LIBRARY=/home/osboxes/Documents/optpp-2.4/build/install/lib/libnewmat.a .. The cmake went fine : -- The following OPTIONAL packages have been found: [...] * OPTpp But the build failed *miserably* : [ 4%] Linking CXX shared library libOT.so /usr/bin/ld: /home/osboxes/Documents/optpp-2.4/build/install/lib/libopt.a(NLF0.o): relocation R_X86_64_PC32 against symbole `_ZTVN6NEWMAT6MatrixE' can not be used when making un objet partagé; recompilé avec -fPIC /usr/bin/ld : échec de l'édition de liens finale : bad value collect2: error: ld returned 1 exit status make[2]: *** [lib/src/CMakeFiles/OT.dir/build.make:11708: lib/src/libOT.so.0.0.0] Error 1 make[1]: *** [CMakeFiles/Makefile2:838: lib/src/CMakeFiles/OT.dir/all] Error 2 make: *** [Makefile:163: all] Error 2 The error seem to indicate that I cannot use libopt.a to link with libOT.so. This is weird, since the code is looking to a symbol which is in the newmat library. I cannot find how to solve this: what may I do? Best regards, Michaël -- Bureau : 01 30 87 81 82 Mobile : 07 81 15 06 34
_______________________________________________ OpenTURNS users mailing list [email protected] http://openturns.org/mailman/listinfo/users
