简体   繁体   中英

Qt Creator 3.0.0/1 with Clang -> g++' is not recognized

Win 7 32, Qt Creator 3.0 and 3.1beta tried

I try to compile a project with Clang in Qt Creator. According to "Qt Creator and Clang" I have set PATH / LLVM_INSTALL_DIR .

LLVM was downloaded from here. http://llvm.org/releases/download.html . Settings in Qt Creator as shown below (screenshots). When I run qmake , I get 'g++' is not recognized as an internal or external command, operable program or batch file .

Do I miss something in the big picture? Do I need to install a special Qt version (compiled for Clang)? I have a Qt 5.2 for MSVC and Qt 5.2. for MinGw on my disk.

I have tried 3.1beta as this reads as CLANG is supported, maybe I understand it wrong.

Compiler settings in Creator: QtCreator编译器

Kit: QtCreator套件

Clang for Win32 is not supported by the stock qmake environment. Anyway, you can follow this answer to get it work. After that specify the exact spec for generating Makefile: qmake -spec win32-clang .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM