Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Resource .dat error

    General and Desktop
    3
    7
    1157
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alecs26 last edited by

      Hello,

      I currently have a .dat file that I use for an algorithm. The .dat file is located in the release folder and I access it through c++ by giving its path. However, I would like this file to be included in my project to avoid external dependencies and having to give the file with the .exe. I succesfully did that with image files by adding them in the QRC resource file I tried to do the same with the .dat file but at build I get :
      mingw32-make[1]: *** [debug/qrc_qml.cpp] Error -1073741819

      I am using Qt5.7 on Windows with MinGw

      Thank you very much,

      Alex

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        How big is that file ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 1
        • A
          alecs26 last edited by

          The file is 100 MB

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @alecs26 last edited by

            @alecs26
            That is most likely too big. It will generate source file from it and it can easy be too massive
            to be included.
            Is it possible to split in chunks ?
            Then collect it runtime and use.

            1 Reply Last reply Reply Quote 0
            • A
              alecs26 last edited by alecs26

              I don't think I can break it into separate parts, it comes from an external library.
              But I will try to find a way to do that
              Thanks !

              Alex

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                You can create an external binary resource like described here.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 2
                • A
                  alecs26 last edited by

                  Nice, thank you !

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post