diff --git a/README.md b/README.md index 978ed23..15c106d 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,15 @@ For exporting the exodus file format used by Moose (https://github.com/idaholab/ * For Linux and Mac we suggest to link the static exodus library which comes along with libMesh (https://libmesh.github.io/) provided by Moose framework installation: * Set the EXODUS_LIBMESH variable to `true` * Define the path to the root directory of the `libmesh` installation using variable LIBMESH + * Alternatively, ExodusII can be installed on Ubuntu/Debian via the system package manager: + ```bash + sudo apt install libexodusii-dev + ``` + Then compile MeshIt with: + ```bash + qmake meshit.pro + make -j$(nproc) + ``` * For Windows you have to link the dynamic exodus library which will be provided by the package mingw-w64-ucrt-x86_64-libexodus provided by the MSYS2 (https://www.msys2.org/) installation: * Set the EXODUS_LIBRARY variable to `true` diff --git a/meshit.pro b/meshit.pro index 48a114a..4ae729f 100644 --- a/meshit.pro +++ b/meshit.pro @@ -72,8 +72,18 @@ if($$EXODUS_LIBMESH) { LIBS += -L$$LIBMESH/lib -lmesh_opt QMAKE_LFLAGS += -Wl,-rpath,$$LIBMESH }else:if($$EXODUS_LIBRARY) { - INCLUDEPATH += . $$EXODUS_PATH/include - LIBS += $$EXODUS_PATH/bin/libexodus.dll + unix:!macx { + LIBS += -lexoIIv2c + } + + win32-g++ { + INCLUDEPATH += . $$EXODUS_PATH/include + LIBS += $$EXODUS_PATH/bin/libexodus.dll + } + win32-msvc* { + INCLUDEPATH += . $$EXODUS_PATH/include + LIBS += $$EXODUS_PATH/bin/libexodus.dll + } }else{ DEFINES += NOEXODUS }