A Makefile problem
-
wrote on 11 Oct 2019, 08:33 last edited by
Is there a way to restore its value?
-
@mrdebug Is there actually any documentation for this esp32? Maybe it is described somewhere?
-
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
-
wrote on 11 Oct 2019, 09:15 last edited by
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.
-
wrote on 11 Oct 2019, 09:15 last edited by
Ok now I try
-
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
-
wrote on 11 Oct 2019, 09:21 last edited by
Is it possible to manage a CMakeList project?
-
-
wrote on 11 Oct 2019, 09:26 last edited by
I will try
-
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?wrote on 11 Oct 2019, 14:00 last edited by@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...
27/27