Confused about why makefile is not generated












0















I have a lot of code used by our group. The group gave me a document that explains how to set up the makefile. However, the postdoc entered the commands really fast before and got it to work for a similar project, so I didn't get to understand how the process works. Now that I am working on a different project, though similar to the one above, I need to run make for this new project but don't want to ask that postdoc again



The document explains that I have to do the following:



1. create a new Build directory and cd in there

2. Run ccmake with CMakeLists.txt located in the (root) source folder (I saw the postdoc type `ccmake ../CMakeLists.txt`)

3. then press 'c' and then g


However, I entered all those steps and do not see a makefile in Build, hence I'm getting an error. I'm confused at the 2nd step, I see the following:



CMAKE_BUILD_TYPE               Release                                      
CMAKE_INSTALL_PREFIX /usr/local
PRE_BUILD ON
USING_SUBVERSION OFF


I'm not sure if I'm supposed to use Release for CMAKE_BUILD_TYPE? For step 3, I don't see anything in that Build folder. I remember the postdoc entered rm CMakeCache.txt, but I don't remember when or in which directory. What should I do?










share|improve this question














bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    I have a lot of code used by our group. The group gave me a document that explains how to set up the makefile. However, the postdoc entered the commands really fast before and got it to work for a similar project, so I didn't get to understand how the process works. Now that I am working on a different project, though similar to the one above, I need to run make for this new project but don't want to ask that postdoc again



    The document explains that I have to do the following:



    1. create a new Build directory and cd in there

    2. Run ccmake with CMakeLists.txt located in the (root) source folder (I saw the postdoc type `ccmake ../CMakeLists.txt`)

    3. then press 'c' and then g


    However, I entered all those steps and do not see a makefile in Build, hence I'm getting an error. I'm confused at the 2nd step, I see the following:



    CMAKE_BUILD_TYPE               Release                                      
    CMAKE_INSTALL_PREFIX /usr/local
    PRE_BUILD ON
    USING_SUBVERSION OFF


    I'm not sure if I'm supposed to use Release for CMAKE_BUILD_TYPE? For step 3, I don't see anything in that Build folder. I remember the postdoc entered rm CMakeCache.txt, but I don't remember when or in which directory. What should I do?










    share|improve this question














    bumped to the homepage by Community 1 hour ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I have a lot of code used by our group. The group gave me a document that explains how to set up the makefile. However, the postdoc entered the commands really fast before and got it to work for a similar project, so I didn't get to understand how the process works. Now that I am working on a different project, though similar to the one above, I need to run make for this new project but don't want to ask that postdoc again



      The document explains that I have to do the following:



      1. create a new Build directory and cd in there

      2. Run ccmake with CMakeLists.txt located in the (root) source folder (I saw the postdoc type `ccmake ../CMakeLists.txt`)

      3. then press 'c' and then g


      However, I entered all those steps and do not see a makefile in Build, hence I'm getting an error. I'm confused at the 2nd step, I see the following:



      CMAKE_BUILD_TYPE               Release                                      
      CMAKE_INSTALL_PREFIX /usr/local
      PRE_BUILD ON
      USING_SUBVERSION OFF


      I'm not sure if I'm supposed to use Release for CMAKE_BUILD_TYPE? For step 3, I don't see anything in that Build folder. I remember the postdoc entered rm CMakeCache.txt, but I don't remember when or in which directory. What should I do?










      share|improve this question














      I have a lot of code used by our group. The group gave me a document that explains how to set up the makefile. However, the postdoc entered the commands really fast before and got it to work for a similar project, so I didn't get to understand how the process works. Now that I am working on a different project, though similar to the one above, I need to run make for this new project but don't want to ask that postdoc again



      The document explains that I have to do the following:



      1. create a new Build directory and cd in there

      2. Run ccmake with CMakeLists.txt located in the (root) source folder (I saw the postdoc type `ccmake ../CMakeLists.txt`)

      3. then press 'c' and then g


      However, I entered all those steps and do not see a makefile in Build, hence I'm getting an error. I'm confused at the 2nd step, I see the following:



      CMAKE_BUILD_TYPE               Release                                      
      CMAKE_INSTALL_PREFIX /usr/local
      PRE_BUILD ON
      USING_SUBVERSION OFF


      I'm not sure if I'm supposed to use Release for CMAKE_BUILD_TYPE? For step 3, I don't see anything in that Build folder. I remember the postdoc entered rm CMakeCache.txt, but I don't remember when or in which directory. What should I do?







      make cmake






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 13 '15 at 1:26









      user4352158user4352158

      171238




      171238





      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 hour ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Traditionally, if you are in the root dir of your code base, you should be able to do this:



          mkdir Build
          cd Build
          cmake ..
          make


          ccmake is apparently a frontend to cmake, but I've never used it before so I don't know what pressing c and then g refers to, but I'm assuming this is probably or possibly a straight build. So I would just run the commands above and see how it goes. If that works, try again using ccmake`` just in case pressingcandg` actually makes a signficant difference.



          Before you re-try the build, maybe delete your old Build folder just to keep things clean.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f189846%2fconfused-about-why-makefile-is-not-generated%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Traditionally, if you are in the root dir of your code base, you should be able to do this:



            mkdir Build
            cd Build
            cmake ..
            make


            ccmake is apparently a frontend to cmake, but I've never used it before so I don't know what pressing c and then g refers to, but I'm assuming this is probably or possibly a straight build. So I would just run the commands above and see how it goes. If that works, try again using ccmake`` just in case pressingcandg` actually makes a signficant difference.



            Before you re-try the build, maybe delete your old Build folder just to keep things clean.






            share|improve this answer




























              0














              Traditionally, if you are in the root dir of your code base, you should be able to do this:



              mkdir Build
              cd Build
              cmake ..
              make


              ccmake is apparently a frontend to cmake, but I've never used it before so I don't know what pressing c and then g refers to, but I'm assuming this is probably or possibly a straight build. So I would just run the commands above and see how it goes. If that works, try again using ccmake`` just in case pressingcandg` actually makes a signficant difference.



              Before you re-try the build, maybe delete your old Build folder just to keep things clean.






              share|improve this answer


























                0












                0








                0







                Traditionally, if you are in the root dir of your code base, you should be able to do this:



                mkdir Build
                cd Build
                cmake ..
                make


                ccmake is apparently a frontend to cmake, but I've never used it before so I don't know what pressing c and then g refers to, but I'm assuming this is probably or possibly a straight build. So I would just run the commands above and see how it goes. If that works, try again using ccmake`` just in case pressingcandg` actually makes a signficant difference.



                Before you re-try the build, maybe delete your old Build folder just to keep things clean.






                share|improve this answer













                Traditionally, if you are in the root dir of your code base, you should be able to do this:



                mkdir Build
                cd Build
                cmake ..
                make


                ccmake is apparently a frontend to cmake, but I've never used it before so I don't know what pressing c and then g refers to, but I'm assuming this is probably or possibly a straight build. So I would just run the commands above and see how it goes. If that works, try again using ccmake`` just in case pressingcandg` actually makes a signficant difference.



                Before you re-try the build, maybe delete your old Build folder just to keep things clean.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 13 '15 at 2:07









                Klaatu von SchlackerKlaatu von Schlacker

                2,337710




                2,337710






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f189846%2fconfused-about-why-makefile-is-not-generated%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Histoire des bourses de valeurs

                    Why is there Russian traffic in my log files?

                    Rename multiple files to decrement number in file name?