Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. A Makefile problem
Forum Updated to NodeBB v4.3 + New Features

A Makefile problem

Scheduled Pinned Locked Moved Unsolved C++ Gurus
27 Posts 5 Posters 4.6k Views 3 Watching
  • 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.
  • VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by
    #17

    This makefile calls a bunch of other makefiles. In one of them it's very likely LIBS gets overridden

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    1 Reply Last reply
    0
    • mrdebugM Offline
      mrdebugM Offline
      mrdebug
      wrote on last edited by
      #18

      Is there a way to restore its value?

      Need programmers to hire?
      www.labcsp.com
      www.denisgottardello.it
      GMT+1
      Skype: mrdebug

      jsulmJ aha_1980A 2 Replies Last reply
      0
      • mrdebugM mrdebug

        Is there a way to restore its value?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #19

        @mrdebug Is there actually any documentation for this esp32? Maybe it is described somewhere?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • mrdebugM mrdebug

          Is there a way to restore its value?

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #20

          @mrdebug

          Looking at this:

          Set default LDFLAGS
          EXTRA_LDFLAGS ?=
          LDFLAGS ?= -nostdlib
          -u call_user_start_cpu0
          $(EXTRA_LDFLAGS)
          -Wl,--gc-sections
          -Wl,-static
          -Wl,--start-group
          $(COMPONENT_LDFLAGS)
          -lgcc
          -lstdc++
          -lgcov
          -Wl,--end-group
          -Wl,-EL

          I think the correct way is to add your values to EXTRA_LDFLAGS in your Makefile before inserting $(IDF_PATH)/make/project.mk

          At least it looks like that is the way it was designed.

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • mrdebugM Offline
            mrdebugM Offline
            mrdebug
            wrote on last edited by
            #21

            Absolutely not.
            I have already asked in the Espressif official forum without any reply.
            I have asked here because this forum is read by top level developers.

            There is another way, it is to use cmake. With cmake everithing works.
            The problem is the IDE.
            I need to use an IDE to develop, such as Eclipse (the only one). The problem is that Eclipse does not considered the CMakeLists.txt file. It considers only the Makefile file because Eclipse manages the Esp32 projects as Makefile projects.

            To use Eclipse is not mandatory (I hate Eclipse) but it is the only one.

            Need programmers to hire?
            www.labcsp.com
            www.denisgottardello.it
            GMT+1
            Skype: mrdebug

            1 Reply Last reply
            0
            • mrdebugM Offline
              mrdebugM Offline
              mrdebug
              wrote on last edited by
              #22

              Ok now I try

              Need programmers to hire?
              www.labcsp.com
              www.denisgottardello.it
              GMT+1
              Skype: mrdebug

              aha_1980A 1 Reply Last reply
              0
              • mrdebugM mrdebug

                Ok now I try

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #23

                @mrdebug

                I need to use an IDE to develop, such as Eclipse (the only one). The problem is that Eclipse does not considered the CMakeLists.txt file. It considers only the Makefile file because Eclipse manages the Esp32 projects as Makefile projects.

                Why not use QtCreator? https://doc.qt.io/qtcreator/creator-project-generic.html is exactly for that use case with existing makefiles.

                I use them for Atmel ATMEGA projects, e.g.

                Regards

                Qt has to stay free or it will die.

                1 Reply Last reply
                0
                • mrdebugM Offline
                  mrdebugM Offline
                  mrdebug
                  wrote on last edited by
                  #24

                  Is it possible to manage a CMakeList project?

                  Need programmers to hire?
                  www.labcsp.com
                  www.denisgottardello.it
                  GMT+1
                  Skype: mrdebug

                  aha_1980A 1 Reply Last reply
                  0
                  • mrdebugM mrdebug

                    Is it possible to manage a CMakeList project?

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #25

                    @mrdebug

                    Sure: https://doc.qt.io/qtcreator/creator-project-cmake.html

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    0
                    • mrdebugM Offline
                      mrdebugM Offline
                      mrdebug
                      wrote on last edited by
                      #26

                      I will try

                      Need programmers to hire?
                      www.labcsp.com
                      www.denisgottardello.it
                      GMT+1
                      Skype: mrdebug

                      1 Reply Last reply
                      0
                      • mrdebugM mrdebug

                        Hi, I have a very strange behaviour with a Makefile on Linux. It is not a project relative to Qt but relative to a micro controller (esp32).
                        So the problem il to use an external library (mylib.a) in a Makefile.
                        After having studying how to QtCreator generates a Makefile, I have inserted the following lines on code in my Makefile

                        INCPATH       = -I/home/denis/workspace/esp32-Test01/components/component01/include/
                        LIBS          = $(SUBLIBS) -L/home/denis/workspace/esp32-Test01-App/main/../../test01/ -lmylib
                        

                        The Makefile is

                        #
                        # This is a project Makefile. It is assumed the directory this Makefile resides in is a
                        # project subdirectory.
                        #
                        
                        PROJECT_NAME := esp32-Test01-App
                        
                        INCPATH       = -I/home/denis/workspace/esp32-Test01/components/component01/include/
                        LIBS          = $(SUBLIBS) -L/home/denis/workspace/esp32-Test01-App/main/../../test01/ -lmylib
                        
                        
                        include $(IDF_PATH)/make/project.mk
                        
                        

                        but they are absolutaly non considered.
                        What it is wrong?

                        Pablo J. RoginaP Offline
                        Pablo J. RoginaP Offline
                        Pablo J. Rogina
                        wrote on last edited by
                        #27

                        @mrdebug said in A Makefile problem:

                        After having studying how to QtCreator generates a Makefile, I have inserted the following lines on code in my Makefile

                        Mmm, so are you editing the Makefile by hand?
                        I'm not sure it's a good way to go.
                        You may want to edit your Qt project file (.pro) and let qmake create your Makefile then, passing to it all your settings...

                        Upvote the answer(s) that helped you solve the issue
                        Use "Topic Tools" button to mark your post as Solved
                        Add screenshots via postimage.org
                        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved