Setting up Qt for CLion

后端 未结 1 695
后悔当初
后悔当初 2020-12-12 01:40

i am struggling to set up Qt5 for CLion. Somehow, I did this for VS before but failed to do this in CLion. Building and Including Qt headers are fine and CLion find qt symbo

相关标签:
1条回答
  • 2020-12-12 02:27

    Try to add Qt library's installation directory (select specific Qt version and build system \bin sub-subdirectory) to PATH environment variable .

    I have been struggling with similar problem. I have had installed Qt library (version 5.6 and 5.7) in C:\Qt\ directory. In my project I use version 5.6. Build system is MinGW.

    After I have added C:\Qt\5.6\mingw49_32\bin, everything works fine.

    The reason for this behaviour is quite simple. During the build, build system 'knows' where to search for libraries, but when app is being executed, Windows system searches for required libraries in application's directory and directories specified by PATH variable.

    If it fails, application exits with -1073741515 (0xC0000135) error.

    0 讨论(0)
提交回复
热议问题