Boost libraries not found after build
After a successful build, starting up Aeva-Slicer can't load the SMTKFileWriterModule.dll
with the following error message
Error(s):
Cannot load library D:\AveaSlicer\build\Slicer-build\lib\aevaSlicer-4.13\qt-loadable-modules\RelWithDebInfo\qSlicerSMTKFileWriterModule.dll: The specified module could not be found.
After triage it turns out that the boost-filesystem
can't be found by the App, the path to the library is not in the launcher settings file, adding the path in the Path
section of the aevaSlicerLauncherSettings.ini
file resolves this problem.
diff --git "a/D:\\AveaSlicer\\build\\Slicer-build\\aevaSlicerLauncherSettings - Copy.ini" "b/D:\\AveaSlicer\\build\\Slicer-build\\aevaSlicerLauncherSettings.ini"
index bc3441f..8f0bb47 100644
--- "a/D:\\AveaSlicer\\build\\Slicer-build\\aevaSlicerLauncherSettings - Copy.ini"
+++ "b/D:\\AveaSlicer\\build\\Slicer-build\\aevaSlicerLauncherSettings.ini"
@@ -77,8 +77,7 @@ size=24
3\path=<APPLAUNCHER_SETTINGS_DIR>/lib/aevaSlicer-4.13/cli-modules/RelWithDebInfo
4\path=D:/AveaSlicer/build/python-install/bin
5\path=D:/AveaSlicer/build/teem-build/bin/RelWithDebInfo
-6\path=C:/Work/tools/boost/boost_1_78_0/lib64-msvc-14.3
-size=6
+size=5
[EnvironmentVariables]
SLICER_HOME=D:/AveaSlicer/build/Slicer-build
(Patch is in the opposite direction)
Edited by Harald Scheirich