Hi Lotfi,

if you have an already build MITK you can set EXTERNAL_MITK_DIR to your 
MITK-build directory. That way it will not try and re-download/-build 
everything. The default settings assume you want to start from scratch.
For a more step-by-step guideline take a look at the documentation Stefan 
mentioned previously [1].

Quoting from there:
Unfortunately the Microsoft C/C++ compiler and linker have a stone-age path 
length limit when creating build artifacts, which requires you to choose a very 
short build path. You should specify a top-level directory and give it a very 
short name (we mean it!), e.g., if you cloned the repository into 
D:\MITK-ProjectTemplate, D:\MITK-pt-sb is a good choice, which stands for 
MITK-ProjectTemplate-SuperBuild.

Hope this helps,
Caspar

[1] http://mitk.org/wiki/Developer_Tutorial_%28Microsoft_Windows%29


Von: Lotfi BAGHLI [mailto:[email protected]]
Gesendet: Sonntag, 8. November 2015 01:44
An: [email protected]
Cc: Kislinskiy, Stefan
Betreff: Re: [mitk-users] Preventing download from git for myapp


Ok Stefan

After installing and compiling the MIKT, I am trying to build my first app.
I am not talking about the examples tutorial 1 to 8 that are automatically 
built, and that works fine
I want a new one
so I started with
http://docs.mitk.org/2015.05/NewPluginPage.html#NewPluginWithProject

I had to add an entry to the cmake
CMAKE_PREFIX_PATH        e:\Qt\Qt5.4.2\5.4\msvc2013_64\lib\cmake\Qt5

then when the .sln is generated
I compile with VS2013 and it start downloading from Git the src   MITK-2015.05.2
thought I already have the .zip
and my connection is slow, so it takes ages
If I put there the files, it clear all of them and download form Git

Also ITK is annoying because, twice it complains about path of more than 50 
chars and fails in building, I had to do all the stuff again, taking ages (more 
than 30 min)

so after all that, it fails

1>------ Build started: Project: MITK, Configuration: Debug x64 ------
1>  Performing update step for 'MITK'
2>------ Build started: Project: LBProject-Utilities, Configuration: Debug x64 
------
3>------ Build started: Project: LBProject-Configure, Configuration: Debug x64 
------
3>  Building Custom Rule c:/MITK/LB/CMakeLists.txt
3>  CMake does not need to re-run because 
c:\MITK\LB\bin\CMakeFiles\generate.stamp is up-to-date.
3>  Creating directories for 'LBProject-Configure'
3>  No download step for 'LBProject-Configure'
3>  No update step for 'LBProject-Configure'
3>  No patch step for 'LBProject-Configure'
3>  Performing configure step for 'LBProject-Configure'
3>  loading initial cache file 
c:/MITK/LB/bin/CMakeExternals/tmp/LBProject-Configure/LBProject-Configure-cache-Debug.cmake
3>  CMake Error at E:/Program Files 
(x86)/CMake/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:148 
(message):
3>    Could NOT find DCMTK (missing: DCMTK_config_INCLUDE_DIR

 so I need to generate again and it will download from Git the src   
MITK-2015.05.2

3>    DCMTK_ofstd_INCLUDE_DIR DCMTK_ofstd_LIBRARY DCMTK_dcmdata_INCLUDE_DIR
3>    DCMTK_dcmdata_LIBRARY DCMTK_dcmimgle_INCLUDE_DIR DCMTK_dcmimgle_LIBRARY)
3>  Call Stack (most recent call first):
3>    E:/Program Files 
(x86)/CMake/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:388 
(_FPHSA_FAILURE_MESSAGE)
3>    bin/MITK/CMake/FindDCMTK.cmake:175 (find_package_handle_standard_args)
3>    bin/MITK-superbuild/MITK-build/MITKConfig.cmake:498 (find_package)
3>    CMakeLists.txt:129 (find_package)
3>
3>
3>  -- Configuring incomplete, errors occurred!
3>  See also "C:/MITK/LB/bin/LBProject-build/CMakeFiles/CMakeOutput.log".
3>C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error 
MSB6006: "cmd.exe" exited with code 1.
4>------ Build started: Project: LBProject-build, Configuration: Debug x64 
------
4>  Building Custom Rule c:/MITK/LB/CMakeLists.txt
4>  CMake does not need to re-run because 
c:\MITK\LB\bin\CMakeFiles\generate.stamp is up-to-date.
4>CUSTOMBUILD : error : could not find CMAKE_GENERATOR in Cache
========== Build: 2 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========



Is there a way to not download from Git and specify that I already have MITK, 
also, why not use the one that is used to build all the lib/dlls, it is the 
same or just bigger ? no ?
Why each example has to build and use its own
or am I missing something ?

Thanks again for your help and this dynamic forum

Best
Lotfi




We need more information on what you are exactly doing to give you an answer 
here. :)



Best,

Stefan



PS: When developing with MITK, you might also want to try the MITK Project 
Template: http://mitk.org/wiki/Developer_Tutorial



________________________________________

Von: Lotfi BAGHLI [lotfi@...]

Gesendet: Samstag, 7. November 2015 17:00

An: mitk-users@...

Betreff: [mitk-users] Preventing download from git for myapp



Hi

When building my own app. How can I prevent the .sln in VS2013 from download 
using git source  ‫because i'm already have them when I built the first time 
MIKT

Thanks

--
Bien cordialement,
Lotfi
------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to