<div dir="ltr">Hi Markus,<span class="gmail-"></span><br><span class="gmail-"></span><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
<br>
<br>
</span>This one is really weired. Would you please post<br>
dune-uggrid-config.cmake and<br>
/archive/src/dune-git/dune-<wbr>uggrid/build-cmake/CMakeCache.<wbr>txt<br></blockquote><div> </div><div><div style="margin-left:40px">find ./ -name dune-uggrid-config.cmake<br>./build-cmake/dune-uggrid-config.cmake<br>./build-cmake/cmake/pkg/dune-uggrid-config.cmake<br></div>Now attaching both files and CMakeCache.txt<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
dune-uggrid_FOUND should be true. Did you perhapse run configure in<br>
dune-grid before without having dune-uggrid? To be sure you could<br>
delete dune-uggrid/build-cmake and try again.<br></blockquote><div><br></div><br><br></div><div class="gmail_quote">I might have done that, I cannot recall.<br>Now I've deleted dune-uggrid/build-cmake and done another <br></div><div class="gmail_quote"><div>"dunecontrol all" with the same results: compilation hangs at dune-grid because <br>of the -I/dev in the includes.<br></div><div><br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The weired includes<br>
<br>
> -I/low -I/gm -I/dev -I/dom -I/np -I/ui -I/np/algebra -I/np/udm<br>
> --I/parallel<br>
> -I/parallel/ddd -I/parallel/ppif -I/parallel/dddif -I/parallel/util<br>
> -I/parallel/ddd/include<br>
<br>
come from this. First of all dune-uggrid should be found. Second of<br>
all if it is not, then we should the includes.<br></blockquote><div><br></div><div>The main problem I see with the includes is that they are absolute paths, and none of<br></div><div>these directories, with the exception of /dev, are garanteed to exist on an independent<br></div><div>target machine. But looking a bit further, I find a dune-uggrid/dev, as well as all the other missing directories<br></div><div>all in the dune-uggrid directory. So the problem is that cmake is specifying the includes<br></div><div>as absolute paths instead of relative paths. If this were autotools, the includes should be <br></div><div>specified like $(top_src_dir)/dev and so on in the Makefile.am file processed by<br></div><div>automake. I don't know where this should be specified for CMake.<br><br></div><div>But then there's the issue that it finds, and does not find uggrid. <br></div><div></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
If you are not dependent on dune-uggrid you could set<br>
-DCMAKE_DISABLE_FIND_PACKAGE_<wbr>dune-uggrid=OFF when running CMake,<br>
e.g. by putting it in the CMAKE_FLAGS of your opts file.<br></blockquote><div><br><br></div><div>I created a dune.opts file with the above directive, and ran "dunecontrol --opts=dune.opts" <br></div><div>and got the same hang (I probable did not create dune.opts correctly or something) <br><br>But if I completely remove the dune-uggrid directory, then "dunecontrol all" <br>works fine and compilation does not hang:<br><br><div style="margin-left:40px">[  2%] Building CXX object lib/CMakeFiles/dunealbertagrid_1d.dir/__/dune/grid/albertagrid/dgfparser.cc.o<br>cd /archive/src/dune-git/dune-grid/build-cmake/lib && /usr/bin/c++   -DALBERTA_DIM=1 -DENABLE_ALBERTA -DHAVE_CONFIG_H -I/archive/src/dune-git/dune-grid/build-cmake -I/archive/src/dune-git/dune-grid -I/archive/src/dune-git/dune-common -I/archive/src/dune-git/dune-geometry -I/usr/local/include -I/usr/local/include/alberta  -std=c++14    -o CMakeFiles/dunealbertagrid_1d.dir/__/dune/grid/albertagrid/dgfparser.cc.o -c /archive/src/dune-git/dune-grid/dune/grid/albertagrid/dgfparser.cc<br></div><br></div><div><br></div><div>Other weird stuff I've noticed:<br>1. even if I uninstall alberta, it will continue to find it. Seems to have the information cached somewhere.<br></div><div>2. does not find psurface, but then reports it was found (I have psurface-1.3.1-1 installed from ArchLinux AUR)<br><div style="margin-left:40px">-- Checking for one of the modules 'psurface'<br>-- Checking for module 'psurface'<br>--   No package 'psurface' found<br>-- Could NOT find AmiraMesh (missing:  AMIRAMESH_INCLUDE_DIR AMIRAMESH_LIBRARY) <br>-- Setting dune-grid_INCLUDE_DIRS=/archive/src/dune-git/dune-grid<br>-- Setting dune-grid_LIBRARIES=dunegrid;dunealbertagrid_1d;dunealbertagrid_2d;dunealbertagrid_3d<br>-- Setting dune-localfunctions_INCLUDE_DIRS=/archive/src/dune-git/dune-localfunctions<br>-- Performing tests specific to dune-functions from file /archive/src/dune-git/dune-functions/cmake/modules/DuneFunctionsMacros.cmake.<br>-- Using scripts from /archive/src/dune-git/dune-common/cmake/scripts for creating doxygen stuff.<br>-- using /archive/src/dune-git/dune-common/doc/doxygen/Doxystyle to create doxystyle file<br>-- Adding custom target for config.h generation<br>-- <br>-- The following OPTIONAL packages have been found:<br><br> * dune-istl<br> * MPI<br> * LATEX<br> * UnixCommands<br> * Sphinx<br> * PythonInterp<br> * Doxygen<br> * PkgConfig<br> * LAPACK<br> * GMP<br> * Inkscape<br> * Vc , C++ Vectorization library , <<a href="https://github.com/VcDevel/Vc">https://github.com/VcDevel/Vc</a>><br> * SuperLU , Direct linear solver library<br> * Threads<br> * SuiteSparse<br> * CXXTemplateAliases<br> * CXXDecltype<br> * GCCTypeof<br> * METIS<br> * ParMETIS<br> * Alberta<br> * Psurface<br></div><br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
In any case we highly appreciate your and want/need to fix these bugs.<br></blockquote><div><br><br></div><div>I highly appreciate your helpful and prompt response.<br><br></div><div>best regards,<br></div><div><br></div><div>Edscott<br> <br></div><br></div><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><div>------------------------------------------------------------------------------------<br></div>Dr. Edscott Wilson Garcia<br></div>Reservoir Engineering<br></div>Mexican Petroleum Institute<br></div></div>
</div></div></div>