Hi,
why do you have the DLL but not the LIB of your own module? As far as I know,
DLLs are created out of LIBs, so if there’s a DLL, I’d expect a LIB, too. For
example, the LIBs of MITK modules are in
MITK-superbuild/MITK-build/lib/<Debug/Release>, and the DLL counterparts are
located in MITK-superbuild/MITK-build/bin/<Debug/Release>. Are you sure that
your module is really built successfully and that the DLL isn’t just an
artifact from previous builds?
The mitk_create_module_tests() macro uses the MODULE_NAME variable, which is
available after the call to mitk_create_module(), to name the test driver and
to add the module as dependency to the test driver executable. If there’s
something wrong, it should happen already at configure time. This is why I
suspect your module isn’t built successfully.
Best,
Stefan
From: Aurélien Labrosse [mailto:aurel...@pollen-metrology.com]
Sent: Mittwoch, 20. April 2016 09:14
To: 'mitk-users@lists.sourceforge.net'; moir...@pollen-metrology.com
Subject: [mitk-users] Testing modules problem
Hello,
I created a brand new module with one sample test included. I followed the
documentation, and so i have the module itself and an included test folder,
with minimal CMakeLists.txt, file.cmake and a test.cpp.
So test/CMakeLists.txt contains :
--------
MITK_CREATE_MODULE_TESTS<http://docs.mitk.org/nightly/namespaceCMake.html#a92dfc321e3fb5bdec19e995178800dd2>()
---------
test/files.cmake :
---------
SET(MODULE_TESTS
sampleTest.cpp
)
SET(MODULE_CUSTOM_TESTS
)
----------
and test/sampleTest.cpp contains .. a test implementation as described in [1].
The module itself is named PlatypusLib.
At compile time, the test driver cannot be linked due to the lack of
PlatypusLib.lib file ([2])
I only have the dynamic counterpart, ..\..\bin\Debug\PlatypusLib.dll.
I wonder how i have to configure the test driver to be compiled static using
DLLs only and not static lib.
Do anyone have a clue on this?
Thanks,
Aurélien
[1] http://docs.mitk.org/nightly/NewModulePage.html
[2] LINK : fatal error LNK1104: cannot open file
'..\..\..\bin\Debug\PlatypusLib.lib'
--
[cid:image003.png@01D19B01.168320E0]
Aurélien Labrosse
Co Founder - VP of product and Engineering
9 rue du Rocher de Lorzier – 38430 Moirans – France
Office: +33 (0)476657121
www.pollen-metrology.com<http://www.pollen-metrology.com/>
[cid:image006.png@01D19B01.168320E0]
<https://www.youtube.com/watch?v=pCj_L4ucxGk>
[cid:image007.png@01D19B01.168320E0]
<https://www.linkedin.com/company/pollen-technology>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users