<small id='H92zL'></small><noframes id='H92zL'>

        <bdo id='H92zL'></bdo><ul id='H92zL'></ul>
    1. <tfoot id='H92zL'></tfoot>
      1. <legend id='H92zL'><style id='H92zL'><dir id='H92zL'><q id='H92zL'></q></dir></style></legend>
        <i id='H92zL'><tr id='H92zL'><dt id='H92zL'><q id='H92zL'><span id='H92zL'><b id='H92zL'><form id='H92zL'><ins id='H92zL'></ins><ul id='H92zL'></ul><sub id='H92zL'></sub></form><legend id='H92zL'></legend><bdo id='H92zL'><pre id='H92zL'><center id='H92zL'></center></pre></bdo></b><th id='H92zL'></th></span></q></dt></tr></i><div id='H92zL'><tfoot id='H92zL'></tfoot><dl id='H92zL'><fieldset id='H92zL'></fieldset></dl></div>

      2. 为什么不是命令“cmake".生成makefile?

        时间:2023-08-27

        <small id='R2IJZ'></small><noframes id='R2IJZ'>

      3. <tfoot id='R2IJZ'></tfoot>
            • <bdo id='R2IJZ'></bdo><ul id='R2IJZ'></ul>
            • <i id='R2IJZ'><tr id='R2IJZ'><dt id='R2IJZ'><q id='R2IJZ'><span id='R2IJZ'><b id='R2IJZ'><form id='R2IJZ'><ins id='R2IJZ'></ins><ul id='R2IJZ'></ul><sub id='R2IJZ'></sub></form><legend id='R2IJZ'></legend><bdo id='R2IJZ'><pre id='R2IJZ'><center id='R2IJZ'></center></pre></bdo></b><th id='R2IJZ'></th></span></q></dt></tr></i><div id='R2IJZ'><tfoot id='R2IJZ'></tfoot><dl id='R2IJZ'><fieldset id='R2IJZ'></fieldset></dl></div>

                <legend id='R2IJZ'><style id='R2IJZ'><dir id='R2IJZ'><q id='R2IJZ'></q></dir></style></legend>
                  <tbody id='R2IJZ'></tbody>

                  本文介绍了为什么不是命令“cmake".生成makefile?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在终端中运行 cmake . 并说它生成了一些东西,然后我运行 make 并说

                  I run cmake . in terminal and it says it generated something, then I run make and it says

                  make: *** No targets specified and no makefile found.  Stop.
                  

                  我想我错过了一些我需要做的事情,但我不知道是什么.它应该创建了一个 make 文件,然后我可以构建并安装该文件.

                  I'm guessing I've missed something else that I need to do but I can't figure out what. It should have created a make file that I can then build and then install.

                  如果我说的太含糊了,请告诉我我还能对这个问题补充什么.

                  If I'm being too vague please let me know what more I can add to this question.

                  * 编辑 *

                  $ cmake .
                  -- Configuring done
                  CMake Warning (dev):
                    Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run               "cmake
                   --help-policy CMP0042" for policy details.  Use the cmake_policy command to
                   set the policy and suppress this warning.
                  
                    MACOSX_RPATH is not specified for the following targets:
                  
                    freeglut
                  
                  This warning is for project developers.  Use -Wno-dev to suppress it.
                  
                   -- Generating done
                   -- Build files have been written to:     /Users/nicholasl/Downloads/freeglut-3.0.0
                  

                  **** 构建目录内容 ****

                  **** contents of build directory ****

                  $ ls
                  AUTHORS             android
                  Build               android_toolchain.cmake
                  CMakeCache.txt          blackberry.toolchain.cmake
                  CMakeFiles          cmake_install.cmake
                  CMakeLists.txt          config.h
                  CMakeScripts            config.h.in
                  COPYING             doc
                  ChangeLog           freeglut.pc
                  README              freeglut.pc.in
                  README.android          freeglut.rc.in
                  README.blackberry       freeglut.xcodeproj
                  README.cmake            include
                  README.cygwin_mingw     mingw_cross_toolchain.cmake
                  README.mingw_cross      progs
                  README.win32            src
                  

                  推荐答案

                  似乎 CMake 默认在 Mac 上生成 XCode 项目.CMake 生成 freeglut.xcodeproj 以及所有支持文件.

                  It seems CMake defaults to generating an XCode project on Mac. CMake generated freeglut.xcodeproj along with all supporting files.

                  你最好从一个空目录运行 cmake,这样你就可以看到它在运行时实际做了什么.

                  You are better off running cmake from an empty directory, so you can see what it actually does when it is run.

                  要生成 makefile(并创建构建目录),请执行

                  To generate a makefile (and create a build directory), do

                  mkdir -p cmake-build && cd cmake-build
                  cmake .. -G"Unix Makefiles"
                  

                  然后它应该生成一个Makefile.

                  这篇关于为什么不是命令“cmake".生成makefile?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在 CMakeList.txt 文件中包含 OpenSSL 下一篇:使用 CMAKE 检查编译器中是否启用了 c++11 功能

                  相关文章

                  <tfoot id='1DeGC'></tfoot>

                • <legend id='1DeGC'><style id='1DeGC'><dir id='1DeGC'><q id='1DeGC'></q></dir></style></legend>
                  <i id='1DeGC'><tr id='1DeGC'><dt id='1DeGC'><q id='1DeGC'><span id='1DeGC'><b id='1DeGC'><form id='1DeGC'><ins id='1DeGC'></ins><ul id='1DeGC'></ul><sub id='1DeGC'></sub></form><legend id='1DeGC'></legend><bdo id='1DeGC'><pre id='1DeGC'><center id='1DeGC'></center></pre></bdo></b><th id='1DeGC'></th></span></q></dt></tr></i><div id='1DeGC'><tfoot id='1DeGC'></tfoot><dl id='1DeGC'><fieldset id='1DeGC'></fieldset></dl></div>

                    • <bdo id='1DeGC'></bdo><ul id='1DeGC'></ul>
                  1. <small id='1DeGC'></small><noframes id='1DeGC'>