Compiling llvm examples on Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I wanted to play around with the examples provided by llvm-doc.  But I
can't figure out exactly how to compile them.  Using the provided
Makefile seems impossible, it includes several other Makefiles from the
llvm source tree, namely Makefile.{common,config,rules}.  Even if I
manage to copy over two of the files (common and rules) from the
upstream repo, finding the config file seems very difficult.  It is
generated by configure before compilation.  So I decided to use cmake.

This is what I did:

  $ cp -R /usr/share/doc/llvm-doc/examples/Fibonacci /tmp/
  $ mkdir /tmp/Fibonacci/build
  $ pushd /tmp/Fibonacci/build/

edit ../CMakeLists.txt and add the two following lines at the top:

  set(CMAKE_MODULE_PATH /usr/share/llvm/cmake)
  # find_package(LLVM)
  include(AddLLVM)

Running

  $ cmake ..

gives me the following errors:

  CMake Error at /usr/share/llvm/cmake/AddLLVM.cmake:443 (set_output_directory):
    set_output_directory Function invoked with incorrect arguments for function
    named: set_output_directory
  Call Stack (most recent call first):
    /usr/share/llvm/cmake/AddLLVM.cmake:481 (add_llvm_executable)
    CMakeLists.txt:16 (add_llvm_example)

Uncommenting the find_package lines seems to produce even more similar
copious errors.

Anyone has experience with this, ideas?

TIA,

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux