Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QDir entryList with huge file on embedded linux
QtWS25 Last Chance

QDir entryList with huge file on embedded linux

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.0k Views
  • 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
    adler.robert
    wrote on last edited by
    #1

    Hallo!

    I have a problem with QDir on my system. It's embedded linux with an arm9 processor. I want to compute the size of a directory. Everthing works fine for me except one directory. It consists of 1 file.

    "ls -l testfolder/" gives me:
    -rw-r--r-- 1 root root 8827390720 Mar 2 07:47 Video-12_03_02_0026.avi

    The file exists and has a size of 8,2GB. (It is a test video with a length of 9h)

    In my application I try:
    @QDir d("/mnt/media/testfolder/");
    qDebug() << d.entryList(QDir::AllEntries);@

    It gives me:
    (".", "..") -- means no file, but their is a file!

    Does anybody know what the problem is? The size of the file? I have another video file with a size of 1GB and this one is recordnized correctly with "entryList".

    Thank for your help,
    Robert Adler

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      I am just guessing here: There is a option to configure (-largefile) to enable large file support while building Qt... did you set that one? It is set by default (at least on desktops), so this might be of the mark.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adler.robert
        wrote on last edited by
        #3

        Thanks a lot! Qt was configured with -no-largefile. I don't no why bus that's the reason! I have to recompile with large file support.

        1 Reply Last reply
        0

        • Login

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