Hi Johannes,
after running "working" and "non-working" versions through dependency
walker's profiler, I have found the reason: several dll's are simply not
packaged by CPack.
In the build directory they are located in
"MITK-build/bin/MitkCore/Release". If I just copy these dll's
(MitkIOExt.dll and MitkVtkShaders.dll) into the directory where CPack
installed the application into the directory "bin/MitkCore" - everything
works perfectly.
I noticed that there are also dll's in the
"MITK-build/bin/Mitk/Release". Something tells me that they should also
be included in the installation/package.
So I guess these libraries are just not installed as they are supposed
to and this should be as simple as modifying the related CMakeLists files.
For now I can live with this and I will probably wait until the 2014.03
release to see if it has already been resolved. If not - then I will
open a bug in the bugtracker.
Best regards,
Rostislav.
On 15/04/2014 16:01, Johannes Totz wrote:
> On 14/04/2014 16:44, Rostislav Khlebnikov wrote:
>> As a follow-up:
>> I tried running the app from the folder where CPack installed it - the
>> result is the same. However, if I remove the Mitk*.dll and setup the
>> PATH to point to the location where MITK is built - then everything
>> works fine.
>> This is a very confusing behavior as the dll's are binary equivalent. I
>> also observe the same behavior when packaging the MITK workbench and not
>> my application.
>>
>> Any clues on why this happens?
> Sounds like a dll mismatch. Cpack is a major pain in the neck and, at
> least on Windows, will happily package incompatible dll versions (32-bit
> vs 64-bit), resulting in some dlls failing to load. We've run into
> numerous issues, usually related to dbghelp.dll being packaged along.
>
> Are you running 64 bit or 32? Try dependency walker and see if there's
> an archicture mismatch somewhere.
>
>
>> On 14/04/2014 13:47, Rostislav Khlebnikov wrote:
>>> Dear Markus and Sandy,
>>>
>>> I saw that Markus reported this bug
>>> <http://bugs.mitk.org/show_bug.cgi?id=17545>and it is was closed by
>>> Sandy as "RESOLVED INVALID".
>>> I faced a similar bug in the packaged version of my MITK-based
>>> application under windows. It works absolutely fine if I run the
>>> version from either the IDE or just from the build tree.
>>> Could you please tell me what happened to this behavior? Perhaps you
>>> could give me some tips on how to fix this?
>>>
>>> Thank you,
>>> Rostislav.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their
>>> applications. Written by three acclaimed leaders in the field,
>>> this first edition is now available. Download your free book today!
>>> http://p.sf.net/sfu/NeoTech
>>>
>>>
>>> _______________________________________________
>>> mitk-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/mitk-users
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and their
>> applications. Written by three acclaimed leaders in the field,
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/NeoTech
>>
>>
>>
>> _______________________________________________
>> mitk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mitk-users
>>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users