Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Windows - Importing a Makefile project creates a project with internal builder
Windows - Importing a Makefile project creates a project with internal builder [message #1854588] Fri, 26 August 2022 17:11 Go to next message
Meher Khiari is currently offline Meher KhiariFriend
Messages: 2
Registered: August 2022
Junior Member
Hello,

This is my first time posting in this forum, so if I'm doing something wrong I'm honestly sorry, and English isn't my primary language so excuse my language.

So, I have this weird behavior for at least 2 years now with Eclipse CDT on Windows 10.
Right now I'm using Eclipse CDT 20220310-1457 (2022-03) on Windows 10.
When I import an existing Makefile project, it is configured to use the internal builder, thus I can't configure the "make" binary to be called (especially for MINGW64 who uses mingw323-make.exe) or change targets (all/clean ...).
On a GNU/Linux system, this problem doesn't arise.

How to reproduce :
1 - Create a folder
2 - Add a Makefile and a C source file.
3 - Fill those files with adequate contents (targets in Makefile to compile and clean the C source file. A minimal main function that returns 0 in the C source file).
4 - Open Eclipse CDT
5 - File > Import > C/C++ > Existing Code as Makefile Project
6 - Select the folder created in step 1 and MINGW in the toolchain list
7 - Press Finish
8 - Right click the created project and select properties
9 - Go to C/C++ Build
=> Builder type = Internal builder (can't be changed)
=> Every option can't be changed

I repeat that this behaviour doesn't exist if used within a GNU/Linux system.

Thanks you in advance.
Re: Windows - Importing a Makefile project creates a project with internal builder [message #1854595 is a reply to message #1854588] Sat, 27 August 2022 14:34 Go to previous message
Meher Khiari is currently offline Meher KhiariFriend
Messages: 2
Registered: August 2022
Junior Member
Hello there,

I found a workaround for this problem.
1 - Import the project useing the steps declared in the OP
2 - Open the project properties
3 - Go to C/C++ Build > Tool Chain Editor
4 - In the "Current builder" drop down, select "Gnu Make Builder"
5 - Go to C/C++ Build
6 - Uncheck the box "Use default build command"
7 - Change the "Build command" to "mingw32-make.exe"
8 - Uncheck the "Generate Makefiles automatically"
9 - Change the "Build directory" to the root of the project (instead of the "Default" subdirectory).
=> Building is successful

This is a workaround and not a fix to a problem.
I think it should be raised as a bug and will do it in the near future.

Thanks in advance.
Previous Topic:embedded c/c++ download
Next Topic:Incremental build not working correctly
Goto Forum:
  


Current Time: Fri Apr 26 01:22:27 GMT 2024

Powered by FUDForum. Page generated in 0.02924 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top