Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    New build system introduced, testing and feedback needed

    Scheduled Pinned Locked Moved
    PanelDue
    7
    57
    2.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mfs12undefined
      mfs12
      last edited by

      Apparently you can install additional tools using eclipse. Probably update them as well. Eventually this didn't happen for some time.

      Visit me on github at https://github.com/mfs12/

      oozeBotundefined 1 Reply Last reply Reply Quote 0
      • oozeBotundefined
        oozeBot @mfs12
        last edited by oozeBot

        @mfs12 - much closer now. I had two versions of make.exe. I updated it and removed all references to /nologo. However, the version without a logo is what I am needing to compile?

        Here is where I currently am at.

        PS C:\Eclipse\PanelDueFirmware> make -C build VERBOSE=1 
        
        ...
        
        C:\Eclipse\PanelDueFirmware\build C:\Eclipse\PanelDueFirmware\build C:\Eclipse\PanelDueFirmware\build\CMakeFiles\paneldue.elf.dir\DependInfo.cmake --color=
        make[2]: Leaving directory 'C:/Eclipse/PanelDueFirmware/build'
        C:/Program Files/GNU ARM Eclipse/Build Tools/2.6-201507152002/bin/make  -f CMakeFiles\paneldue.elf.dir\build.make  -nw -- VERBOSE=1 CMakeFiles\paneldue.elf.dir\build
        make[2]: Entering directory 'C:/Eclipse/PanelDueFirmware/build'
        make[2]: *** No rule to make target 'lib\librrf\librrf.a', needed by 'paneldue.elf'.  Stop.
        make[2]: Leaving directory 'C:/Eclipse/PanelDueFirmware/build'
        make[1]: *** [CMakeFiles\Makefile2:93: CMakeFiles\paneldue.elf.dir\all] Error 2
        make[1]: Leaving directory 'C:/Eclipse/PanelDueFirmware/build'
        make: *** [Makefile:80: all] Error 2
        make: Leaving directory 'C:/Eclipse/PanelDueFirmware/build'
        
        1 Reply Last reply Reply Quote 0
        • oliofundefined
          oliof
          last edited by

          did you check out librrf as a submodule as detailed in the build instructions?

          <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

          oozeBotundefined 1 Reply Last reply Reply Quote 0
          • mfs12undefined
            mfs12
            last edited by

            @oozeBot sounds like you didn't checkout the git submodules.

            Please refer to https://github.com/Duet3D/PanelDueFirmware#setup-repository

            Visit me on github at https://github.com/mfs12/

            oozeBotundefined 1 Reply Last reply Reply Quote 0
            • oozeBotundefined
              oozeBot @oliof
              last edited by

              @oliof yes, I did and the root lib/librrf contains many files, so I think I did it right!

              1 Reply Last reply Reply Quote 0
              • oozeBotundefined
                oozeBot @mfs12
                last edited by

                @mfs12 I just responded that I thought I had, but it must be that didn't work correctly.. I'll rerun those steps again here soon. Thanks again

                1 Reply Last reply Reply Quote 0
                • oliofundefined
                  oliof
                  last edited by

                  After you rerun those steps, clean out the build/ directory and rerun cmake.

                  <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                  oozeBotundefined 1 Reply Last reply Reply Quote 0
                  • oozeBotundefined
                    oozeBot @oliof
                    last edited by

                    This is the console output. I'll clean up the build folder and try again here soon. Thanks

                    git submodule update --recursive
                    Cloning into '/home/pi/PanelDueFirmware/lib/librrf'...
                    Submodule path 'lib/librrf': checked out 'f3e75ecfe8802ca2cdac07cf20dee3ac05479ea7'
                    
                    1 Reply Last reply Reply Quote 0
                    • oozeBotundefined
                      oozeBot
                      last edited by

                      I'm back at it.. I cleaned up the build folder, validated I had the latest copy of the windows build tools, verified I had the submodules, and then re-ran.

                      Here is snippet of the files "cmake -B build" creates (using env.cmake). Note there are now no makefiles! Grr- any ideas?

                      Screenshot 2021-08-18 074858.png

                      1 Reply Last reply Reply Quote 0
                      • mfs12undefined
                        mfs12
                        last edited by

                        @oozeBot looks like cmake decided to create project files for visual code.

                        Check for more details about different IDE support.

                        https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html

                        In such an early stage i would recommend to delete the build folder when things behave weird.

                        Visit me on github at https://github.com/mfs12/

                        oozeBotundefined 1 Reply Last reply Reply Quote 0
                        • oozeBotundefined
                          oozeBot @mfs12
                          last edited by oozeBot

                          @mfs12 Finally! By using the following, it built without any modifications! There were some warnings, but it created the bin files. This is what I was missing..!

                          I think this was problem all along..

                          cmake -B build -G "Eclipse CDT4 - Unix Makefiles"
                          
                          mfs12undefined oozeBotundefined 2 Replies Last reply Reply Quote 0
                          • likhalabsundefined
                            likhalabs
                            last edited by

                            This might be unrelated, but is there an ongoing official CMake effort for RepRapFirmware as well? I'm actually the person who posted: https://reprap.org/forum/read.php?147,874397. I'm currently using it to build firmware for Duet WiFi, Duet 3 Mini 5+, and the board I'm developing. However, it would also be nice if there is an official CMake support upstream.

                            1 Reply Last reply Reply Quote 0
                            • mfs12undefined
                              mfs12 @oozeBot
                              last edited by

                              @oozebot are you using this with eclipse? if so could you check if code completion works nicely?

                              Visit me on github at https://github.com/mfs12/

                              oozeBotundefined 1 Reply Last reply Reply Quote 0
                              • mfs12undefined
                                mfs12
                                last edited by

                                @resam said in New build system introduced, testing and feedback needed:

                                (compiles everything, but plenty of warnings)

                                there's already task to current compiler warnings.

                                Progress will be reflected in the issue.

                                https://github.com/Duet3D/PanelDueFirmware/issues/183

                                mfs12 created this issue in Duet3D/PanelDueFirmware

                                closed Fix compiler warnings #183

                                Visit me on github at https://github.com/mfs12/

                                1 Reply Last reply Reply Quote 0
                                • mfs12undefined
                                  mfs12
                                  last edited by

                                  @likhalabs said in New build system introduced, testing and feedback needed:

                                  but is there an ongoing official CMake effort for RepRapFirmware as well?

                                  Hey, let's see how it goes with paneldue. If this goes well it can have potential. Do you have a repository with your build system?

                                  Visit me on github at https://github.com/mfs12/

                                  likhalabsundefined 1 Reply Last reply Reply Quote 0
                                  • oozeBotundefined
                                    oozeBot @mfs12
                                    last edited by oozeBot

                                    @mfs12 said in New build system introduced, testing and feedback needed:

                                    @oozebot are you using this with eclipse? if so could you check if code completion works nicely?

                                    Umm - I just followed the directions! I'm not directly using Eclipse, but it is installed.

                                    I just installed the firmware - it's working just fine! The PanelDue now reads version 3.4.0-dev.

                                    1 Reply Last reply Reply Quote 0
                                    • oozeBotundefined
                                      oozeBot @oozeBot
                                      last edited by

                                      @oozebot said in New build system introduced, testing and feedback needed:

                                      @mfs12 Finally! By using the following, it built without any modifications! There were some warnings, but it created the bin files. This is what I was missing..!

                                      I think this was problem all along..

                                      cmake -B build -G "Eclipse CDT4 - Unix Makefiles"
                                      

                                      I just tried with the following and it worked as well. I know I tried this before, but think I capitalized UNIX which is what caused the failure..

                                      cmake -B build -G "Unix Makefiles"
                                      
                                      1 Reply Last reply Reply Quote 1
                                      • mfs12undefined
                                        mfs12
                                        last edited by

                                        @oozeBot good to hear things are working for you now.

                                        Visit me on github at https://github.com/mfs12/

                                        oozeBotundefined 1 Reply Last reply Reply Quote 0
                                        • oozeBotundefined
                                          oozeBot @mfs12
                                          last edited by

                                          @mfs12 Real quick update that while I don't have any previous experience with building the firmware, I am digging the new build process! I can compile my changes within seconds and then immediately test. Plus the compiler does a pretty good job of explaining any errors..

                                          1 Reply Last reply Reply Quote 0
                                          • mfs12undefined
                                            mfs12
                                            last edited by

                                            @oozeBot good to hear also a beginner is able to use this easily after setting it up.

                                            Visit me on github at https://github.com/mfs12/

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA