BOUT-dev icon indicating copy to clipboard operation
BOUT-dev copied to clipboard

gettext required

Open dschwoerer opened this issue 3 years ago • 2 comments

If configuring without gettext, BOUT++ notices that, and skips it: -- Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE)

However, later on requiring BOUT++ fails with:

-- Found SUNDIALS: ~/local/lib/libsundials_[nvecparallel.so](http://nvecparallel.so/);~/local/lib/libsundials_[arkode.so](http://arkode.so/);~/local/lib/libsundials_[cvode.so](http://cvode.so/);~/local/lib/libsundials_[ida.so](http://ida.so/) (found suitable version "5.4.0", minimum required is "5.4.0")
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE
GETTEXT_MSGFMT_EXECUTABLE)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindGettext.cmake:81 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/usr/share/cmake-3.16/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
~/BOUT-dev/build/bout++Config.cmake:143 (find_dependency)
CMakeLists.txt:5 (find_package)

dschwoerer avatar Feb 25 '22 11:02 dschwoerer

Do we have a check that the bout++Config.cmake is working? Like compiling some minimal BOUT++ program, and check that it is running?

dschwoerer avatar Feb 25 '22 12:02 dschwoerer

We've got a bout-config test with CMake, but not a bout++Config.cmake test.

Should be as "simple" as:

cd examples/conduction
cmake . -B build -DCMAKE_PREFIX_PATH=../../build
cmake --build build
./build/conduction

ZedThree avatar Feb 25 '22 16:02 ZedThree