MantisBT - CMake
View Issue Details
0013970CMakeCMakepublic2013-03-03 10:572014-09-01 16:55
kesten 
Alex Neundorf 
normalminoralways
closedunable to reproduce 
Apple MacOS X10.4.10
CMake 2.8.10.2 
 
0013970: Troubles importing cmake c++ project into eclipse using Eclipse CDT4 generator
I started this in a previous thread.
http://public.kitware.com/Bug/view.php?id=13606 [^]

The update to 2.8.10.2 got me past some issues.
However, i'm still having troubles getting included files to be recognized.

I'm not sure how to upload photos to this site, so i created a page elsewhere describing the difficulties (complete with photos and video links)

https://sites.google.com/site/apachestack/assignments/homeworkforweekofoctober25th/example-importing-an-enterprise-c-cmake-project [^]

https://sites.google.com/site/apachestack/classroom-pictures [^]

Any tips to getting rid of all the "red ink" in my project would be most appreciated. The build works because eclipse just delegates to make at the commandline. But all the nice features like code complete and "open declaration" only work for a very few files in the project.

thanks,

kesten
Create .project and .cproject files for eclipse using cmake -G "Eclipse CDT4 Unix Makefiles" option.
Open project in eclipse.
Manually include any paths not inluded automatically using the Properties dialog.
Most included components are displayed with a red underline and a complaint of "Symbol X could not be resolved". Even for X in the std lib.
Complete details in the links in Description field.
No tags attached.
Issue History
2013-03-03 10:57kestenNew Issue
2013-03-04 11:52Alex NeundorfAssigned To => Alex Neundorf
2013-03-04 11:52Alex NeundorfStatusnew => assigned
2013-03-09 05:24Peter KuemmelAssigned ToAlex Neundorf => Peter Kuemmel
2013-03-09 05:38Peter KuemmelNote Added: 0032549
2013-03-09 11:34kestenNote Added: 0032562
2013-03-12 12:57Peter KuemmelAssigned ToPeter Kuemmel => Alex Neundorf
2013-04-28 10:08Alex NeundorfNote Added: 0032950
2013-06-26 16:12Alex NeundorfNote Added: 0033392
2014-05-27 16:30Alex NeundorfNote Added: 0035949
2014-09-01 16:55Alex NeundorfNote Added: 0036697
2014-09-01 16:55Alex NeundorfStatusassigned => closed
2014-09-01 16:55Alex NeundorfResolutionopen => unable to reproduce

Notes
(0032549)
Peter Kuemmel   
2013-03-09 05:38   
Is it also a ninja issue?
(0032562)
kesten   
2013-03-09 11:34   
No it is not. It's more a CDT4 Eclipse cmake issue. I just found it on a posting from a ninja user having a similar problem.
(0032950)
Alex Neundorf   
2013-04-28 10:08   
Just to make sure I don't misunderstand:
you are using the Eclipse CDT generator, right ?
Can you please attach the generated .project and .project files here ?

I know that there are issues with includes from OSX frameworks, so maybe this is the same as 0013367 .
(0033392)
Alex Neundorf   
2013-06-26 16:12   
If you still have that problem with Eclipse and CMake, can you please attah the generated .project and .cproject files here ?

Thanks
(0035949)
Alex Neundorf   
2014-05-27 16:30   
I can't reproduce the problem.
e.g. std::string is resolved just fine for me.
Do you still have the problem ?
(0036697)
Alex Neundorf   
2014-09-01 16:55   
I cannot reproduce the problem and the reporter does not respond anymore, so I'm closing this ticket.