Hi,
I did this:
$ cmake -DCMAKE_INSTALL_PREFIX=~/llvm-2.8 -DCMAKE_BUILD_TYPE=Release
-DLLVM_TARGETS_TO_BUILD=X86 ..
$ make
$ make install
Still didn't install the headers.
$ cd ~/llvm-2.8/include/
$ ls -la
total 0
drwxr-xr-x 2 samuel staff 68 1 Oct 12:47 .
drwxr-xr-x 6 samuel staff 204 1 Oct 12:47 ..
Libraries and binaries installed fine:
$ cd ../lib/
$ ls -la
total 44600
drwxr-xr-x 2 samuel staff 1190 1 Oct 13:40 .
drwxr-xr-x 6 samuel staff 204 1 Oct 12:47 ..
-rwxr-xr-x 1 samuel staff 17736 1 Oct 13:40 BugpointPasses.so
-rwxr-xr-x 1 samuel staff 17304 1 Oct 13:36 LLVMHello.so
-rw-r--r-- 1 samuel staff 11592 1 Oct 13:40 libEnhancedDisassembly.a
-rw-r--r-- 1 samuel staff 2229616 1 Oct 13:40 libLLVMAnalysis.a
-rw-r--r-- 1 samuel staff 80080 1 Oct 13:40 libLLVMArchive.a
-rw-r--r-- 1 samuel staff 375672 1 Oct 13:40 libLLVMAsmParser.a
-rw-r--r-- 1 samuel staff 417544 1 Oct 13:40 libLLVMAsmPrinter.a
-rw-r--r-- 1 samuel staff 195016 1 Oct 13:40 libLLVMBitReader.a
-rw-r--r-- 1 samuel staff 170536 1 Oct 13:40 libLLVMBitWriter.a
-rw-r--r-- 1 samuel staff 3275696 1 Oct 13:40 libLLVMCodeGen.a
-rw-r--r-- 1 samuel staff 2523744 1 Oct 13:40 libLLVMCore.a
-rw-r--r-- 1 samuel staff 134504 1 Oct 13:40 libLLVMExecutionEngine.a
-rw-r--r-- 1 samuel staff 926488 1 Oct 13:40 libLLVMInstCombine.a
* snip *
Could there be some additional option required for development files? Currently,
I have CMAKE_BUILD_TYPE=Release - maybe this doesn't install headers?
Kind regards,
Samuel
On 1/10/2010, at 11:52 AM, Óscar Fuentes wrote:
> The following message is a courtesy copy of an article
> that has been posted to gmane.comp.compilers.llvm.devel as well.
>
> Samuel Williams <space.ship.traveller at gmail.com> writes:
>
> [snip]
>
>> The problem is that exactly the same arguments to CMake on Mac OS X
>> and Linux give different results.
>>
>> On Mac OS X, headers are not installed. On Linux, they are
>> installed. I've tested this on Debian Linux and OS X 10.6.4 both
with
>> CMake >= 2.8.0
>>
>> I am not sure how to debug this problem. Does anyone have any
>> experience with CMake command line on Mac OS X?
>
> It should work the same, regardless of what interface you use for
> configuring. Else, it would be a strong indication of a bug on cmake.
>
> The commands for installing the headers are at the end of the top-level
> CMakeLists.txt.
>
> Try building and installing without `sudo', i.e. under your home
> directory. Whatever result you get will be useful to know.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20101001/d8571afa/attachment.html>