Skip to content

Building a new uf2 file using VS Code on Windows #17

@mevenson

Description

@mevenson

Is there any way to get the project to play nice with VS Code on Windows? I tried loading the folder into VS Code with no success. I have the pico SDK installed and I have the latest version of the pico support files for VS Code as well as the latest version of VS Code. I have the GCC 10.3.1 arm-none-eabi compiler selected.

When I run configure in VS Code, I get this:

[main] Configuring project: src
[proc] Executing command: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE "-DCMAKE_C_COMPILER:FILEPATH=C:\Program Files\Raspberry Pi\Pico SDK v1.5.1\gcc-arm-none-eabi\bin\arm-none-eabi-gcc.exe" "-DCMAKE_CXX_COMPILER:FILEPATH=C:\Program Files\Raspberry Pi\Pico SDK v1.5.1\gcc-arm-none-eabi\bin\arm-none-eabi-g++.exe" --no-warn-unused-cli "-SD:/354341-LMDBSERV/ECS/Raspberry Pi pico/projects/VersaTerm-work/software/src" "-Bd:/354341-LMDBSERV/ECS/Raspberry Pi pico/projects/VersaTerm-work/software/src/build" -G "Unix Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Warning (dev) in CMakeLists.txt:
[cmake] No project() command is present. The top-level CMakeLists.txt file must
[cmake] contain a literal, direct call to the project() command. Add a line of
[cmake] code such as
[cmake]
[cmake] project(ProjectName)
[cmake]
[cmake] near the top of the file, but after cmake_minimum_required().
[cmake]
[cmake] CMake is pretending there is a "project(Project)" command on the first
[cmake] line.
[cmake] This warning is for project developers. Use -Wno-dev to suppress it.
[cmake]
[cmake] CMake Warning (dev) in CMakeLists.txt:
[cmake] cmake_minimum_required() should be called prior to this top-level project()
[cmake] call. Please see the cmake-commands(7) manual for usage documentation of
[cmake] both commands.
[cmake] This warning is for project developers. Use -Wno-dev to suppress it.
[cmake]
[cmake] -- The C compiler identification is GNU 10.3.1
[cmake] -- The CXX compiler identification is GNU 10.3.1
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - failed
[cmake] -- Check for working C compiler: C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe
[cmake] -- Check for working C compiler: C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe - broken
[cmake] CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (message):
[cmake] The C compiler
[cmake]
[cmake] "C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe"
[cmake]
[cmake] is not able to compile a simple test program.
[cmake]
[cmake] It fails with the following output:
[cmake]
[cmake] Change Dir: 'D:/354341-LMDBSERV/ECS/Raspberry Pi pico/projects/VersaTerm-work/software/src/build/CMakeFiles/CMakeScratch/TryCompile-3toubr'
[cmake]
[cmake] Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe" -E env VERBOSE=1 C:/sberry/c/bin/gmake.exe -f Makefile cmTC_b46e7/fast
[cmake] C:/sberry/c/bin/gmake.exe -f CMakeFiles/cmTC_b46e7.dir/build.make CMakeFiles/cmTC_b46e7.dir/build
[cmake] gmake.exe[1]: Entering directory 'D:/354341-LMDBSERV/ECS/Raspberry Pi pico/projects/VersaTerm-work/software/src/build/CMakeFiles/CMakeScratch/TryCompile-3toubr'
[cmake] Building C object CMakeFiles/cmTC_b46e7.dir/testCCompiler.c.obj
[cmake] "C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe" -o CMakeFiles/cmTC_b46e7.dir/testCCompiler.c.obj -c "D:/354341-LMDBSERV/ECS/Raspberry Pi pico/projects/VersaTerm-work/software/src/build/CMakeFiles/CMakeScratch/TryCompile-3toubr/testCCompiler.c"
[cmake] Linking C executable cmTC_b46e7.exe
[cmake] "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe" -E rm -f CMakeFiles/cmTC_b46e7.dir/objects.a
[cmake] "C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/gcc-arm-none-eabi/bin/arm-none-eabi-ar.exe" qc CMakeFiles/cmTC_b46e7.dir/objects.a @CMakeFiles/cmTC_b46e7.dir/objects1.rsp
[cmake] "C:/Program Files/Raspberry Pi/Pico SDK v1.5.1/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe" -Wl,--whole-archive CMakeFiles/cmTC_b46e7.dir/objects.a -Wl,--no-whole-archive -o cmTC_b46e7.exe -Wl,--out-implib,libcmTC_b46e7.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles/cmTC_b46e7.dir/linkLibs.rsp
[cmake] c:/program files/raspberry pi/pico sdk v1.5.1/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: unrecognized option '--major-image-version'
[cmake] c:/program files/raspberry pi/pico sdk v1.5.1/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: use the --help option for usage information
[cmake] collect2.exe: error: ld returned 1 exit status
[cmake] gmake.exe[1]: *** [CMakeFiles/cmTC_b46e7.dir/build.make:102: cmTC_b46e7.exe] Error 1
[cmake] gmake.exe[1]: Leaving directory 'D:/354341-LMDBSERV/ECS/Raspberry Pi pico/projects/VersaTerm-work/software/src/build/CMakeFiles/CMakeScratch/TryCompile-3toubr'
[cmake] gmake.exe: *** [Makefile:127: cmTC_b46e7/fast] Error 2
[cmake]
[cmake]
[cmake]
[cmake]
[cmake]
[cmake] CMake will not be able to correctly generate this project.
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt
[cmake]
[cmake]
[cmake] CMake Warning (dev) in CMakeLists.txt:
[cmake] No cmake_minimum_required command is present. A line of code such as
[cmake]
[cmake] cmake_minimum_required(VERSION 3.29)
[cmake]
[cmake] should be added at the top of the file. The version specified may be lower
[cmake] if you wish to support older CMake versions for this project. For more
[cmake] information run "cmake --help-policy CMP0000".
[cmake] This warning is for project developers. Use -Wno-dev to suppress it.
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE "-DCMAKE_C_COMPILER:FILEPATH=C:\Program Files\Raspberry Pi\Pico SDK v1.5.1\gcc-arm-none-eabi\bin\arm-none-eabi-gcc.exe" "-DCMAKE_CXX_COMPILER:FILEPATH=C:\Program Files\Raspberry Pi\Pico SDK v1.5.1\gcc-arm-none-eabi\bin\arm-none-eabi-g++.exe" --no-warn-unused-cli "-SD:/354341-LMDBSERV/ECS/Raspberry Pi pico/projects/VersaTerm-work/software/src" "-Bd:/354341-LMDBSERV/ECS/Raspberry Pi pico/projects/VersaTerm-work/software/src/build" -G "Unix Makefiles" exited with code: 1

Any help would be greatly appreciated. I want to add telnet support as well as Televideo 950 terminal emulation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions