问题标签 [cmake-gui]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - CMake compiling results in errors
The C compiler identification is unknown The CXX compiler identification is unknown Check for working C compiler: C:/MinGW/bin/gcc.exe Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/SFML-2.2/bin/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe"
"cmTryCompileExec3616319305/fast"C:/MinGW/bin/mingw32-make.exe -f
CMakeFiles\cmTryCompileExec3616319305.dir\build.make
CMakeFiles/cmTryCompileExec3616319305.dir/buildmingw32-make.exe[1]: Entering directory
'C:/SFML-2.2/bin/CMakeFiles/CMakeTmp'"C:\Program Files (x86)\CMake\bin\cmake.exe" -E cmake_progress_report C:\SFML-2.2\bin\CMakeFiles\CMakeTmp\CMakeFiles 1
Building C object
CMakeFiles/cmTryCompileExec3616319305.dir/testCCompiler.c.objC:\MinGW\bin\gcc.exe -o
CMakeFiles\cmTryCompileExec3616319305.dir\testCCompiler.c.obj -c
C:\SFML-2.2\bin\CMakeFiles\CMakeTmp\testCCompiler.cCMakeFiles\cmTryCompileExec3616319305.dir\build.make:56: recipe for target
'CMakeFiles/cmTryCompileExec3616319305.dir/testCCompiler.c.obj' failedmingw32-make.exe[1]: Leaving directory
'C:/SFML-2.2/bin/CMakeFiles/CMakeTmp'mingw32-make.exe[1]: ***
[CMakeFiles/cmTryCompileExec3616319305.dir/testCCompiler.c.obj] Error 1Makefile:116: recipe for target 'cmTryCompileExec3616319305/fast' failed
mingw32-make.exe: *** [cmTryCompileExec3616319305/fast] Error 2
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:16 (project)
Configuring incomplete, errors occurred! See also "C:/SFML-2.2/bin/CMakeFiles/CMakeOutput.log". See also "C:/SFML-2.2/bin/CMakeFiles/CMakeError.log".
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: C:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: C:/MinGW/bin/gcc.exe Build flags: Id flags: -c
The output was: 1
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: C:/MinGW/bin/gcc.exe Build flags: Id flags: -Aa
The output was: 1
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler": gcc.exe: fatal error: no input files compilation terminated. Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: C:/MinGW/bin/g++.exe Build flags: Id flags:
The output was: 1
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: C:/MinGW/bin/g++.exe Build flags: Id flags: -c
The output was: 1
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler": g++.exe: fatal error: no input files compilation terminated. Determining if the C compiler works failed with the following output: Change Dir: C:/SFML-2.2/bin/CMakeFiles/CMakeTmp
Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTryCompileExec3616319305/fast" C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTryCompileExec3616319305.dir\build.make CMakeFiles/cmTryCompileExec3616319305.dir/build
mingw32-make.exe[1]: Entering directory 'C:/SFML-2.2/bin/CMakeFiles/CMakeTmp'
"C:\Program Files (x86)\CMake\bin\cmake.exe" -E cmake_progress_report C:\SFML-2.2\bin\CMakeFiles\CMakeTmp\CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3616319305.dir/testCCompiler.c.obj
C:\MinGW\bin\gcc.exe -o CMakeFiles\cmTryCompileExec3616319305.dir\testCCompiler.c.obj -c C:\SFML-2.2\bin\CMakeFiles\CMakeTmp\testCCompiler.c
CMakeFiles\cmTryCompileExec3616319305.dir\build.make:56: recipe for target 'CMakeFiles/cmTryCompileExec3616319305.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: Leaving directory 'C:/SFML-2.2/bin/CMakeFiles/CMakeTmp'
mingw32-make.exe[1]: *** [CMakeFiles/cmTryCompileExec3616319305.dir/testCCompiler.c.obj] Error 1
Makefile:116: recipe for target 'cmTryCompileExec3616319305/fast' failed
mingw32-make.exe: *** [cmTryCompileExec3616319305/fast] Error 2
qt - 在 Windows 上结合 Qt 5.4.1 和 vtk 6.2.0(使用 CMake GUI 3.2.1)
我对 CMake 几乎一无所知。我想要做的是将VTK与Qt一起使用。不幸的是,我被困在 CMake 部分。出于某种原因,当我按“配置”时,出现以下错误:
我做了什么:
为 Windows 64 位安装 Qt 5.4.1 (VS 2013, 722 MB)
安装 vtk 6.2.0
安装 CMake 3.2.1
提取 vtk,并使用 CMake GUI,设置源代码路径和二进制构建。
设置几个环境变量:
/li>在 CMake GUI 中,检查以下选项:
VTK_Group_Qt
= 真BUILD_SHARED_LIBS
= 真VTK_QT_VERSION
= 5QT_QMAKE_EXECUTABLE
= E:/Qt/Qt5.4.1/5.4/msvc2013_64/bin/qmake.exe按配置。
得到上述错误。
我应该怎么做才能不出错?
谢谢!
cmake - 使用 CMake GUI 设置交叉编译器文件
我正在尝试使用 CMake 设置我的交叉编译版本。到目前为止,我正在从命令行设置像这样调用 CMake 的交叉编译器文件:
这工作得很好。
现在我正在尝试通过添加以下内容从 GUI 设置 CMAKE_TOOLCHAIN_FILE 变量:
到我的 CMakeLists.txt。
这实际上在 GUI 中显示了变量,但是当我按下“配置”按钮时,出现在 CMAKE_CXX_COMPILER 变量中的 c++ 编译器是默认的编译器,而不是工具链文件中指定的编译器。
如何从 Cmake-GUI 设置工具链文件?
c++ - 导出 cmake-gui 选项
我有一个包含许多不同配置选项的库。cmake-gui
我们通常使用并勾选几个复选框来配置构建。
我想.sh
使用 just 将其自动化到一个脚本中cmake
。
例如
在 GUI -> 选择一堆不同的选项
等效的 cmake 命令 ->cmake -D CMAKE_XXX=X -D CMAKE_XXY=XXY [a bunch of options here] ..
如何找到我从 GUI 中cmake
选择的任意配置的“等效”命令行命令?
c++ - OpenGL GLFW 构建错误或链接错误
有人可以帮我让 GLFW 在 Visual Studio 2012 中工作吗?我无法通过初始编译。我不断收到 GLFW 功能的未解决外部问题。问题是,我不知道我做错了什么。我可以是:
- 使用 CMake 不正确地制作源文件。
- 图书馆建设不当。
- 不正确地链接到 GLFW 库。
我不确定是哪一个,所以我只列出我做了什么:
对于我的代码,我在 main.cpp 中只有一个非常简单的测试程序:
但我总是在输出中得到这个:
configuration - 配置“安装 TARGETS 时出现 CMake 错误,因为没有为可执行目标“assimp_simpletexturedogl”指定运行时间目标。”
我正在尝试使用 CMake 来配置 assimp 的示例
但是配置时出现一些错误
我尝试了很多方法,但没有一个有效。
这是我的 CMakeLists.txt,任何想法都将不胜感激。
我正在使用 MSVC2013 进行编译。
c++ - Cmake错误:CXX编译器标识未知,C编译器标识未知
我正在尝试使用 ARM 处理器的交叉编译器在 Fedora 21 上安装 OpenCV。
但是,当我尝试使用 Cmake 3.03 进行配置时,它给出了错误:
我尝试将路径添加到我的 bash_profile,使其看起来像这样:
我已经在谷歌上搜索了几个小时,但找不到任何有用的步骤。任何帮助,将不胜感激。提前致谢。
c++ - 找不到 -lgtk-x11-2.0。此外,cmake 找不到某些模块,尽管它们已安装
我正在尝试使用 ARM 编译器在 Fedora 21 64 位上运行 opencv。我尝试使用 Cmake 3.0.2 gui 配置它,我得到了这个:
它显示了许多未找到的模块,包括 gstreamer、dc1394 等。但是我已经使用 sudo yum install 命令手动安装了它们。现在我在终端中运行 make 命令,它给了我以下错误,表明找不到 -lgtk-x11-2.0,尽管我已经用 yum 安装了它。
任何帮助将不胜感激。提前致谢。
cmake - CMake User String Input
I am attempting to use CMake to convert a generic wrapper into a specific one, via token replacement. I hope that all the user would have to do is input a specific set of strings, have CMake do configure_file, and the wrapper would read in the values and work as intended.
I am aware of the possibility to use set to set the token that needs to be replaced:
As well as the option to have the user select from a set of answers like so:
The problem with this is that I can't enumerate all valid answers. Is there any way for CMake to have a GUI pop up and allow the user to answer with any string? I could just have the user fill out these values in a file before calling make, but I'd like to avoid the users doing anything by hand in the files, and I want to take advance of the CMake cache and avoid assuming that the user has already filled out the variables in a file.
Any advice would be most helpful. Thanks.
cmake - CMake 工作流程?
我正在学习 CMake,但在理解其多步骤工作流程时遇到了问题。到目前为止,我的理解是你:
- 写一个
CMakeLists.txt
- 从子目录运行
cmake
以生成构建文件(在我的情况下为 Makefile) - 跑
make
但是,我不明白您应该如何处理不同的目标(发布与调试)。通过在两个不同的子目录中运行 CMake?
另外,我不明白你为什么要编辑CMakeCache.txt
(还有一个 GUI 工具)。./configure
通过传递不同的选项来模拟您将完成的工作?