<div dir="ltr"><div><div><div>Dear list,<br><br></div>I have been trying to get a simple foo running to see if I can access the installed modules and an external library. <br>My C++ program is:<br><br>// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-<br>// vi: set et ts=4 sw=2 sts=2:<br>#include "config.h"<br>#include <iostream><br>#include <dune/grid/albertagrid.hh><br>//<br>int main(int argc, char** argv)<br>{<br>    #if HAVE_DUNE_COMMON<br>        std::cout << "You have Dune-Common" << std::endl;<br>    #endif<br>    <br>    #if HAVE_DUNE_FEM<br>        std::cout << "You have Dune-Fem" << std::endl;<br>    #endif<br>    <br>    #if HAVE_DUNE_GEOMETRY<br>        std::cout << "You have Dune-Geometry" << std::endl;<br>    #endif<br>    <br>    #if HAVE_DUNE_GRID<br>        std::cout << "You have Dune-Grid" << std::endl;<br>    #endif<br>    <br>    #if HAVE_DUNE_ISTL<br>        std::cout << "You have Dune-Istl" << std::endl;<br>    #endif<br>    <br>    #if HAVE_DUNE_LOCALFUNCTIONS<br>        std::cout << "You have Dune-Localfunctions" << std::endl;<br>    #endif<br>    <br>    #if HAVE_ALBERTA <br>        std::cout << "You have Dune-Alberta" << std::endl;<br>    #endif<br>}<br>    <br><br></div>In the output however, I do not see a print for Alberta.<br><br>./dune_foo <br>You have Dune-Common<br>You have Dune-Fem<br>You have Dune-Geometry<br>You have Dune-Grid<br>You have Dune-Istl<br>You have Dune-Localfunctions<br><br>I followed the instructions given <a href="https://www.dune-project.org/external_libraries/install_alberta.html">here</a> for installing Alberta. I did not specify any path while doing ./configure in Alberta folder and I think this will put the Alberta libraries in /usr/local/lib by default. However, I did specify the path for Alberta libraries while doing ./configure in dune-grid folder and believe the Alberta libraries (libalberta_1d.a, libalberta_2d.a, libalberta_3d.a etc in my /usr/local/lib directory) got linked with dune. I think this is true because ./dunecontrol gives me (pasting only the Alberta relevant screen here)<br>......<br><br>configure: searching for ALBERTA in /usr...<br>configure: searching for ALBERTA in /usr/local...<br>checking alberta/alberta.h usability... yes<br>checking alberta/alberta.h presence... yes<br>checking for alberta/alberta.h... yes<br>checking for struct el_info.wall_bound... yes<br>checking ALBERTA utilities library... alberta_utilities<br>checking ALBERTA world dimensions...  1 2 3<br><br>.....<br><br>Found the following Dune-components: <br><br>----------------------------------------<br><br>dune-common.............: version 2.3.0<br>dune-fem................: version 1.4.0<br>dune-geometry...........: version 2.3.0<br>dune-grid-dev-howto.....: version 2.3.0<br>dune-grid...............: version 2.3.0<br>dune-istl...............: version 2.3.0<br>dune-localfunctions.....: version 2.3.0<br>ALBERTA.................: version 3.0<br>ALUGrid.................: no<br>AmiraMesh...............: no<br>BLAS....................: no<br>GMP.....................: no<br>Grape...................: no<br>METIS...................: no<br>METIS...................: no<br>MPI.....................: no<br>OpenGL..................: no<br>PETSc...................: no<br>ParMETIS................: no<br>SIONLIB.................: no<br>SuperLU-DIST............: no<br>SuperLU.................: no<br>UG......................: no<br>UMFPACK.................: no<br>psurface................: no<br><br>----------------------------------------<br><br></div>I am assuming that Dune is able to identify the Alberta library. I cannot understand why my program is not able to print the output related to Alberta. I believe someone encountered a similar problem earlier <a href="http://lists.dune-project.org/pipermail/dune/2012-July/011819.html">here</a> but could not figure out how he solved it. Attached my config.log file if it helps.<br><br>Thanks,<br>Ganesh<br><div><div><div><div><div><br></div></div></div></div></div></div>