[LLVMdev] Build problems and workarounds with CMake and XCode

Óscar Fuentes ofv at wanadoo.es
Wed Jan 5 15:00:00 PST 2011


Samuel Crow <samuraileumas at yahoo.com> writes:

[snip]

> I tried making a separate build of LLVM SVN in XCode using build files created 
> with CMake.  Surprisingly, it worked better than Eclipse!  The Build_All target 
> completed its build.  The install target was another story though.  First of 
> all, the commands to install with the terminal command-line needed to be 
> prefaced with sudo to work.

Have you permissions for those directories?

>  Secondly, those commands, when executed from XCode, 
> have no open console to prompt for a password.

That lies outside cmake and/or XCode capabilities, I guess.

> My workaround for that was to write a small utility in Qt to prompt for a 
> password and return it in stdout.  I then set the path of that utility to the 
> SUDO_ASKPASS environment variable so I could set the scripts to run sudo -A 
> command instead of sudo command.  This unearthed a second problem.  In my debug 
> build, the script looked in the release directory for LLVMSupport.a and failed 
> as a result of it.
>
> At this point I'm building a release build so I can install the debug build. 
>  If Óscar or somebody more familiar than I at CMake would look into the issue of 
> the release install in the debug build, I'd appreciate it.

I'm not sure what the problem is. Never used XCode nor I have access to
it. What are those scripts? The install scripts generated by CMake for
XCode?




More information about the llvm-dev mailing list