Thanks guys,

That actually made the trick.

Alberto

On 24/04/15 16:58, Goch, Caspar Jonas wrote:

Hi Alberto, Rostislav,

as far as I can tell this was fixed during the build system restructuring after the last release, so deleting it should be the way to go [1].

Best,

Caspar

[1] http://mitk.org/git/?p=MITK.git;a=commitdiff;h=7103037e2a73b60c5b1c20cb39793aac3fa3efad#patch2

*Von:*Rostislav Khlebnikov [mailto:rostislav.khlebni...@kcl.ac.uk]
*Gesendet:* Freitag, 24. April 2015 17:43
*An:* mitk-users@lists.sourceforge.net
*Betreff:* Re: [mitk-users] Building a new Module

Hi Alberto,

looking at my fork of MITK, I had a similar issue. For me the fix was simply to remove this if (I'm using gcc 4.9+).

Rostislav.

On 24/04/2015 16:13, Gomez, Alberto wrote:


    Dear all,

    I am trying to build a new project for the first time, and I am
    having trouble with a custom Module. Basically when I build the
    project, it does not build the module (It does build the App
    though, which is not currently using the module).

    I am ubung MITK 2014.10 under Ubuntu 14.10, and I have generated a
    project using the MitkPluginGenerator like this (some names are
    changed)

    ./MitkPluginGenerator --plugin-symbolic-name
    org.mycompany.myplugin --view-name "My View" --project-name
    "MyProject" --project-app-name "MyApp"

    The above command generates a sample app, a sample plugin, but no
    modules. So I have just copied the folder Modules from the Project
    template (2014.10 too), and I have uncommented the bit with

    # This project's directory holding module config files
    set(${PROJECT_NAME}_MODULES_CONF_DIR
    "${PROJECT_BINARY_DIR}/${MODULES_CONF_DIRNAME}")

    # Append this projects's module config directory to the global list
    # (This is used to get include directories for the
    <module_name>Exports.h files right)
    list(APPEND MODULES_CONF_DIRS ${${PROJECT_NAME}_MODULES_CONF_DIR})

    # Clean the modulesConf directory. This ensures that modules are
    sorted
    # according to their dependencies in the Modules/CMakeLists.txt file
    file(GLOB _modules_conf_files
    ${${PROJECT_NAME}_MODULES_CONF_DIR}/*.cmake)
    if(_modules_conf_files)
      file(REMOVE ${_modules_conf_files})
    endif()

    add_subdirectory(Modules)

    In the root CMakeLists.txt

     and when I configure cmake I get the following error:


    CMake Error at <build
    folder>/MITK/CMake/mitkFunctionCreateModule.cmake:351 (if):
    if given arguments:

    "VERSION_LESS" "4.5" "OR" "MINGW"

    Unknown arguments specified
    Call Stack (most recent call first):
    Modules/MyAwesomeLib/CMakeLists.txt:2 (MITK_CREATE_MODULE)



    The file Modules/MyAwesomeLib/CMakeLists.txt only contains

    MITK_CREATE_MODULE(MyAwesomeLib
      DEPENDS MitkCore
    )

    If I change DEPENDS MitkCore to DEPENDS Mitk, I have no errors in
    the config/generate,  I can build the project, but my library
    (MyAwesomeLib) is not built.

    Can anyone help?

    Thanks!

    Alberto



--
    Dr Alberto Gomez

    Research Associate

    Department of Biomedical Engineering

    King's College London

    020 7188 7188 ext 50871

    4th North Wing

    St Thomas' Hospital

    SE1 7EH London, UK




    
------------------------------------------------------------------------------

    One dashboard for servers and applications across Physical-Virtual-Cloud

    Widest out-of-the-box monitoring support with 50+ applications

    Performance metrics, stats and reports that give you Actionable Insights

    Deep dive visibility with transaction tracing using APM Insight.

    http://ad.doubleclick.net/ddm/clk/290420510;117567292;y




    _______________________________________________

    mitk-users mailing list

    mitk-users@lists.sourceforge.net  <mailto:mitk-users@lists.sourceforge.net>

    https://lists.sourceforge.net/lists/listinfo/mitk-users



------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y


_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

--
Dr Alberto Gomez
Research Associate
Department of Biomedical Engineering
King's College London

020 7188 7188 ext 50871
4th North Wing
St Thomas' Hospital
SE1 7EH London, UK

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to