cmake - 我正在尝试使用 cmake 安装 lightly-qt,但收到此错误消息:
问题描述
/usr/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:69 处的 CMake 错误(消息):C 编译器
"/usr/bin/cc"
无法编译简单的测试程序。
它失败并显示以下输出:
Change Dir: /home/jamesc/Lightly/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_b349a/fast && /usr/bin/make -f CMakeFiles/cmTC_b349a.dir/build.make CMakeFiles/cmTC_b349a.dir/build
make[1]: Entering directory '/home/jamesc/Lightly/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b349a.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_b349a.dir/testCCompiler.c.o -c /home/jamesc/Lightly/build/CMakeFiles/CMakeTmp/testCCompiler.c
cc: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
make[1]: *** [CMakeFiles/cmTC_b349a.dir/build.make:78: CMakeFiles/cmTC_b349a.dir/testCCompiler.c.o] Error 4
make[1]: Leaving directory '/home/jamesc/Lightly/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_b349a/fast] Error 2
CMake 将无法正确生成此项目。调用堆栈(最近调用优先):CMakeLists.txt:2(项目)
解决方案
推荐阅读
- python - 带有交互式按钮和下拉菜单的 Plotly-Dash 应用程序
- ios - 如何在控制台中快速获取错误消息以在 UI 中进行验证?
- python-2.7 - 在 Google Cloud 中部署 Python 应用程序时如何处理打开文件的路径?
- c++ - 必须重新定义一些 kext 成员函数,以避免未解析的符号
- javascript - Javascript数组在不知道父键的情况下获取所有子值
- css - 在 JavaFX 中动态设置背景和字体的首选方法
- angular - 编写 Object.Object.Method 的最佳实践
- c++ - 获取通用/前向引用的地址有什么意义?
- c++ - 如何在 Windows NT 驱动程序中获取符号链接名称?
- python - 重构代码时出现烧瓶迁移问题