OPM / opm-parser

http://www.opm-project.org
11 stars 44 forks source link

No rule to make target 'opmparser-NOTFOUND' #1227

Closed rksin8 closed 6 years ago

rksin8 commented 6 years ago

Hi, I am getting an error:

d2

opm-parser module is already installed. I am using dune2.4, opm2017.04 and dumux2.12. d

Any idea how to fix this? Thank you!

andlaus commented 6 years ago

seems like you're using quite old OPM and dune releases (the newest are 2018.04 and 2.6). anyway, the opm-parser module has been superseded by opm-common so the people who can actually help you with your issue might not see this one, i.e., you might want to report it over there.

alfbr commented 6 years ago

There have been recent efforts to make building dumux with opm and dune easier. You will find the relevant discussions and contributions here: https://github.com/OPM/opm-grid/pull/327 https://github.com/OPM/opm-common/pull/302 https://github.com/OPM/opm-common/pull/455

Hence, I recommend that you move over to compiling the latest OPM code from git. You can keep Dune at 2.4. Please note that the modules opm-parser, opm-output and opm-core are incorporated into other modules, so you should not compile them anymore. You find the current build order here: https://opm-project.org/?page_id=231 Please also note that you can turn off building of all Eclipse file support stuff when building opm-common, just set the cmake variable for it.

blattms commented 6 years ago

@alfbr's approach might only work if you switch to the master of dumux (as @berndflemisch made some changes there to support this). Not sure if this is what you want.

If I recall corrently then dumux needs patched versions of opm-parser. There is a file bin/installexternal.sh in dumux that might do the job for you. But you should consult the Dumux Handbook on page 11 on this. If that does not help ask on the Dumux mailinglist how it exactly works.

berndflemisch commented 6 years ago

This corresponds to Dumux issue 531.

rksin8 commented 6 years ago

Problem solved with latest modules. What I did mentioned here: Dumux issu 531

Thank you for help.

berndflemisch commented 6 years ago

Great that it worked out!

blattms commented 6 years ago

We would like to prevent other users from experiencing the same problems and jumping through the same hoops

It seems that you still had to manually change some cmake files (opm-common-config.cmake, opm-common-prereqs.cmake, and opm-grid-prereqs.cmake). Please tell us what you had to change there.

In what module did you have to comment out install_hook?

What error did you experience with set(ENABLE_ECL_INPUT ON)?

rksin8 commented 6 years ago

-set(ENABLE_ECL_INPUT ON) gives this error: opm3 ​while building opm-common master. the master modules build successfully without dune but with dune gives above error.

bska commented 6 years ago
set(ENABLE_ECL_INPUT ON)

gives this error:

undefined reference to `util_fnmatch'

Function util_fnmatch is provided by LibECL. If you have not already done so, you need to somehow acquire that library—perhaps by compiling it yourself—and then ensure that the library is found during system probing (i.e., when running cmake).

blattms commented 6 years ago

The compile error happens in opm-common. That needs to/should work without user interaction.