Skip to content

Comments

Update CMakeLists.txt fix Linux avr-gcc/g++ error#27605

Merged
thinkyhead merged 4 commits intoMarlinFirmware:bugfix-2.1.xfrom
classicrocker883:bugfix-2.1.x-December1
Jan 11, 2025
Merged

Update CMakeLists.txt fix Linux avr-gcc/g++ error#27605
thinkyhead merged 4 commits intoMarlinFirmware:bugfix-2.1.xfrom
classicrocker883:bugfix-2.1.x-December1

Conversation

@classicrocker883
Copy link
Contributor

@classicrocker883 classicrocker883 commented Dec 25, 2024

Description

When using CMakeLists.txt in Linux/Unix, this error pops up:

Click to see error
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:127 (project):
  The CMAKE_C_COMPILER:

    avr-gcc

  is not a full path and was not found in the PATH.

  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:127 (project):
  The CMAKE_CXX_COMPILER:

    avr-g++

  is not a full path and was not found in the PATH.

  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.

I simply use the same copy/paste string(REPLACE), but if there is another easier way like list(APPEND) let me know

Requirements

Benefits

Configurations

Related Issues

Unsure/unable to test Apple or to leave this
if(UNIX) or what.

@thinkyhead thinkyhead merged commit 8d7ecad into MarlinFirmware:bugfix-2.1.x Jan 11, 2025
64 checks passed
@classicrocker883 classicrocker883 deleted the bugfix-2.1.x-December1 branch January 25, 2025 16:07
EvilGremlin pushed a commit to EvilGremlin/Marlin that referenced this pull request May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants