SAMSON Forum
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • SAMSON Connect
    • Get SAMSON

    Error while trying to build a Samson element : "The name cmake is not recognize as a command, function or file name..."

    Getting started
    2
    2
    2038
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jean-Baptiste last edited by

      I’m trying to build the Samson element I've juste created (following this tutorial) but I’m stuck with this error :

      0_1554106953673_Capture1.PNG

      I checked "adding cmake to path folder" when I installed cmake, but what should I see in my path finder ? I don't think it has worked well.

      If you had encountered this error before, what can I do to fixe it ?

      Thank you for the help.

      1 Reply Last reply Reply Quote 0
      • DmitriyMarin
        DmitriyMarin last edited by DmitriyMarin

        Dear @Jean-Baptiste ,

        Thank you for your interest in SAMSON!

        According to your screenshot, I think the problem here is due to an unnecessary newline character in the command you past in the PowerShell terminal due to copying.

        Please, note: we recommend not to build your Elements in the SAMSON Debug folders - you should use a dedicated folder to develop your SAMSON Elements

        If you have -DQT5_CMAKE_INCLUDE_DIR environment variable defined in your system you can compile for Visual Studio 2017 like this:
        cmake -DSAMSON_SDK_PATH="C:\Program Files\NANO-D\SDK\0.7.0" -G"Visual Studio 15 Win64" ..
        else like this:
        cmake -DSAMSON_SDK_PATH="C:\Program Files\NANO-D\SDK\0.7.0" -G"Visual Studio 15 Win64" -DQT5_CMAKE_INCLUDE_DIR="C:\Qt\5.9.3\msvc2017_64\lib\cmake" ..

        You can copy the command from here.

        You can also check whether the cmake is defined in your system by e.g. checking its version number:
        cmake --version

        I would also recommend to follow the updated tutorial on Building on Windows in the Developer guide.

        Dmitriy,
        The SAMSON Team, https://s-c.io

        1 Reply Last reply Reply Quote 0
        • First post
          Last post