Hello Dumux team,I wrote to you some days ago but I still didn't get an advice on the situation. I'm an absolute beginner to programming generally and I'm just trying to use dumux for my master thesis in petroleum engineering. I am trying to build a new module called 'dumux-trial' but I'm getting this error: CMake Error at /home/mahmoud/dumux/dune-common/cmake/modules/DuneMacros.cmake:991 (target_link_libraries):
The "debug" argument must be followed by a library. Call Stack (most recent call first): src/CMakeLists.txt:2 (target_link_dune_default_libraries) -- Configuring incomplete, errors occurred!See also "/home/mahmoud/dumux/dumux-trial/build-cmake/CMakeFiles/CMakeOutput.log". See also "/home/mahmoud/dumux/dumux-trial/build-cmake/CMakeFiles/CMakeError.log".
--- Failed to build dumux-trial --- Terminating dunecontrol due to previous errors!
I also have some dune optional modules installed but there's an issue with 2 of them: dune-functions fails to build & dune-pdelab which I found out that I installed an older version of it 2.0.0 by mistake.I don't know if the issues with those 2 optional modules have any effect on the error I'm getting when trying to build the new module 'dumux-trial' because I'm very inexperienced and really a beginner with all this stuff. I also don't know how to remove or update that dune-pdelab module to the correct version (my dune version is 2.7.1). I can run the example on the dumux website and also the 2 examples in the handbook without problems and I also displayed the results successfully on paraview.
Currently my main issue is that I cannot build my own module 'dumux-trial' and I don't know if this is related to the issues with those 2 optional modules or it's irrelevant. Of course I have other optional modules installed such as dune-subgrid, dune-uggrid, dune-foamgrid, dyne-typetree and dune-mmesh.
I was asked previously to send some files and I'm re-attaching everything to this e-mail: 1) Word file for terminal lines including the error when trying to build new module 'dumux-trial' 2) Files in the src folder in new module 'dumux-trial' (dumux-trial.cc & CMakeLists.txt) 3) Files in dumux-trial/cmake/modules (DumuxTrialMacros.cmake & CMakeLists.txt) 4) DuneMacros.cmake file in this directory dumux/dune-common/cmake/modules 5) Word file for terminal lines including the error when trying to build module 'dune-functions'
I'd really appreciate your help and guidance as I really want to start working with dumux for my thesis. I aplogize for the long e-mail but I tried to make my situation clear.
Best Regards, Mahmoud Atef
dumux-trial building error.odt
Description: application/vnd.oasis.opendocument.text
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- // vi: set et ts=4 sw=2 sts=2: #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <iostream> #include <dune/common/parallel/mpihelper.hh> // An initializer of MPI #include <dune/common/exceptions.hh> // We use exceptions int main(int argc, char** argv) { try{ // Maybe initialize MPI Dune::MPIHelper& helper = Dune::MPIHelper::instance(argc, argv); std::cout << "Hello World! This is dumux-trial." << std::endl; if(Dune::MPIHelper::isFake) std::cout<< "This is a sequential program." << std::endl; else std::cout<<"I am rank "<<helper.rank()<<" of "<<helper.size() <<" processes!"<<std::endl; return 0; } catch (Dune::Exception &e){ std::cerr << "Dune reported error: " << e << std::endl; } catch (...){ std::cerr << "Unknown exception thrown!" << std::endl; } }
add_executable("dumux-trial" dumux-trial.cc) target_link_dune_default_libraries("dumux-trial")
# File for module specific CMake tests.
set(modules "DumuxTrialMacros.cmake") install(FILES ${modules} DESTINATION ${DUNE_INSTALL_MODULEDIR})
dune-functions build error.odt
Description: application/vnd.oasis.opendocument.text
_______________________________________________ DuMux mailing list DuMux@listserv.uni-stuttgart.de https://listserv.uni-stuttgart.de/mailman/listinfo/dumux