
| View previous topic :: View next topic |
| Author |
Message |
pblemel
Joined: 31 Mar 2009 Posts: 42
|
Posted: Sat Oct 24, 2009 4:44 am Post subject: Netbeans 6.7.1 not generating correct Makefiles for multiple build configurations |
|
|
Hello World,
I am part of a group of developers using Netbeans 6.7.1 for C++ development. We are having a major problem with Netbeans incorrectly rewriting Makefiles for multiple platforms (Cygwin, Linux, OSX, QNX, and MinGW). When a developer modifies a build setting, all build configuration Makefiles are rewritten as tho they are intended for that developer's host OS.
For example : We have a suite of 10 shared/dynamic library projects. Some of them daisy-chain others, so projects are automatically rebuilt if necessary. Each project has build configurations for multiple platforms. If a Linux user modifies a setting in a project, the OSX configuration Makefile for that project is rewritten incorrectly (it is written as if it's for a Linux host). When the project is commited to the repository, and subsequently updated by the OSX user, the Makefile is broken and the OSX build fails.
When that happens, the OSX user touches the settings to force the Makefiles to be rewritten, which results in a new Linux makefile being written as if the target were OSX -- which subsequently fails to build in Linux and the cycle repeats.
The same problem happens when a Windows/cygwin user touches a setting that forces the Makefiles to be rebuilt.
What do I need to do to get Netbeans to rewrite the Makefiles using the Host/Suite settings in the build configuration instead of using the developer's host?
Thanks
Peter |
|
| Back to top |
|
 |
Thomas Preisler Posted via mailing list.
|
Posted: Sat Oct 24, 2009 4:57 am Post subject: How can I get Netbeans to leave unrelated Makefiles alone? |
|
|
Yes, this is a known problem: 168475 Multi-platform support is unusable.
We are looking at a solution right now and hopefully also fix it in 6.8.
--thomas
pblemel wrote:
| Quote: | Hello World,
I am part of a group of developers using Netbeans 6.7.1 for C++ development. We are having a major problem with Netbeans incorrectly rewriting Makefiles for multiple platforms (Cygwin, Linux, OSX, QNX, and MinGW). When a developer modifies a build setting, all build configuration Makefiles are rewritten as tho they are intended for that developer's host OS.
For example : We have a suite of 10 shared/dynamic library projects. Some of them daisy-chain others, so projects are automatically rebuilt if necessary. Each project has build configurations for multiple platforms. If a Linux user modifies a setting in a project, the OSX configuration Makefile for that project is rewritten incorrectly (it is written as if it's for a Linux host). When the project is commited to the repository, and subsequently updated by the OSX user, the Makefile is broken and the OSX build fails.
When that happens, the OSX user touches the settings to force the Makefiles to be rewritten, which results in a new Linux makefile being written as if the target were OSX -- which subsequently fails to build in Linux and the cycle repeats.
The same problem happens when a Windows/cygwin user touches a setting that forces the Makefiles to be rebuilt.
What do I need to do to get Netbeans to rewrite the Makefiles using the Host/Suite settings in the build configuration instead of using the developer's host?
Thanks
Peter
|
|
|
| Back to top |
|
 |
pblemel
Joined: 31 Mar 2009 Posts: 42
|
Posted: Sat Oct 24, 2009 5:02 am Post subject: Re: How can I get Netbeans to leave unrelated Makefiles alone? |
|
|
| Thomas Preisler wrote: | Yes, this is a known problem: 168475 Multi-platform support is unusable.
We are looking at a solution right now and hopefully also fix it in 6.8.
--thomas
|
Thanks for the quick reply. We will eagerly await the fix.
Thanks
Peter |
|
| Back to top |
|
 |
Nikolay Molchanov Posted via mailing list.
|
Posted: Sat Oct 24, 2009 5:56 am Post subject: Netbeans 6.7.1 not generating correct Makefiles for multiple build configurations |
|
|
Hi Thomas, Peter,
Does this problem affect *all* projects, including "projects from existing sources"?
Or it affects only projects with makefiles, generated by Netbeans IDE?
Thanks,
Nik
pblemel wrote: | Quote: | | Quote: | Thomas Preisler wrote:
| Quote: | Yes, this is a known problem: 168475 Multi-platform support is unusable.
|
| Quote: | We are looking at a solution right now and hopefully also fix it in 6.8.
|
Thanks for the quick reply. We will eagerly await the fix.
Thanks
Peter
([email]address-removed[/email])
([email]address-removed[/email])
| |
|
|
| Back to top |
|
 |
Nikolay Molchanov Posted via mailing list.
|
Posted: Sat Oct 24, 2009 5:56 am Post subject: Netbeans 6.7.1 not generating correct Makefiles for multiple build configurations |
|
|
Great! Fortunately I use only "unmanaged" projects for all important projects.
Peter, you can probably try this approach as well. What is nice about it:
- all project features are still available (edit, build, debug, profile)
- IDE does not touch your makefiles, but you can edit them
Thanks,
Nik
Thomas Preisler wrote: | Quote: | The issue applies 'only' to managed projects. Project system doesn't rewrite the makefile in unmanaged projects (projects from existing code).
On Oct 23, 2009, at 10:19 PM, Nikolay Molchanov <address-removed ([email]address-removed[/email])> wrote:
| Quote: | Hi Thomas, Peter,
Does this problem affect *all* projects, including "projects from existing sources"?
Or it affects only projects with makefiles, generated by Netbeans IDE?
Thanks,
Nik
pblemel wrote: | Quote: | | Quote: | Thomas Preisler wrote:
| Quote: | Yes, this is a known problem: 168475 Multi-platform support is unusable.
|
| Quote: | We are looking at a solution right now and hopefully also fix it in 6.8.
|
Thanks for the quick reply. We will eagerly await the fix.
Thanks
Peter
| |
| |
|
|
| Back to top |
|
 |
Thomas Preisler Posted via mailing list.
|
Posted: Sat Oct 24, 2009 2:41 pm Post subject: Netbeans 6.7.1 not generating correct Makefiles for multiple build configurations |
|
|
The issue applies 'only' to managed projects. Project systen doesn't rewrite the makefile in unmanaged projects (projects from existing code).
On Oct 23, 2009, at 10:19 PM, Nikolay Molchanov <address-removed ([email]address-removed[/email])> wrote:
| Quote: | Hi Thomas, Peter,
Does this problem affect *all* projects, including "projects from existing sources"?
Or it affects only projects with makefiles, generated by Netbeans IDE?
Thanks,
Nik
pblemel wrote: | Quote: | | Quote: | Thomas Preisler wrote:
| Quote: | Yes, this is a known problem: 168475 Multi-platform support is unusable.
|
| Quote: | We are looking at a solution right now and hopefully also fix it in 6.8.
|
Thanks for the quick reply. We will eagerly await the fix.
Thanks
Peter
]address-removed ([email]address-removed[/email])[/url]
]address-removed ([email]address-removed[/email])[/url]
| |
|
|
|
| Back to top |
|
 |
pblemel
Joined: 31 Mar 2009 Posts: 42
|
Posted: Mon Oct 26, 2009 4:46 pm Post subject: Thanks |
|
|
Is there a setting or xml tag in a project file somewhere that will let me make my existing projects 'unmanaged'?
Thanks |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|