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. Weird corrupted String
Qt 6.11 is out! See what's new in the release blog

Weird corrupted String

Scheduled Pinned Locked Moved General and Desktop
qcameraqcamerainfo
5 Posts 2 Posters 2.1k Views 2 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.
  • Bear35645B Offline
    Bear35645B Offline
    Bear35645
    wrote on last edited by
    #1

    I am having a string issue with the following code:
    foreach (const QCameraInfo &deviceName, QCameraInfo::availableCameras())

    If I compile the program on my machine and transfer the exe and DLLs to the target machine, the deviceName() method returns a '.' (this may actually be something besides a period in Hex, but I won't know that until I can get the target system back.)

    If I copy the code to the target machine and build it there, then the issue goes away. I was thinking it may have something to do with the fact my development machine is 64 bit, but the target system is 32. Even though I was building for 32 bit, I thought maybe something was not getting translated correctly. However, when I took the exe from one target system and placed it on another identical system the problem came back.

    Anyone have any idea what is going on?

    Thanks in advance,
    Bear

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Windows ? Did you deploy all DLLs with your application ? Including the QtMultimedia plugins ?

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

      Bear35645B 2 Replies Last reply
      0
      • SGaistS SGaist

        Hi,

        Windows ? Did you deploy all DLLs with your application ? Including the QtMultimedia plugins ?

        Bear35645B Offline
        Bear35645B Offline
        Bear35645
        wrote on last edited by
        #3

        @SGaist Yes it is Windows 7. The target is Windows 7 Embedded. Yes I did deploy the DLLS but as soon as the system comes back from the testing I will verify that.

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Windows ? Did you deploy all DLLs with your application ? Including the QtMultimedia plugins ?

          Bear35645B Offline
          Bear35645B Offline
          Bear35645
          wrote on last edited by
          #4

          @SGaist Thanks again. I was missing plugins. After copying them over to the target system along with a freshly compiled exe from my development system, my exe ran just fine.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Those plugins can be tricky…

            Happy coding !

            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
            0

            • Login

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