I had the same problem.
Initially I had setup Eclipse CDT with Cygwing & was working smoothly. One day there happened a problem due to which I had to reset windows. After that when I opened Eclipse I started facing the issue described above. This is how I solved it.
First I searched that in the error the PATH variable value is same as the PATH variable of windows ( just by manual comparison of both two values ). I found that to be same. Now I realized that it is a PATH problem.
Then started looking for Cygwin whether it is there or not? It was there. I located & found that it exists in
C:cygwin64bin>
C:cygwin64bin>dir ma*
Volume in drive C is Windows8_OS
Volume Serial Number is 042E-11B5
Directory of C:cygwin64bin
16-05-2015 18:34 10,259 mag.exe
13-08-2013 04:57 384 mailmail
11-04-2015 02:56 4,252 make-emacs-shortcut
15-02-2015 23:25 194,579 make.exe
04-05-2015 21:36 40,979 makeconv.exe
29-07-2013 11:57 29,203 makedepend.exe
16-05-2015 18:34 79,891 makeindex.exe
16-05-2015 18:34 34,323 makejvf.exe
07-05-2015 03:04 310 mako-render
18-04-2015 02:07 92,179 man.exe
18-04-2015 02:07 113,683 mandb.exe
13-08-2013 04:57 286 manhole
18-04-2015 02:07 29,203 manpath.exe
24-10-2014 13:31 274,461 mate-terminal.exe
24-10-2014 13:31 1,366 mate-terminal.wrapper
15 File(s) 905,358 bytes
0 Dir(s) 373,012,271,104 bytes free
C:cygwin64bin>
Then I simply went ahead & updated the PATH variable to include this path & restarted eclipse.
The code compiles & debugging (GDB ) is working nicely.
Hope this helps.
@veydlin
Мне никогда не жалко средств на свое любопытство
Пытаюсь скомпилировать под ARM, выдает ошибку
Error: Program «make» not found in PATH
Путь до папки прописан
-
Вопрос заданболее трёх лет назад
-
6014 просмотров
Пригласить эксперта
Очевидно — найти исполняемый файл make (C:/MinGW/bin, предположу) и докинуть содержащую его директорию в PATH.
-
Показать ещё
Загружается…
09 июн. 2023, в 00:36
1000 руб./за проект
09 июн. 2023, в 00:26
3000 руб./за проект
09 июн. 2023, в 00:03
50000 руб./за проект
Минуточку внимания
Go to ECE
Configuring Eclipse to work with STM32 — Error: Program «make» not found in PATH
I followed all steps needed to configure Eclipse, GCC, toolchain, build tools, to work on STM32 ARM Cortex. But I’m not able to build the sample project yet.
I get the following error when I try to build:
Cannot run program «make» : Launching failed
Error: Program «make» not found in PATH
I suspect this is evn. variable / path issue. Any advice?
Posted by lucky62
on 2016-02-04 22:23
Hello,
I have created simple project in fresh installation.
On the Linux Mint — downloaded latest eclipse (Version: Mars.1 Release 4.5.1 Build id: 20150924-1200) and System Workbench for STM32 installed from the eclipse.
When I am trying to build project then I got the error:
22:09:20 **** Incremental Build of configuration Debug for project OpenSTM32_TestLED ****
make all
Cannot run program “make”: Unknown reason
Error: Program “make” not found in PATH
PATH=/SHARED/SSD_DATA/00_Tools/Eclipse4C/eclipse/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.3.0.201507241112/tools/compiler/bin:/SHARED/SSD_DATA/00_Tools/Eclipse4C/eclipse/plugins/fr.ac6.mcu.externaltools.linux64_1.3.0.201507241112/tools/make
22:09:20 Build Finished (took 21ms)
Seems that this directory not exists:
/SHARED/SSD_DATA/00_Tools/Eclipse4C/eclipse/plugins/fr.ac6.mcu.externaltools.linux64_1.3.0.201507241112/tools/make
What is missing?
(eclipse config attached)
Thanks.
Before I talk about this, let me introduce the installation environment:
System environment: win7 x64
1. Download the JDK installation package to install and set system environment variables. Such as:
D: Program Files Java jdk1.8.0 _131 bin. D:MinGWbin;
Enter Java Javac validation on the CMD command line.
2. Download the Eclipse IDE for C/C++ Developers (CDT) installation package and open Eclipse directly after installation.
3. Download MinGW and select the C /C++ option to download. Then configure and select MinGW
Windows > > Preferences > > c/c++ > > New c/c++ Projects > > Exectable> > MinGW GCC> is selected for Empty Project; > Click apply & gt; > Ok // set MinGW as the default option
The eclipse CDT Program “make” not found in PATH problem can be solved in the following two points:
Right project & GT; > Preferences > > CC++ Build > > Tool Chain Editor > > Change Current toolchain to MinGW GCC
Right project & GT; > Preferences > > CC++ Build > > Tool Chain Editor > > Change Current builder to GNU Make builder
Shih:
You can change the builder (builder) from CDT Internal Builder to External make, change the builder type from Internal Builer to External Builder in builder Settings of C/C++ Build in project properties, and finally fill in the program name of make in Build command. For example, MinGW’s Mingw32-make. This can also be achieved by changing the Current Builder to Gnu Make Builder in C/C++ Build→Tool Chain Editor. The two are different interface displays of the same setting.
Build a hello c program first (CTRL +B), in run (CTRL +F11)