[LLVMdev] building a pass with cmake

erkan diken erkandiken at gmail.com
Tue Jul 24 02:52:20 PDT 2012


Yes, it works. Thanks Oscar.

On Mon, Jul 23, 2012 at 10:38 PM, Óscar Fuentes <ofv at wanadoo.es> wrote:

> The following message is a courtesy copy of an article
> that has been posted to gmane.comp.compilers.llvm.devel as well.
>
> erkan diken <erkandiken at gmail.com> writes:
>
> [snip]
>
> > It seems that cmake is ok. When I run make install, it gives errors (see
> > below) and i think the reason is that it can not find the directory to
> llvm
> > header files.
> > I could not figure it out which variable to set and how to use it in
> order
> > to point the required directory ?
> > ( as in the make pass build which requires LLVM_SRC_ROOT LLVM_OBJ_ROOT
> > variables to be set)
> >
> > Hello2/Hello.cpp:17:23: error: llvm/Pass.h: No such file or directory
> > Hello2/Hello.cpp:18:27: error: llvm/Function.h: No such file or directory
> > Hello2/Hello.cpp:19:38: error: llvm/Support/raw_ostream.h: No such file
> or
> > directory
> > Hello2/Hello.cpp:20:32: error: llvm/ADT/Statistic.h: No such file or
> > directory
> > Hello2/Hello.cpp:21: error: ‘llvm’ is not a namespace-name
> > ...
> >
> > Your feedback is very welcome.
>
> I think this is the same problem that was reported here a few weeks
> ago. IIRC LLVM_INCLUDE_DIRS and LLVM_LIBRARY_DIRS are wrong after
> install. Try with
>
> include_directories( ${LLVM_ROOT}/include )
> link_directories( ${LLVM_ROOT}/lib )
>



-- 
Best Regards,
Erkan Diken
------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120724/f5f3653a/attachment.html>


More information about the llvm-dev mailing list