Open olimaticer opened 1 year ago
Hi Gregor
Today May 10, 2023, I just downloaded from this github a zip file and unzip it and it compiles fine. I don't use IDE, I just use plain text editor in Linux (Ubuntu). Unfortunately I don't use Windows for over 20 years now but maybe post this error code in the forum here ---> raspberry pi pico forum, the forum is very helpful and has some experts in this kind of error/s.
Thanks, Sonny
Hi sonnny
I was able to compile spp_counter.c in conjunction with the standalone directory.
But your example fails.
I have to change
include(pico_sdk_import.cmake)
intoinclude(../pico_sdk_import.cmake)
in any case.Than I got this message: _CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/CMakeTestCCompiler.cmake:67 (message):The C compiler
"C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Pico/bt1-project/build/CMakeFiles/CMakeScratch/TryCompile-m98elf
Run Build Command(s):C:/Program Files/CMake/bin/cmake.exe -E env VERBOSE=1 nmake -f Makefile /nologo cmTC_0bf6e\fast && "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_0bf6e.dir\build.make /nologo -L CMakeFiles\cmTC_0bf6e.dir\build Building C object CMakeFiles/cmTC_0bf6e.dir/testCCompiler.c.obj C:\PROGRA~2\GNUARM~1\102021~1.10\bin\AR19DD~1.EXE -std=gnu11 -o CMakeFiles\cmTC_0bf6e.dir\testCCompiler.c.obj -c C:\Pico\bt1-project\build\CMakeFiles\CMakeScratch\TryCompile-m98elf\testCCompiler.c Linking C executable cmTC_0bf6e.exe "C:\Program Files\CMake\bin\cmake.exe" -E rm -f CMakeFiles\cmTC_0bf6e.dir/objects.a C:\PROGRA~2\GNUARM~1\102021~1.10\bin\ARM-NO~2.EXE qc CMakeFiles\cmTC_0bf6e.dir/objects.a @CMakeFiles\cmTC_0bf6e.dir\objects1.rsp C:\PROGRA~2\GNUARM~1\102021~1.10\bin\AR19DD~1.EXE -Wl,--whole-archive CMakeFiles\cmTC_0bf6e.dir/objects.a -Wl,--no-whole-archive -o cmTC_0bf6e.exe -Wl,--out-implib,libcmTC_0bf6e.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_0bf6e.dir\linkLibs.rsp c:/progra~2/gnuarm~1/102021~1.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: unrecognized option '--major-image-version' c:/progra~2/gnuarm~1/102021~1.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: use the --help option for usage information collect2.exe: error: ld returned 1 exit status NMAKE : fatal error U1077: "C:\PROGRA~2\GNUARM~1\102021~1.10\bin\AR19DD~1.EXE -Wl,--whole-archive CMakeFiles\cmTC_0bf6e.dir/objects.a -Wl,--no-whole-archive -o cmTC_0bf6e.exe -Wl,--out-implib,libcmTC_0bf6e.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_0bf6e.dir\linkLibs.rsp": R³ckgabe-Code "0x1" Stop. NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_0bf6e.dir\build.make /nologo -L CMakeFiles\cmTC0bf6e.dir\build": R³ckgabe-Code "0x2" Stop.
CMake will not be able to correctly generate this project.
Does the compiling work on you device also today?
What IDE on which device/os do you use?
Bests Gregor