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. [SOLVED].exe from "Release" directory don't work correctly
Forum Updated to NodeBB v4.3 + New Features

[SOLVED].exe from "Release" directory don't work correctly

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k Views 1 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
    adrianlin
    wrote on last edited by
    #1

    Hello.

    I am trying to save frames from a webcam to an .avi file using OpenCv (I have integrated OpenCv with Qt Creator 2.4.1). When i open the project and i run it from Qt Creator, the .avi file is created and i can open the .avi file with a video player (like vlc).

    But when i am running the .exe from Release directory, the .avi file is created, but the file is empty (it shows 0kB).

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

      Make sure your environment is set up properly on the command line. Creator uses the system environment by default, but it changes a few things (mostly related to finding libraries, etc.) to make the the project work based on your settings.

      Check the environment Creator uses to run your application in Project->...->Run Settings->Environment (don't remember the exact path and am just rebuilding Qt/Qt Creator, so I can't look right now, sorry).

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adrianlin
        wrote on last edited by
        #3

        Just copied the .dll libraries (all of them) from OpenCv to Release directory. Now i should find exactly what libraries are needed for the application to work.

        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