Hi, in theory, only the CTK Plugin Framework (and thus all MITK plugins and BlueBerry-based applications) cannot be statically build.
It seems that during the last years, a few changes in the build system removed the static build capability and since we haven't had a use case (internal or external) for a static build we didn't realize/fix that. You can try to remove the FATAL_ERROR message in the CMake/PackageDepends/MITK_VTK_Config.cmake file and see if your application compiles and links. If you really want to have static builds, we can have a look how to reactivate this functionality in MITK proper. Here are some more remarks: - This will only work for a complete static build (no static/shared library mixes) - If you want to link Qt statically, you have to have a commercial license (or know exactly how to deal with the "exchangeable object code" clause) - The C++ Micro Services system supports static builds, but the MITK build system would need some more tweaks to support that. You would also have to list all MITK modules which are not directly linked by your application with special macros in your source code (similar to how Qt static plugins work). - The MITK Workbench and related applications cannot be build statically. Best, Sascha On 01/14/2013 09:17 AM, [email protected] wrote: > Hi, > > it seems to be impossible to build MITK as static libraries. I tried > this, using my own static versions of ITK and VTK. This resulted in the > following error message: "MITK only supports a VTK which was built with > shared libraries." > > Is there a reason why you do not support the static build and are there > plans to allow this in the future? > > Thanks in advance > Horst > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122412 > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
