Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMAKE Error : No CMAKE_CXX_COMPILER could be found #502

Closed
oblesh6 opened this issue Jul 4, 2023 · 2 comments · Fixed by #503
Closed

CMAKE Error : No CMAKE_CXX_COMPILER could be found #502

oblesh6 opened this issue Jul 4, 2023 · 2 comments · Fixed by #503

Comments

@oblesh6
Copy link

oblesh6 commented Jul 4, 2023

I was following the steps mentioned in the README.md from the https://github.com/COVESA/dlt-daemon page for the Build and Install of DLT.
while executing the cmake .. step, i'm facing the following error.

spx_admin@UbuntuLinux:~/Workspace/github/dlt-daemon-master/build$ cmake ..
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:17 (project):
No CMAKE_CXX_COMPILER could be found.

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.

-- Configuring incomplete, errors occurred!
See also "/home/spx_admin/Workspace/github/dlt-daemon-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/spx_admin/Workspace/github/dlt-daemon-master/build/CMakeFiles/CMakeError.log".

Please provide a solution to solve this.
Thanks.

@lti9hc
Copy link
Collaborator

lti9hc commented Jul 4, 2023

Hello @oblesh6
You are missing C++ compiler
Use "sudo apt-get install build-essential" to install it.

I hope it can help you

@oblesh6
Copy link
Author

oblesh6 commented Jul 4, 2023

Thank you @lti9hc , it worked :)

@lvklevankhanh lvklevankhanh linked a pull request Jul 7, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants