Qt project: Test run of "uic"

I have attempted to create a Qt project using CLion on MACOSX 10.15.7 with x86 architecture, however the following messages shows up when I start the IDE:

CMake Error: AUTOUIC for target MyProjectName: Test run of "uic" executable "/usr/local/share/qt/libexec/uic" failed.
/usr/local/share/qt/libexec/uic -h

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.69.dylib
  Referenced from: /usr/local/Cellar/qt/6.1.3/lib/QtCore.framework/Versions/A/QtCore
  Reason: image not found
Subprocess aborted
CMake Generate step failed.  Build files cannot be regenerated correctly.


The result of this is that the Run button is greyed out and I cannot test anything.

And yes, I have installed Qt through the unified Mac os installer and selected all of the options for the custom installation.

Just for reference if anyone needs it, this is the message before the RED problem message:

-- The C compiler identification is AppleClang
-- The CXX compiler identification is AppleClang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenGL.framework   
-- Found WrapOpenGL: TRUE  
-- Configuring done


The screenshot: Upload id: 2022_08_06_zsg56tPPHkzMfBb7jzR93z (file: Screen Shot 2022-08-06 at 12.38.54 AM.png)

1 comment
Comment actions Permalink


It doesn't look like a CLion related problem. Could you please try configuring the project in Terminal? You can take the command from the Cmake tool window. Is the result different?


Please sign in to leave a comment.