Hi Samuel,
I always just click the icon for CMake on the Mac. Then you select a
destination directory for the headers from the graphical user interface and the
source where the cmakefile.txt root is. Then you click on the configure button
at the bottom. It will ask you if you want to make Unix Makefiles or XCode
Projects or Eclipse Projects or a couple of other options. Pick the one you
want, then click the Okay button. It should start parsing the cmakefile.txt
files and come up with some configuration options. The new ones are displayed
in red. Select the settings for each red one and hit configure again. It may
show more red ones the second time around. Keep setting the settings until the
Generate button is highlighted. Clicking Generate will generate the makefiles
or project files you requested.
Yours truly,
--Sam
----- Original Message ----> From: Samuel Williams <space.ship.traveller at gmail.com>
> To: llvmdev at cs.uiuc.edu
> Sent: Thu, September 30, 2010 3:46:38 PM
> Subject: Re: [LLVMdev] CMake "sudo make install" & headers
>
> Hi Oscar,
>
> I tried that but it didn't work. However, it did work fine on Linux
for me so
>I am now a bit confused.
>
> Here is the output from $ sudo make install
>
> Install the project...
> -- Install configuration: "Release"
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMSupport.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMSystem.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMCore.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMCodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMSelectionDAG.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMAsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMBitReader.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMBitWriter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMTransformUtils.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMInstrumentation.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMInstCombine.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMScalarOpts.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMipo.a
> -- Up-to-date: /usr/local/llvm-2.8/lib/LLVMHello.so
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMLinker.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMAnalysis.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMipa.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMC.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMCParser.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMCDisassembler.a
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-lit
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMAlphaCodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMAlphaInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMAlphaAsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMARMCodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMARMInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMARMAsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMARMAsmParser.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMBlackfinCodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMBlackfinInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMBlackfinAsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMCBackend.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMCBackendInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMCellSPUCodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMCellSPUInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMCellSPUAsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMCppBackend.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMCppBackendInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMipsCodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMipsInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMipsAsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMBlazeCodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMBlazeInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMBlazeAsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMSP430CodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMSP430Info.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMMSP430AsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMPIC16CodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMPIC16Info.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMPIC16AsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMPowerPCCodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMPowerPCInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMPowerPCAsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMSparcCodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMSparcInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMSparcAsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMSystemZCodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMSystemZInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMSystemZAsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMX86CodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMX86Info.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMX86AsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMX86AsmParser.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMX86Disassembler.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMXCoreCodeGen.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMXCoreInfo.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMXCoreAsmPrinter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMExecutionEngine.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMInterpreter.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMJIT.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMTarget.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMAsmParser.a
> -- Installing: /usr/local/llvm-2.8/lib/libLLVMArchive.a
> -- Installing: /usr/local/llvm-2.8/bin/llvm-config
> -- Up-to-date: /usr/local/llvm-2.8/bin/opt
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-as
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-dis
> -- Installing: /usr/local/llvm-2.8/bin/llvm-mc
> -- Installing: /usr/local/llvm-2.8/bin/llc
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-ranlib
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-ar
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-nm
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-ld
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-prof
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-link
> -- Up-to-date: /usr/local/llvm-2.8/bin/lli
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-extract
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-diff
> -- Up-to-date: /usr/local/llvm-2.8/bin/bugpoint
> -- Up-to-date: /usr/local/llvm-2.8/lib/BugpointPasses.so
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-bcanalyzer
> -- Up-to-date: /usr/local/llvm-2.8/bin/llvm-stub
> -- Installing: /usr/local/llvm-2.8/lib/libEnhancedDisassembly.a
> -- Up-to-date: /usr/local/llvm-2.8/share/llvm/cmake/LLVM.cmake
> -- Up-to-date: /usr/local/llvm-2.8/share/llvm/cmake/LLVMConfig.cmake
> -- Up-to-date: /usr/local/llvm-2.8/share/llvm/cmake/LLVMLibDeps.cmake
>
> On Linux, there is also a list of headers as part of this output.
>
> Any ideas?
>
> Kind regards,
> Samuel
>
> On 1/10/2010, at 2:30 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:
> >
> >> I might just be doing something stupid, but when I do
> >>
> >> $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8
>-DCMAKE_BUILD_TYPE=Release ..
> >> $ sudo make install
> >>
> >> I don't get the expected headers in
> >> /usr/local/llvm-2.8/include/llvm
> >>
> >> It is simply an empty directory.
> >
> > It works fine for me on Linux & cmake 2.8.2
> >
> >> What am I doing wrong? This is on Mac OS X, CMake 2.8+
> >
> > Maybe a platform-specific bug on cmake.
> >
> > Try
> >
> > $ make && sudo make install
> >
> > (after throwing away your previous, sudo-ized build directory)
> >
> > Building as root creates a lot of files owned by the superuser on
your
> > build directory. This is an inconvenience because you are forced to
use
> > `sudo' again for other operations on that directory.
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>