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

Error after add a mp4 ressource



  • Hello, i hope anyone could help me.

    Two days ago I added and removed an mp4 as a resource. Today I added the same file again and get the following error when compiling:

    clang: error: unable to execute command: Killed
    clang: error: clang frontend command failed due to signal (use -v to see invocation)
    clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    Target: x86_64-pc-linux-gnu
    Thread model: posix
    InstalledDir: /usr/bin
    clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
    clang: note: diagnostic msg:


    PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
    Preprocessed source(s) and associated run script(s) are located at:
    clang: note: diagnostic msg: /tmp/qrc_resources-36b007.cpp
    clang: note: diagnostic msg: /tmp/qrc_resources-36b007.sh
    clang: note: diagnostic msg:


    Makefile:580: recipe for target 'qrc_resources.o' failed
    make: *** [qrc_resources.o] Error 254
    19:51:07: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.
    Fehler beim Erstellen/Deployment des Projekts GUIGame (Kit: Desktop)
    Bei der Ausführung von Schritt "Make"
    19:51:08: Verstrichene Zeit: 02:56.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What file size is that video file ?



  • MPEG-4-Video (video/mp4)


  • Lifetime Qt Champion

    Sorry, I meant what size ?



  • 20,7 MB (20.742.805 Bytes)


  • Lifetime Qt Champion

    @Razerzone84 This is not something which should be in a resource file. And as you see in the error message you should report a bug to clang, not Qt.


  • Lifetime Qt Champion

    @Razerzone84 said in Error after add a mp4 ressource:

    20,7 MB (20.742.805 Bytes)

    This file is going to be converted in a suitable form for compilation. Check the file generated by rcc, it's going to huge and not something you want to feed your compiler with. What you can do in place is to generate an external resource that will be used by your application. But videos are usually files that you don't put in resources unless they are really small which is not the case here.


Log in to reply