LLVM installation folder setting (OS X)?

490 views
Skip to first unread message

pfurbacher

unread,
Jun 28, 2012, 2:20:42 PM6/28/12
to llvm4ec...@googlegroups.com
I'm having trouble getting LLVM set up after installing the llvm4eclipsecdt plugin.  I have Xcode 4.3 installed (i.e., developer tools), but am not sure what I should enter as the LLVM installation folder.  Also, do I need to add any include directories and libs related to LLVM/Clang and C++, or does the plug-in auto-discover these in a manner similar to how the JDT (Java) discovers JDKs when pointed at the appropriate folder?

Thanks.

Sunny

unread,
Jun 28, 2012, 9:12:30 PM6/28/12
to llvm4ec...@googlegroups.com
I have not worked on mac before, the following works for Ubuntu platform:
llvm-config --bindir
--bindir gives Directory containing LLVM executables :<someDir>\bin.
--includedir gives Directory containing LLVM headers :<someDir>\include.
--libdir gives Directory containing LLVM libraries :<someDir>\lib.

Here <someDir> is the installation directory.
My understanding is you need to specify each library by providing a
linker flag and a library search path, this goes at-least as far as
Ubuntu is concerned.

Regards

pfurbacher

unread,
Jun 29, 2012, 12:12:18 PM6/29/12
to llvm4ec...@googlegroups.com
I couldn't find llvm-config, but clang -print-search-dirs gave info which helped.  Before that, I went to Apple's developer site and downloaded the June 12, 2012 "command line tools for Xcode" in order to make sure my versions of clang/llvm were up-to-date.

Then I took a stab at setting up the LLVM preference page in Eclipse C++ (Indigo).  Below is a snapshot of my settings.  Prior to establishing these settings, a barebones "Hello World" application showed errors: e.g., cout was underlined in red squiggles.  After applying the changes to the LLVM preference page, all errors were gone.  So, I'm assuming everything is set up correctly. (Maintainers of the project may feel free to use the following image in documentation.) 


Reply all
Reply to author
Forward
0 new messages