Closed GoogleCodeExporter closed 9 years ago
additional info :
lucie@viso:~$ clang++ --version
clang version 2.9 (tags/RELEASE_29/final)
Target: i386-pc-linux-gnu
Thread model: posix
Original comment by stephane...@gmail.com
on 20 Apr 2011 at 2:04
Was just about to post this issue.
The reason for this error is API incompatibility due to change from
PluginVersionIdentifier to Version in CDT 8.0
Nothing happens if user clicks workspace -> New -> C/C++ Project.
Or if user tries to create C/C++ project via New project wizard the following
error message is produced:
Problem Occured
An error has occured. See error log for more details.
org.eclipse.cdt.managedbuilder.llvm.ui.LlvmIsToolChainSupported.isSupported(Lorg
/eclipse/cdt/managedbuilder/core/IToolChain;Lorg/eclipse/core/runtime/PluginVers
ionIdentifier;Ljava/lang/String;)Z
Original comment by petri.tuononen@gmail.com
on 20 Apr 2011 at 4:59
The solution:
* To use Eclipse Indigo with CDT 8.0 (http://download.eclipse.org/tools/cdt/builds/)
* I will soon create a version which is backward compatible with CDT 7.x and create a new category for it in the update site.
Original comment by petri.tuononen@gmail.com
on 20 Apr 2011 at 5:03
BTW Thanks for having time to write this issue down here.
I have created a temporary solution.
I created a new update site for CDT 7.x supported version. Feel free to test
this plug-in now and if you find any issues please write them down here.
http://petrituononen.com/llvm4eclipsecdt/update_cdt7
I tried to create two features within update-site, but PDE tools didn't want to
create generate a new jar for the another feature and also it doesn't update
the references for newly generated files. I will be looking into it but writing
update-site manually is too much.
Original comment by petri.tuononen@gmail.com
on 20 Apr 2011 at 6:21
It's better, i can now create a c++ project with llvm toolchain and access to
prefs but now it fails with the well known "error: Cannot find library
'stdc++'".
I was unable to add (value ignored) /usr/lib (where my libstdc++ is installed)
in library search path.
Relevant (IMHO) error log message below :
!ENTRY org.eclipse.ui 4 0 2011-04-21 22:36:02.990
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoSuchMethodError:
org.eclipse.cdt.managedbuilder.core.IOption.getLibraryPaths()[Ljava/lang/String;
at org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil.addLibrarySearchPathToToolOption(LlvmToolOptionPathUtil.java:476)
at org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil.addLlvmLibSearchPathToToolOption(LlvmToolOptionPathUtil.java:363)
at org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil.addPathToSelectedToolOptionBuildConf(LlvmToolOptionPathUtil.java:195)
at org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil.addPathToToolOption(LlvmToolOptionPathUtil.java:128)
at org.eclipse.cdt.managedbuilder.llvm.util.LlvmToolOptionPathUtil.addLlvmLibSearchPath(LlvmToolOptionPathUtil.java:94)
at org.eclipse.cdt.managedbuilder.llvm.ui.preferences.LibraryPathListEditor.getNewInputObject(LibraryPathListEditor.java:72)
at org.eclipse.cdt.managedbuilder.llvm.ui.preferences.LlvmListEditor.addPressed(LlvmListEditor.java:306)
at org.eclipse.cdt.managedbuilder.llvm.ui.preferences.LlvmListEditor$1.widgetSelected(LlvmListEditor.java:161)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
Original comment by stephane...@gmail.com
on 21 Apr 2011 at 9:10
Currently (at least) the plug-in is not supposed to find stdc++ library
automatically due to the fact that it is located in different places on
Windows, different Linux distributions and Mac.
What I suggest is to set LD_LIBRARY_PATH system environment variable to contain
stdc++ library path.
Preference page needs some remodeling which might take some time because my
current busy schedule.
Original comment by petri.tuononen@gmail.com
on 22 Apr 2011 at 5:53
The library search path error might now have been fixed. The reason is that
methods related to adding library search paths to tool's option are not
included in CDT 7.x. However the library search paths will still work because
they are added to LD_LIBRARY_PATH environment variable in Eclipse.
I have now updated the update-site.
Original comment by petri.tuononen@gmail.com
on 22 Apr 2011 at 7:28
Now the official update-site
(http://petrituononen.com/llvm4eclipsecdt/update)contains CDT 7 and CDT 8
supported versions. This is now where the latest releases are found.
Original comment by petri.tuononen@gmail.com
on 22 Apr 2011 at 8:26
I will now close this issue because the original problem has been solved. If
new issues should arise please open a new issue.
Original comment by petri.tuononen@gmail.com
on 28 Apr 2011 at 3:09
Original issue reported on code.google.com by
stephane...@gmail.com
on 20 Apr 2011 at 2:01Attachments: