Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after build, how to install? #1171

Closed
8l opened this issue Jul 7, 2016 · 7 comments
Closed

after build, how to install? #1171

8l opened this issue Jul 7, 2016 · 7 comments

Comments

@8l
Copy link

8l commented Jul 7, 2016

Hi,

after build llvm with ninja, how to install llvm to /usr?
search ninja manual, couldn't find the information.

TIA

@ScottBailey
Copy link

install the executable:

sudo cp ninja /usr/local/bin

and add the following to your ~/.bashrc file:

nice printing for ninja and bash tab completion

export NINJA_STATUS="[%p %s/%t] "
. <location of ninja's bash completion file>

On Thu, Jul 7, 2016 at 1:49 PM, 8l notifications@github.com wrote:

Hi,

after build llvm with ninja, how to install llvm to /usr?
search ninja manual, couldn't find the information.

TIA


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1171, or mute the thread
https://github.com/notifications/unsubscribe/AAXP9ZnoUl0PhsoIZ2j-R-CGTf9tX6p7ks5qTWZKgaJpZM4JHfDZ
.

Scott Bailey

@evmar
Copy link
Collaborator

evmar commented Jul 7, 2016

Ninja just runs the commands it's instructed to. To install LLVM as built with CMake, see the LLVM and CMake documentation.

@evmar evmar closed this as completed Jul 7, 2016
@8l
Copy link
Author

8l commented Jul 7, 2016

Thanks for the reply, but sorry not helpful.

if i build default cmake without ninja, i can install llvm to /usr without any problem.
but built llvm with ninja, still i couldn't install llvm to /usr.

llvm documentation doesn't have the answer for this question,
llvm cmake generation with ninja, but if i ran default cmake, the installation command failed.

anyway, until find the info, i fallback to default cmake and make.

this issue not closed. still opened.

@dmerejkowsky
Copy link

You did not say what issue you were having. Can you share an error message?

But I think what @martine was trying to say is that's it's likely not a ninja bug.

@evmar
Copy link
Collaborator

evmar commented Jul 7, 2016

You should file this bug in the cmake or llvm tracker. I'm sure they can help you! :)

@honggyukim
Copy link

Hi @8l, it's very old issue but ninja install does installation job after llvm build.

@fenglc
Copy link

fenglc commented May 9, 2019

$ cmake . -DCMAKE_INSTALL_PREFIX=~/xxx/devlibs -G Ninja
$ ninja
$ ninja install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants