Hello all,
I am setting up Visual studio code on a Windows 11 box, used to Remote SSH into a raspberry pi zero 2 w.
The tutorial I am using is as follows: git clone --depth=1 https://github.com/gloveboxes/Raspberry ... opment.git
Tutorial sets up Visual Studio Code with CMAKE, C\C++ extensions and various other tool extensions that allow you to write and debug C\C++ on a raspberry pi Zero 2 W.
I have gone through all of the steps and have build the first program, a simple hello world app.
When I attempt to build the project I get the following error:
-DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/aarch64-linux-gnu-g++ -S/home/jpitz/code/print -B/home/jpitz/code/print/build -G " NMake Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Error: Could not create named generator NMake Makefiles
[cmake]
[cmake] Generators
[cmake] * Unix Makefiles = Generates standard UNIX makefiles.
[cmake] Green Hills MULTI = Generates Green Hills MULTI files
[cmake] (experimental, work-in-progress).
[cmake] Ninja = Generates build.ninja files.
[cmake] Ninja Multi-Config = Generates build-<Config>.ninja files.
[cmake] Watcom WMake = Generates Watcom WMake makefiles.
[cmake] CodeBlocks - Ninja = Generates CodeBlocks project files.
[cmake] CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
[cmake] CodeLite - Ninja = Generates CodeLite project files.
[cmake] CodeLite - Unix Makefiles = Generates CodeLite project files.
[cmake] Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
[cmake] Sublime Text 2 - Unix Makefiles
[cmake] = Generates Sublime Text 2 project files.
[cmake] Kate - Ninja = Generates Kate project files.
[cmake] Kate - Unix Makefiles = Generates Kate project files.
[cmake] Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
[cmake] Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
[cmake]
[proc] The command: /usr/bin/cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/aarch64-linux-gnu-g++ -S/home/jpitz/code/print -B/home/jpitz/code/print/build -G " NMake Makefiles" exited with code: 1
NMAKE is a windows based make utility, to attempt to correct this issue I have added the following to my CMakeList.txt file:
set(CMAKE_GENERATOR "Unix Makefiles" CACHE INTERNAL "" FORCE)
I can run from a terminal cmake -G "Unix Makefiles" .
and then a make
and the project builds.
But when I attempt to debug, I get the above NMAKE generator error.
Anyone have any ideas on how to correct this issue. I would prefer to run from Visual Studio Code as it make debugging much easier.
Thanks in advance.
Cheers
Joe
I am setting up Visual studio code on a Windows 11 box, used to Remote SSH into a raspberry pi zero 2 w.
The tutorial I am using is as follows: git clone --depth=1 https://github.com/gloveboxes/Raspberry ... opment.git
Tutorial sets up Visual Studio Code with CMAKE, C\C++ extensions and various other tool extensions that allow you to write and debug C\C++ on a raspberry pi Zero 2 W.
I have gone through all of the steps and have build the first program, a simple hello world app.
When I attempt to build the project I get the following error:
-DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/aarch64-linux-gnu-g++ -S/home/jpitz/code/print -B/home/jpitz/code/print/build -G " NMake Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Error: Could not create named generator NMake Makefiles
[cmake]
[cmake] Generators
[cmake] * Unix Makefiles = Generates standard UNIX makefiles.
[cmake] Green Hills MULTI = Generates Green Hills MULTI files
[cmake] (experimental, work-in-progress).
[cmake] Ninja = Generates build.ninja files.
[cmake] Ninja Multi-Config = Generates build-<Config>.ninja files.
[cmake] Watcom WMake = Generates Watcom WMake makefiles.
[cmake] CodeBlocks - Ninja = Generates CodeBlocks project files.
[cmake] CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
[cmake] CodeLite - Ninja = Generates CodeLite project files.
[cmake] CodeLite - Unix Makefiles = Generates CodeLite project files.
[cmake] Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
[cmake] Sublime Text 2 - Unix Makefiles
[cmake] = Generates Sublime Text 2 project files.
[cmake] Kate - Ninja = Generates Kate project files.
[cmake] Kate - Unix Makefiles = Generates Kate project files.
[cmake] Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
[cmake] Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
[cmake]
[proc] The command: /usr/bin/cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/aarch64-linux-gnu-g++ -S/home/jpitz/code/print -B/home/jpitz/code/print/build -G " NMake Makefiles" exited with code: 1
NMAKE is a windows based make utility, to attempt to correct this issue I have added the following to my CMakeList.txt file:
set(CMAKE_GENERATOR "Unix Makefiles" CACHE INTERNAL "" FORCE)
I can run from a terminal cmake -G "Unix Makefiles" .
and then a make
and the project builds.
But when I attempt to debug, I get the above NMAKE generator error.
Anyone have any ideas on how to correct this issue. I would prefer to run from Visual Studio Code as it make debugging much easier.
Thanks in advance.
Cheers
Joe
Statistics: Posted by jpitz31 — Wed Apr 10, 2024 2:12 am — Replies 0 — Views 9