View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012213CMakeCMakepublic2011-05-21 21:462015-01-13 14:32
ReporterKZ 
Assigned ToAlex Neundorf 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSUbuntuOS Version11.04
Product VersionCMake 2.8.3 
Target VersionFixed in Version 
Summary0012213: Eclipse CDT4 Generator: Incompleted <linkedResources>
DescriptionI just installed cmake 2.8.3 on a Ubuntu 11.04 system and generated a Eclipse CDT4 project.

The generated project did not contain all the required linked resources. This makes the project unusable in Eclipse.

The exact same CMakeLists.txt generates a working Eclipse project in cmake 2.8.0.

See the attached cdt4.tgz.

Compare the two eclipse-$VER projects for output from each cmake version tested.
Steps To Reproduce1. tar xfa cdt4.tgz
2. export PROJ_DIR=`pwd`/sample/baz/project
3. Using cmake version 2.8.0
   a cd eclipse-2.8.0
   b cmake $PROJ_DIR -G"Eclipse CDT4 - Unix Makefiles"

4. Using cmake version 2.8.3
   a cd eclipse-2.8.3
   b cmake $PROJ_DIR -G"Eclipse CDT4 - Unix Makefiles"

6. Compare .project files in 2.8.0 and 2.8.3. The one in 2.8.3 has an incomplete <linkedResource> section.
TagsNo tags attached.
Attached Filestgz file icon cdt4.tgz [^] (89,299 bytes) 2011-05-21 21:46

 Relationships
related to 0012417closedAlex Neundorf CDT4 generator: source path configured incorrectly 
related to 0012223closedAlex Neundorf Support of linked resources in Eclipse/CDT (single files, not folders) 
related to 0012479closedAlex Neundorf Generated Eclipse CDT files only valid for >= Helios (3.6) 
related to 0015347closedAlex Neundorf Eclipse indexing no longer works 

  Notes
(0026566)
KZ (reporter)
2011-05-21 21:49

Title should say "Incomplete" not "Incompleted"
(0027123)
Alex Neundorf (developer)
2011-07-29 16:58

Can you please check whether that's still the case with CMake 2.8.5 ?

Thanks
Alex
(0027269)
KZ (reporter)
2011-08-25 02:21
edited on: 2011-08-25 02:26

I updated to 2.8.5 and the Eclipse project now has the correct linked folders under [Subprojects].

For some reason the Eclipse indexer is still totally hosed. Some of the includes are not being resolved. Eclipse lists 1000s of errors in my project because it can't resolve types.

Ctrl+B in Eclipse, or make from the shell builds without error.

I will post an update when I know more.

(0027629)
Alex Neundorf (developer)
2011-10-23 09:11

The missing linked resources were added in 2.8.5.

Now I committed a change so that no src-pathentries at all are generated anymore, and I didn't notice any problems.

This is now in the "next" branch of cmake (66bd543) and should be in 2.8.7.

Please give it a try and let me know if something doesn't work.

 Issue History
Date Modified Username Field Change
2011-05-21 21:46 KZ New Issue
2011-05-21 21:46 KZ File Added: cdt4.tgz
2011-05-21 21:49 KZ Note Added: 0026566
2011-05-22 05:18 Alex Neundorf Assigned To => Alex Neundorf
2011-05-22 05:18 Alex Neundorf Status new => assigned
2011-07-29 16:58 Alex Neundorf Note Added: 0027123
2011-08-25 02:21 KZ Note Added: 0027269
2011-08-25 02:26 KZ Note Edited: 0027269
2011-09-30 14:53 Alex Neundorf Relationship added related to 0012417
2011-09-30 14:54 Alex Neundorf Relationship added related to 0012223
2011-09-30 15:18 Alex Neundorf Relationship added child of 0012479
2011-09-30 15:19 Alex Neundorf Relationship deleted child of 0012479
2011-09-30 15:19 Alex Neundorf Relationship added related to 0012479
2011-10-23 09:11 Alex Neundorf Note Added: 0027629
2011-10-23 09:11 Alex Neundorf Status assigned => closed
2011-10-23 09:11 Alex Neundorf Resolution open => fixed
2015-01-13 14:32 Brad King Relationship added related to 0015347


Copyright © 2000 - 2018 MantisBT Team