I am trying to build the mesh-bootloader and the cmake build system throws some error, could You have a look at my comandline options, or say what is going wrong.
I am using the cmake to generate the makefiles, this works well. But I didn't find a complete command line call in the documetation to build the bootloader, here is that one which I try with:
>cmake BUILD_BOOTLOADER -DTOOLCHAIN=gccarmemb -DCMAKE_BUILD_TYPE=MinSizeRel ..
I get the following error:
D:\Work\BLE\TimerAufsatz_BLtest\build>cmake BUILD_BOOTLOADER -DTOOLCHAIN=gccarme
mb -DCMAKE_BUILD_TYPE=MinSizeRel ..
-- Building for: Visual Studio 14 2015
-- Configuring CMake for nRF5 SDK for Bluetooth Mesh 1.0.1
-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.8")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- SDK_ROOT=D:/Work/BLE/TimerAufsatz_BLtest/external/nRF5_SDK_14.2.0_17b948a ---
set with default PATH
-- Platform: nrf52832_xxAA
-- Arch: cortex-m4f
-- Extracting SoftDevice s132_5.0.0...
-- SoftDevice: s132_5.0.0
-- Board: AUFSATZTASTE
-- PC-Lint executable not found. Linting disabled.
-- The C compiler identification is unknown
-- The ASM compiler identification is GNU
-- Found assembler: arm-none-eabi-gcc
CMake Error at CMakeLists.txt:52 (enable_language):
The CMAKE_C_COMPILER:
arm-none-eabi-gcc
is not a full path and was not found in the PATH.
CMake Error at CMakeLists.txt:52 (enable_language):
The CMAKE_ASM_COMPILER:
arm-none-eabi-gcc
is not a full path and was not found in the PATH.
-- Configuring incomplete, errors occurred!
See also "D:/Work/BLE/TimerAufsatz_BLtest/build/CMakeFiles/CMakeOutput.log".
See also "D:/Work/BLE/TimerAufsatz_BLtest/build/CMakeFiles/CMakeError.log".
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: arm-none-eabi-gcc
Build flags:
Id flags:
The output was:
1
Microsoft (R)-Buildmodul, Version 14.0.25420.1
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
Der Buildvorgang wurde am 03.04.2018 07:46:09 gestartet.
Projekt "D:\Work\BLE\TimerAufsatz_BLtest\build\CMakeFiles\3.10.1\CompilerIdC\CompilerIdC.vcxproj" auf Knoten "1" (Standardziele).
PrepareForBuild:
Das Verzeichnis "Debug\" wird erstellt.
Das Verzeichnis "Debug\CompilerIdC.tlog\" wird erstellt.
InitializeBuildStatus:
"Debug\CompilerIdC.tlog\unsuccessfulbuild" wird erstellt, da "AlwaysCreate" angegeben wurde.
ClCompile:
CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue CMakeCCompilerId.c
TRACKER : Fehler TRK0005: Fehler beim Suchen von "CL.exe". Das System kann die angegebene Datei nicht finden.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6006: "CL.exe" wurde mit dem Code 5 beendet. [D:\Work\BLE\TimerAufsatz_BLtest\build\CMakeFiles\3.10.1\CompilerIdC\CompilerIdC.vcxproj]
Die Erstellung des Projekts "D:\Work\BLE\TimerAufsatz_BLtest\build\CMakeFiles\3.10.1\CompilerIdC\CompilerIdC.vcxproj" ist abgeschlossen (Standardziele) -- FEHLER.
Fehler beim Buildvorgang.
"D:\Work\BLE\TimerAufsatz_BLtest\build\CMakeFiles\3.10.1\CompilerIdC\CompilerIdC.vcxproj" (Standardziel) (1) ->
(ClCompile Ziel) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6006: "CL.exe" wurde mit dem Code 5 beendet. [D:\Work\BLE\TimerAufsatz_BLtest\build\CMakeFiles\3.10.1\CompilerIdC\CompilerIdC.vcxproj]
0 Warnung(en)
1 Fehler
Verstrichene Zeit 00:00:00.42
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: arm-none-eabi-gcc
Build flags:
Id flags:
The output was:
1
Microsoft (R)-Buildmodul, Version 14.0.25420.1
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
Der Buildvorgang wurde am 03.04.2018 07:46:10 gestartet.
Projekt "D:\Work\BLE\TimerAufsatz_BLtest\build\CMakeFiles\3.10.1\CompilerIdC\CompilerIdC.vcxproj" auf Knoten "1" (Standardziele).
PrepareForBuild:
Das Verzeichnis "Debug\" wird erstellt.
Das Verzeichnis "Debug\CompilerIdC.tlog\" wird erstellt.
InitializeBuildStatus:
"Debug\CompilerIdC.tlog\unsuccessfulbuild" wird erstellt, da "AlwaysCreate" angegeben wurde.
ClCompile:
CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue CMakeCCompilerId.c
TRACKER : Fehler TRK0005: Fehler beim Suchen von "CL.exe". Das System kann die angegebene Datei nicht finden.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6006: "CL.exe" wurde mit dem Code 5 beendet. [D:\Work\BLE\TimerAufsatz_BLtest\build\CMakeFiles\3.10.1\CompilerIdC\CompilerIdC.vcxproj]
Die Erstellung des Projekts "D:\Work\BLE\TimerAufsatz_BLtest\build\CMakeFiles\3.10.1\CompilerIdC\CompilerIdC.vcxproj" ist abgeschlossen (Standardziele) -- FEHLER.
Fehler beim Buildvorgang.
"D:\Work\BLE\TimerAufsatz_BLtest\build\CMakeFiles\3.10.1\CompilerIdC\CompilerIdC.vcxproj" (Standardziel) (1) ->
(ClCompile Ziel) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6006: "CL.exe" wurde mit dem Code 5 beendet. [D:\Work\BLE\TimerAufsatz_BLtest\build\CMakeFiles\3.10.1\CompilerIdC\CompilerIdC.vcxproj]
0 Warnung(en)
1 Fehler
Verstrichene Zeit 00:00:00.44
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.
The target system is: Generic - - ARM The host system is: Windows - 6.1.7601 - AMD64 Checking whether the ASM compiler is GNU using "--version" matched "(GNU assembler)|(GCC)|(Free Software Foundation)": arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204] Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
what I am doing wrong?