Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt visual studio 2017 Rcc error



  • I am using qt vs tool, visual studio 2017 and qt 5.0.2. I dont get any debug error but a build failed message and this error:

    1>------ Build started: Project: matest, Configuration: Debug x64 ------
    1>Rcc'ing matest.qrc...
    1>Qt resource compiler
    1>C:\Qt\5.0.2\msvc2012_64\bin\rcc.exe: Unknown option: '--name'
    1>Usage: C:\Qt\5.0.2\msvc2012_64\bin\rcc.exe [options] <inputs>
    1>Options:
    1> -o file write output to file rather than stdout
    1> -name name create an external initialization function with name
    1> -threshold level threshold to consider compressing files
    1> -compress level compress input files by level
    1> -root path prefix resource access path with root path
    1> -no-compress disable all compression
    1> -binary output a binary file for use as a dynamic resource
    1> -namespace turn off namespace macros
    1> -project Output a resource file containing all
    1> files from the current directory
    1> -version display version
    1> -help display this information
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



  • I fear it's just a version issue, can you try with Qt 5.11 or Qt 5.9. If either works, you should submit a bug report



  • i fear that i cant download qt 5.11 because of size (30G). is there alternative solution?


  • Moderators

    @coderboy99 don't just check the checkbox next to 5.11,

    expand the tree and select only the msvc version you need. however, in 5.11 the MSVC2013 support was removed from the code base -> you'll only get msvc2015 and 2017 precompiled files

    those are defenitly not compatible with msvc2012



  • Good spot @J-Hilk

    visual studio 2017
    C:\Qt\5.0.2\msvc2012_64\bin\rcc.exe

    Seems like you are mixing up versions of Visual Studio

    because of size (30G)

    1 version of Qt for 1 compiler is around 1.5GB depending on the addons you chose



  • @J.Hilk @VRonin Thank you for your help it worked !



  • Hello, I am getting this error, I am using vs2017.

    Severity Code Description Project File Line Suppression State Error 1 rcc (C:\Qt\5.13.2\msvc2017_64\bin\rcc.exe) mumble
    E:\NybSys\BitBucket\PTT_Multicast\04_Mumble_All_Working\Mumble Server\mumble-master\mumble-master\themes\MumbleTheme.qrc 1

    Can any body help me please.


Log in to reply