You have to add the directory /usr/include/trilinos to the c++ include directories. The fastest workaround would be, to add the directory to the CMAKE_CXX_FLAGS using ccmake or cmake-gui. The better solution is to look for any hint regarding trilinos in the CMakeLists.txt of dakota and check, why the corresponding include directory is not added.

Regards,

Andreas

Am 17.03.2016 um 14:32 schrieb Chris Coutinho:

I’m attempting to install Dakota 6.3.0 using cmake 3.5.0 on a 64-bit Linux box from source (to link python and MATLAB), and Dakota is having trouble finding some dependencies. I’ve been able to install and use Dakota successfully on my previous machine (64-bit, OpenSUSE 13.2, cmake 3.3.0) without any problems. Now that I upgraded to the more recent version of OpenSUSE (Opensuse Leap 42.1) and cmake (3.5.0), I’m not able to get past this error.

I am using cmake to build the source and create a makefile. Configuring cmake is fine; however, when running ‘make’ I get an error at around 5% of compiling:

/[ 5%] Building CXX object packages/OPTPP/src/CMakeFiles/optpp.dir/globals.C.o/ /In file included from /opt/dakota/dakota-6.3.0.src/packages/OPTPP/src/globals.C:4:0:/ //opt/dakota/dakota-6.3.0.src/packages/OPTPP/include/globals.h:22:41: fatal error: Teuchos_SerialDenseMatrix.hpp: No such file or directory/
/#include "Teuchos_SerialDenseMatrix.hpp"/
/^/
/compilation terminated./

I looked for the missing file ‘Teuchos_SerialDenseMatrix.hpp’, and see that I have two copies on my computer from installing trilinos 11.4.3 through the package manager. One is located under ‘/usr/include/trilinos’, and the other is located ‘/usr/lib64/mpi/gcc/openmpi/include/trilinos’. I’m not sure why I have two copies…

I added both of those directories to LD_LIBRARY_PATH in ~/.bashrc, but the error keeps coming up that Dakota isn’t able to find the file. Can anyone help me with this installation issue?

Kind regards,

*Chris Coutinho,* EIT

R&D Engineer

REDstack, B.V.

Pieter Zeemanstraat 6

8606 JR Sneek, The Netherlands

work: +31 6 2222 5785

mobile: +31 6 1689 0287

www.redstack.nl

De informatie verzonden middels deze e-mail is uitsluitend bestemd voor de geadresseerde. Gebruik door anderen is niet toegestaan. Openbaarmaking, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan. A.Hak staat niet in voor een juiste en volledige overbrenging van de inhoud, alsmede de tijdige ontvangst daarvan.

The information contained in this communication, including files, is confidential and legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance to the contents of this information, is strictly prohibited and may be unlawful. A.Hak is not liable for the proper, complete and timely transmission of the information contained in this communication.



--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to