Re: [mitk-users] deploying
Hi Sascha thank you for the answer. I use mitk_create_executable.. Here is the end of my CMakeLists.txt : include(CPack) include(InstallRequiredSystemLibraries) # actually include msvcp140 and vcruntime140 mitk_create_executable(My_project DEPENDS MitkDataTypesExt MitkCore MitkIGTBase MitkQtWidgetsExt MitkSegmentation PACKAGE_DEPENDS ITK|ITKCurvatureFlow+ITKRegionGrowing VTK|vtkCommonDataModel) INSTALL(TARGETS My_project RUNTIME DESTINATION bin) without this last 'install' line, the directory created by cpack was empty and NSIS, obviously, didn't work. I would like to have all the mitk modules and vtk/itk packages I used in the application automatically added in the installer (if it is possible). Thank you again! Paolo Le 17/mag/2018 à 20:03, Sascha Zelzer a écrit : Hi, are you using the MITK provided CMake macros for creating applications? E.g. mitkFunctionCreateBlueBerryApplication for a BlueBerry based application or similar. The macros take care of dependencies and additional plug-ins etc. Best, Sascha On 05/17/2018 09:40 AM, Paolo Cabras wrote: 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 <http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=emailclient> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=emailclient> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -- 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 -- 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
Re: [mitk-users] deploying
Hi, are you using the MITK provided CMake macros for creating applications? E.g. mitkFunctionCreateBlueBerryApplication for a BlueBerry based application or similar. The macros take care of dependencies and additional plug-ins etc. Best, Sascha On 05/17/2018 09:40 AM, Paolo Cabras wrote: > > 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 -- 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
Re: [mitk-users] deploying
Hm, it’s hard to say what’s going wrong with a custom application. All I can say is that the installers work for us with the MitkWorkbench and our applications. We use the common CMake functionality for packaing. Special rules are in mitkInstallRules.cmake. One thing that’s a bit different in our packaging is the way to specify the MSVC distributable. For example, if you built your code with Visual Studio 2017, theres a CMake variable called “CMAKE_Visual Studio 2017_REDISTRIBUTABLE” for the MITK build which is supposed to be set to the redist installer. From: Paolo Cabras [mailto:cab...@unistra.fr] Sent: Donnerstag, 17. Mai 2018 09:41 To: Dinkelacker, Stefan; mitk-users@lists.sourceforge.net Subject: Re: [mitk-users] deploying 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<mailto: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
Re: [mitk-users] deploying
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
Re: [mitk-users] deploying
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) -- 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 -- 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
[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) -- 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