A Makefile problem
-
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,-ELI think the correct way is to add your values to
EXTRA_LDFLAGS
in yourMakefile
before inserting$(IDF_PATH)/make/project.mk
At least it looks like that is the way it was designed.
Regards
-
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.
-
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
-
-
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 MakefileINCPATH = -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?@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...