Results 1 to 4 of 4

Thread: Deploying the Qt Application on Linx/Win

  1. #1
    Join Date
    Jul 2014
    Posts
    7
    Thanks
    2
    Qt products
    Qt5

    Default Deploying the Qt Application on Linx/Win

    Hello I have a "stupid(?)" question. I am working the first time with Qt5 and - finally after 5000 lines of code - my application is done.
    I have already build a Windows version (no static build) and have now build the Raspberry version. The executable on the Raspberry works fine, but after deleting all .h and .cpp files it doesnt work anymore. If i return all .h and .cpp files the application works again. Why is that so and can this be change? I dont want the sourcecode to be open.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Deploying the Qt Application on Linx/Win

    The C++ source code is not required for the executable to run. Your problem is elsewhere.

  3. #3
    Join Date
    Jul 2014
    Posts
    7
    Thanks
    2
    Qt products
    Qt5

    Default Re: Deploying the Qt Application on Linx/Win

    you are right, doubleclicking the icon does not works while start through comman line works, why that?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Deploying the Qt Application on Linx/Win

    Probably because the environment that the command line gives the program includes the Qt libraries, and this is not the case when double clicking the executable. If Windows or Linux cannot find the dynamic libraries required by your executable then it will not load.
    http://qt-project.org/doc/qt-5/windo...ared-libraries
    http://qt-project.org/doc/qt-5/linux...ared-libraries

Similar Threads

  1. Deploying a Qt application
    By seub in forum Newbie
    Replies: 7
    Last Post: 4th October 2013, 05:33
  2. Deploying Qt 4.8.4 application on Mac OS X 10.6
    By mentalmushroom in forum Installation and Deployment
    Replies: 5
    Last Post: 18th April 2013, 06:58
  3. Deploying qt application under mac osx
    By lechoo in forum Installation and Deployment
    Replies: 0
    Last Post: 24th September 2010, 15:56
  4. deploying my qt application
    By arunredi in forum Installation and Deployment
    Replies: 1
    Last Post: 22nd May 2008, 11:34
  5. Deploying Qt application on Mac OS X
    By mourad in forum Installation and Deployment
    Replies: 1
    Last Post: 30th March 2008, 16:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.