View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007632CMakeCMakepublic2008-09-08 12:452016-06-10 14:30
ReporterA. Klitzing 
Assigned ToBill Hoffman 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007632: Generator for NetBeans
DescriptionI like to request generator-support for the open-source IDE "NetBeans". The configuration is in XML and can use normal Unix Makefiles.

http://wiki.netbeans.org [^]
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0013371)
Bill Hoffman (manager)
2008-09-08 17:55

I don't think much will happen with this unless there is some external help. Would you be interested in implementing this with some pointers?
(0013396)
A. Klitzing (reporter)
2008-09-10 12:20

Yes, I can look into it in some weeks. Do you have some documentation for that?
(0013648)
Bill Hoffman (manager)
2008-10-01 12:51

Not much documentation. You would need the following:

1. be able to drive the build system from the command line (for try compile stuff)
2. create some sub-classes of local and global generators.

Another option might be cmExternalMakefileProjectGenerator. It depends on if makefiles will still be used.
(0014522)
Alex Neundorf (developer)
2009-01-10 09:42

Yes, have a look at cmExtraEclipseCDT4Generator.(h|cxx) and cmExtraCodeBlocksGenerator.(h|cxx), they are executed additionally to the normal makefile generator and generate projects files for the generated makefiles.
And it's not hard to do :-)

Alex
(0020805)
Sebastian Meier (reporter)
2010-05-21 08:27

Hi,

we are planning to try our luck on a basic generator for NetBeans 6.9 within the next week. So if there's any addtional infos you can give us or any potential pitfalls we should pay attention to, please post it here.
(0020876)
Sebastian Meier (reporter)
2010-05-31 12:32

Well, it turns out that three and a half working days were not enough to tackle this. I will have to look back into this once I get more time. I don't really know when this will be.

Meanwhile I created a github repository where I uploaded what I've done so far:

http://github.com/sebastianmeier/CMake/commit/0a43c4aeb7efe570ca2f5486f5582ac847ba3fa2 [^]

Here are some comments from the developers about what to do next - thanks for your help!

"If you are not going to use makefiles, then you do not want to base it
on the eclipse generator. You want to start with cmLocalGenerator and
cmGlobalGenerator."

"You might want to look at the VS 2010 generator as a model. It is the most recent one done. It has a target generator which is a bit easier than the
local/global split of the older way of doing things."

"Can NetBeans be driven from the command line? That is a requirement for getting try_compile to work."

"CMake includes TRY_COMPILE feature for which will create an
appropriate CMake project in order to try compile... Thus CMake will use CMAKE_BUILD_TOOL in order to try to build, since you said you won't go for "Makefile-based" generator there should be a way to "build" with NetBeans.

More informations:
cmake --help-variable CMAKE_BUILD_TOOL
cmake --help-variable CMAKE_GENERATOR
cmake --help-variable CMAKE_EXTRA_GENERATOR"

P.S.: A big help on how to implement a global/local generator seems to be Samuel E. Henley's Code Blocks Generator project:

http://osrail.net/construction/cmake-codeblocks-project [^]

I really liked his coding style - clean and readable.
(0020882)
Sebastian Meier (reporter)
2010-06-01 03:48

More info:

http://stackoverflow.com/questions/1267403/which-netbeans-projects-files-should-go-into-source-control [^]

People discussing which NetBeans files would have to go into source control - and thus would have to be generated by a generator in order to create a working project.

Answer: configurations.xml, project.xml and the makefile.

Since the makefile is always initially the same, it would suffice to store a default makefile somewhere and copy it into the created project.
(0025524)
Alex Neundorf (developer)
2011-02-19 15:58

I think NetBeans supports cmake natively: http://forums.netbeans.org/ntopic26390.html [^]

So maybe a generator is not even necessary.

Alex
(0040669)
A. Klitzing (reporter)
2016-03-14 07:00

I think this can be closed because netbeans supports cmake by itself
(0041448)
Kitware Robot (administrator)
2016-06-10 14:27

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2008-09-08 12:45 A. Klitzing New Issue
2008-09-08 17:55 Bill Hoffman Status new => assigned
2008-09-08 17:55 Bill Hoffman Assigned To => Bill Hoffman
2008-09-08 17:55 Bill Hoffman Note Added: 0013371
2008-09-10 12:20 A. Klitzing Note Added: 0013396
2008-10-01 12:51 Bill Hoffman Note Added: 0013648
2009-01-10 09:42 Alex Neundorf Note Added: 0014522
2010-05-21 08:27 Sebastian Meier Note Added: 0020805
2010-05-31 12:32 Sebastian Meier Note Added: 0020876
2010-06-01 03:48 Sebastian Meier Note Added: 0020882
2011-02-19 15:58 Alex Neundorf Note Added: 0025524
2016-03-14 07:00 A. Klitzing Note Added: 0040669
2016-06-10 14:27 Kitware Robot Note Added: 0041448
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team