[LLVMdev] Build problems and workarounds with CMake and XCode
Samuel Crow
samuraileumas at yahoo.com
Wed Jan 5 14:43:48 PST 2011
Hello everyone,
I finally gave up on trying to build under Eclipse on my Mac because I had a
non-functioning installation on there that kept intercepting the command line
entries on the path. Uninstalling the old MacPorts install of LLVM 2.6 helped
but not completely.
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. Secondly, those commands, when executed from XCode,
have no open console to prompt for a password.
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. Secondly, if anyone
would be interested in my password prompter software, I'd be interested in
releasing it as open-source.
Thanks for your time and efforts,
--Samuel Crow
More information about the llvm-dev
mailing list