English 中文(简体)
LLVM MinGW installation on Vista?
原标题:

From llvm.org I ve downloaded llvm-2.6-x86-mingw32.tar.bz2 into c:llvm and llvm-gcc-4.2-2.6-x86-mingw32-tar.bz2 into c:llvm-gcc as well as setup a desktop shortcut the following batch file in c:llvm-gcc which attempts to setup an environment for compiling via the llvm-gcc command line too:

@echo off
color 0E
echo Configuring LLVM environment...
set LLVM_LIB_SEARCH_PATH=%~dp0lib
set PATH=c:llvm;%~dp0bin;%PATH%

Unfortunately, this setup gives the following error when trying to compile a simple hello world program:

C:CDevsandbox>llvm-gcc -o hello.exe hello.c
llvm-gcc: CreateProcess: No such file or directory

I ve briefly looked through the LLVM binaries and it appears that the MinGW-based Win32 API and runtime files are already included. I also tried adding the MinGW DLL to c:llvm-gccin to no avail.

What have I missed in setting up the binary LLVM environment and GCC-based front end on Vista?

Thanks, Jon

问题回答

Because the GNU/MinGW assembler as was required by llvm-gcc to generate the obj file. The problem can be solved by using:

  1. Install GNU/MinGW binutils, extract the as.exe into c:llvm-gccin
  2. Install a full MinGW package, add %MinGW%in your %PATH%

@rwallace is correct that one needs to also install MinGW s binutils along with the LLVM binary download. I ve updated the LLVM documentation appropriately at

http://llvm.org/docs/GettingStarted.html#installcf

As far as I can tell, the answer is that the MinGW distribution supplied by LLVM is not complete, in particular, it doesn t come with the binutils programs.

The recommended solution seems to be to download and install MinGW yourself. However, the MinGW download page seems to be saying this requires 10 different packages to be downloaded and installed separately.

The solution I tried today was to use the MinGW that comes with Qt, which does come in a single package; thus far, that appears to work.

It seems like it is looking for the base MinGW installation in C:MinGW. I just had this error today using gcc.exe in msys. To solve it, I created a symbolic link from c:msys to c:MinGW and everything worked.





相关问题
Correct place to install demostration projects?

With the new Windows 7 restrictions (well, new to Windows Vista anyways), we can no longer install demo projects to %ProgramFilesFolder%OurApplicationdemo since restricted users will not be able to ...

.deb package conffiles problem

I am distributing one of my applications using a .deb package, but have a problem relating to one of the files. The distribution includes a database file which is constantly updated by the app, on a ...

Closing an application using WiX

In creating my WiX installer I have run into an issue when trying to close an application before installing the upgrade. Below is an example of how I am attempting to do this. <util:...

VS 2005 Setup - HKCU

I am trying to fix an existing application that uses a Visual Studio 2005 setup project. We are requiring it to work on limited user accounts for XP, our app is written in C# for .Net 2.0. It writes ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

configsource and installer

I have an project csproj, with app.config file, and logging Ent.Library section using configsource attribute. The logging section is in ahother file Configloggingconfiguration.config. I have a ...

热门标签