I am sorry... I don't know why I took the last version (it was written to take 2.x).

Now the packaging is done but it seems incomplete : in _CPack_Packages/win64/NSIS/my_project-0.1.1-win64, only the Microsoft Visual C++ Redistributable Package (added setting CPACK_VISUAL_STUDIO_PRODUCT_NAME and CPACK_VISUAL_VERSION_MAJOR variables in the CMakeLists.txt) and the files of  my_project's bin directory are present. Furthermore, when launching the executable created by the installer, an error is returned saying that some mitk dll is not present on my pc.


How can I automatically include (and then install) all MITK and 3rd party libraries necessary for running my application (on a different system) ?

Thank you again for your help!

Paolo


Le 16/mag/2018 à 11:09, Dinkelacker, Stefan a écrit :
Hi Paolo,

did you install NSIS 3.x or 2.x? You need 2.x.

Best,
Stefan

-----Original Message-----
From: Paolo Cabras [mailto:cab...@unistra.fr]
Sent: Mittwoch, 16. Mai 2018 10:43
To:mitk-users@lists.sourceforge.net
Subject: [mitk-users] deploying

Hello everybody,

I would like to create a windows installer for my application based on
mitk (no workbench plugin). I have installed nsis, but when I run the
'cpack' command within the build directory the following error appears :

CPack: Create package using NSIS
CPack: Install projects
CPack: - Run preinstall target for: my_project
CPack: - Install project: my_project
CPack: Create package
CPack Error: Problem running NSIS command: "E:/App/NSIS/makensis.exe"
"[path_to_build_dir]/_CPack_Packages/win64/NSIS/project.nsi"
Please check
[path_to_build_dir]/_CPack_Packages/win64/NSIS/NSISOutput.log for errors
CPack Error: Problem compressing the directory
CPack Error: Error when generating package: my_project

and from NSISOutput.log :
!macro: macro named "RemoveSection" already found!
Error in script
"[path_to_build_dir]/_CPack_Packages/win64/NSIS/project.nsi" on line 127
-- aborting creation process

I am using QtCreator, but the behavior is the same when compiling the
"PACKAGE" project with Visual Studio 2015.

Do you have any suggestions ? Am I missing something ?

Thank you very much in advance for your help!


--
Paolo Cabras
Research Engineer
Automatic, Vision and Control Team
ICUBE (UMR 7357 CNRS-Université de Strasbourg)
+33 (0) 3 88 11 90 68

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to