Skip to content

Not able to compile on Windows 10 #511

@tlouwers

Description

@tlouwers

Using commit 57b3397

I try to build the sources on Windows, using the tools mentioned in the https://github.com/JF002/InfiniTime/blob/develop/doc/buildAndProgram.md guide and using Visual Studio Code and Ninja for this. The ARM toolchain is installed and I am able to use it for a pet project, an SMT32F4-Discovery board.

Just to be sure: the PATH variable is set:
C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major
C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\bin

I have the following tasks.json file:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Configure - PineTime [Debug]",
            "type": "shell",
            "command": "CMake",
            "args": [
                "-B./build",
                "-GNinja",
                "-DCMAKE_BUILD_TYPE=Debug",
                "-DUSE_OPENOCD=1",
                "-DARM_NONE_EABI_TOOLCHAIN_PATH=C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major",
                "-DNRF5_SDK_PATH=C:/Git/nRF5_SDK_15.3.0_59ac345",                
                "-DBUILD_DFU=1"                
            ],
            "problemMatcher": []
        },
        {
            "label": "Configure - PineTime [Release]",
            "type": "shell",
            "command": "CMake",
            "args": [
                "-B./build",
                "-GNinja",
                "-DCMAKE_BUILD_TYPE=Release",
                "-DUSE_OPENOCD=1",
                "-DARM_NONE_EABI_TOOLCHAIN_PATH=C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major",
                "-DNRF5_SDK_PATH=C:/Git/nRF5_SDK_15.3.0_59ac345",                
                "-DBUILD_DFU=1"
            ],
            "problemMatcher": []
        },
        {
            "label": "Build - PineTime",
            "type": "shell",
            "options": {
                "cwd": "${workspaceFolder}/build"
            },
            "command": "Ninja",
            "problemMatcher": [],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        },
    ]
}

I delete the 'build' folder before start, then try to configure the project. This results in an error:

> Executing task: CMake -B./build -GNinja -DCMAKE_BUILD_TYPE=Debug -DUSE_OPENOCD=1 '-DARM_NONE_EABI_TOOLCHAIN_PATH=C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major' -DNRF5_SDK_PATH=C:/Git/nRF5_SDK_15.3.0_59ac345 -DBUILD_DFU=1 <

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment    
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_ASM_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "C:/Git/PineTime/build/CMakeFiles/CMakeOutput.log".
See also "C:/Git/PineTime/build/CMakeFiles/CMakeError.log".
The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command CMake -B./build -GNinja -DCMAKE_BUILD_TYPE=Debug -DUSE_OPENOCD=1 '-DARM_NONE_EABI_TOOLCHAIN_PATH=C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major' -DNRF5_SDK_PATH=C:/Git/nRF5_SDK_15.3.0_59ac345 -DBUILD_DFU=1" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    question/discussionThis is just a question, for ex. not an issue or a feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions