Hello,Thanks for that. I was missing the export declaration in front of exposed classes. Everything compiles perfectly now, I used the export macro generated by the first-pass superbuild.
Regards, Aurelien Le 20/04/2016 14:39, Sascha Zelzer a écrit :
If your library does not export any symbols, there will be no import .lib file.As far as I know mitk does not support static linking officially yet. It wouldn't help much in your case anyways. How is the test using your module? If it is via some indirection, you need to load your module manually or use auto-loading.Cheers, SaschaOn April 20, 2016 12:48:33 PM GMT+02:00, "Kislinskiy, Stefan" <s.kislins...@dkfz-heidelberg.de> wrote: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'--Pollen Metrology Pollen Metrology 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/> youtube <https://www.youtube.com/watch?v=pCj_L4ucxGk>linked-in <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-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
-- Pollen Metrology Pollen Metrology Aurélien LabrosseCo 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/> youtube <https://www.youtube.com/watch?v=pCj_L4ucxGk>linked-in <https://www.linkedin.com/company/pollen-technology>
<<attachment: aurelien.vcf>>
------------------------------------------------------------------------------ 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