Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Resource .dat error
Forum Updated to NodeBB v4.3 + New Features

Resource .dat error

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 1.7k Views 3 Watching
  • 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 Offline
    A Offline
    alecs26
    wrote on 8 Mar 2017, 13:56 last edited by
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Mar 2017, 22:44 last edited by
      #2

      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
      1
      • A Offline
        A Offline
        alecs26
        wrote on 9 Mar 2017, 16:15 last edited by
        #3

        The file is 100 MB

        M 1 Reply Last reply 9 Mar 2017, 17:23
        0
        • A alecs26
          9 Mar 2017, 16:15

          The file is 100 MB

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 9 Mar 2017, 17:23 last edited by
          #4

          @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
          0
          • A Offline
            A Offline
            alecs26
            wrote on 9 Mar 2017, 17:42 last edited by alecs26 3 Sept 2017, 17:42
            #5

            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
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 9 Mar 2017, 20:55 last edited by
              #6

              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
              2
              • A Offline
                A Offline
                alecs26
                wrote on 10 Mar 2017, 12:19 last edited by
                #7

                Nice, thank you !

                1 Reply Last reply
                0

                1/7

                8 Mar 2017, 13:56

                • Login

                • Login or register to search.
                1 out of 7
                • First post
                  1/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved